Logging the query executed on the server - Mailing list pgsql-general

From Igor Korot
Subject Logging the query executed on the server
Date
Msg-id CA+FnnTwxLeg=eKNLHGo053qb8G+DFjQ5koZ3Q_MW8JwUbJK-MA@mail.gmail.com
Whole thread Raw
Responses Re: Logging the query executed on the server  (Steve Baldwin <steve.baldwin@gmail.com>)
List pgsql-general
Hi,
Is it possible to log the query that will be executed
on the server?

I'm writing an application that connects to the server
through ODBC and libpq.
For some reason ODBC interface is failing - it desn't
return any rows

So I'm thinking if I have a proof that the query I am
actually executing is the same as the one I run through
the psql - I will know where to look.

I am actually binding some parameters and trying to
execute the query.

Thank you.



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: 20220722-pg_dump: error: invalid number of parents 0 for table
Next
From: Steve Baldwin
Date:
Subject: Re: Logging the query executed on the server