Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axL8L-0004Sg-St for pgsql-admin@arkaria.postgresql.org; Mon, 02 May 2016 21:12:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axL8L-0003E6-Ee for pgsql-admin@arkaria.postgresql.org; Mon, 02 May 2016 21:12:01 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1axL6f-0001GS-1i for pgsql-admin@postgresql.org; Mon, 02 May 2016 21:10:17 +0000 Received: from internet06.ebureau.com ([65.127.24.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1axL6b-0007fs-Oz for pgsql-admin@postgresql.org; Mon, 02 May 2016 21:10:15 +0000 Received: from localhost (localhost [127.0.0.1]) by internet06.ebureau.com (Postfix) with ESMTP id 7233C56A6F33; Mon, 2 May 2016 16:10:12 -0500 (CDT) X-Virus-Scanned: amavisd-new at ebureau.com Received: from internet06.ebureau.com ([127.0.0.1]) by localhost (internet06.ebureau.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CbQH3UCrGKAS; Mon, 2 May 2016 16:10:12 -0500 (CDT) Received: from [10.10.20.250] (unknown [10.10.20.250]) by internet06.ebureau.com (Postfix) with ESMTPSA id BACEC56A6F28; Mon, 2 May 2016 16:10:11 -0500 (CDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Inspect values of prepared statements From: Natalie Wenz In-Reply-To: <5727A6D4.4020609@commandprompt.com> Date: Mon, 2 May 2016 16:10:10 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <1FC0F299-82DB-4EF4-97C3-E741888130A3@ebureau.com> References: <26FFD5EA-0317-497F-9CCA-BC80C6A1CA6C@ebureau.com> <5727943C.4050008@commandprompt.com> <1B7B1A44-6B19-46AF-8ED8-74098F43B45C@ebureau.com> <57279740.9080300@commandprompt.com> <4DD34523-B75E-4409-A640-2704B0ED2C3E@ebureau.com> <5727A6D4.4020609@commandprompt.com> To: "Joshua D. Drake" , pgsql-admin X-Mailer: Apple Mail (2.3124) X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Thanks, I did check log_min_error_statement; no additional information. I = also tried dialing log_min_duration_statement to 0, same result. Both thing= s *did* show the values used for other, successful, queries that were using= prepared statements. But in the case of the query that was triggering the = error, none of those options logged the values used in the prepared stateme= nt. Is that expected behavior? We're running postgres 9.3.11 on that server.=20 Thanks again, Natalie > On May 2, 2016, at 2:13 PM, Joshua D. Drake wrote: >=20 > On 05/02/2016 11:41 AM, Natalie Wenz wrote: >> Oh, interesting. I didn't realize you could change that on the fly. >> That's helpful. >=20 >>=20 >> So, my revised question: is there any way to inspect the values from a >> prepared statement when the query contains an error? Or some combination >> of logging settings that would give me that detail? >>=20 >=20 > What version are you running? Also check log_min_error_statement >=20 > Sincerely, >=20 > JD >=20 > --=20 > Command Prompt, Inc. http://the.postgres.company/ > +1-503-667-4564 > PostgreSQL Centered full stack support, consulting and development. > Everyone appreciates your honesty, until you are honest with them. --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin