pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Natalie Wenz <nataliewenz@ebureau.com>
To: Joshua D. Drake <jd@commandprompt.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Inspect values of prepared statements
Date: Mon, 2 May 2016 16:10:10 -0500
Message-ID: <1FC0F299-82DB-4EF4-97C3-E741888130A3@ebureau.com> (raw)
In-Reply-To: <5727A6D4.4020609@commandprompt.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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Thanks, I did check log_min_error_statement; no additional information.  I also tried dialing log_min_duration_statement to 0, same result. Both things *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 statement. Is that expected behavior?

We're running postgres 9.3.11 on that server. 

Thanks again,
Natalie

> On May 2, 2016, at 2:13 PM, Joshua D. Drake <jd@commandprompt.com> wrote:
> 
> 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.
> 
>> 
>> 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?
>> 
> 
> What version are you running? Also check log_min_error_statement
> 
> Sincerely,
> 
> JD
> 
> -- 
> 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.



-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (11+ messages)  latest in thread

Message-ID: <1FC0F299-82DB-4EF4-97C3-E741888130A3@ebureau.com>
Permalink:  ../1FC0F299-82DB-4EF4-97C3-E741888130A3@ebureau.com/
Also on:    postgresql.org/message-id/1FC0F299-82DB-4EF4-97C3-E741888130A3@ebureau.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: nataliewenz@ebureau.com, jd@commandprompt.com
  Subject: Re: Inspect values of prepared statements
  In-Reply-To: <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> <1FC0F299-82DB-4EF4-97C3-E741888130A3@ebureau.com>

* 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