Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vCfK4-00GnHh-JB for pgsql-bugs@arkaria.postgresql.org; Sat, 25 Oct 2025 14:32:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1vCfK3-003HaG-DC for pgsql-bugs@arkaria.postgresql.org; Sat, 25 Oct 2025 14:32:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vCfK3-003Ha8-5D for pgsql-bugs@lists.postgresql.org; Sat, 25 Oct 2025 14:32:46 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vCfJz-004B0f-2m for pgsql-bugs@lists.postgresql.org; Sat, 25 Oct 2025 14:32:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 59PEWf4o1971002; Sat, 25 Oct 2025 10:32:41 -0400 From: Tom Lane To: Gavin Wahl cc: pgsql-bugs@lists.postgresql.org Subject: Re: psql --echo-queries does not echo all queries In-reply-to: References: Comments: In-reply-to Gavin Wahl message dated "Fri, 24 Oct 2025 12:16:57 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1971000.1761402761.1@sss.pgh.pa.us> Date: Sat, 25 Oct 2025 10:32:41 -0400 Message-ID: <1971001.1761402761@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Gavin Wahl 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