From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gavin Wahl <gavinwahl@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: psql --echo-queries does not echo all queries
Date: Sat, 25 Oct 2025 10:32:41 -0400
Message-ID: <1971001.1761402761@sss.pgh.pa.us> (raw)
In-Reply-To: <CACPudh2Xf1OSPaFD0tcBMoGAjqyUz_PXCwKWKW4XcAUozsR=4g@mail.gmail.com>
References: <CACPudh2Xf1OSPaFD0tcBMoGAjqyUz_PXCwKWKW4XcAUozsR=4g@mail.gmail.com>
Gavin Wahl <gavinwahl@gmail.com> writes:
> The -e/--echo-queries psql option is documented to "Copy all SQL
> commands sent to the server to standard output as well." However, it
> does not show queries sent to the server by -1/--single-transaction or
> by ON_ERROR_ROLLBACK.
Did you try
-E, --echo-hidden display queries that internal commands generate
?
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, gavinwahl@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: psql --echo-queries does not echo all queries
In-Reply-To: <1971001.1761402761@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox