Thread: How to view the SQL that Pg actually executes?

How to view the SQL that Pg actually executes?

From
"Kynn Jones"
Date:
I understand that in some cases (e.g. when add_missing_from is true),
Pg will modifiy some SQL input before running it.  Is there a way to
get Pg to print out the SQL it will actually execute?  Is it possible
to get to *just* print out this SQL without actually executing it?

TIA!

kj