pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Escape string tracing
3+ messages / 3 participants
[nested] [flat]

* Escape string tracing
@ 2007-11-13 19:22 Mike Blackwell <maiku41@sbcglobal.net>
  2007-11-13 20:10 ` Re: Escape string tracing Bruce Momjian <bruce@momjian.us>
  2007-11-13 20:42 ` Re: Escape string tracing Milen A. Radev <milen@radev.net>
  0 siblings, 2 replies; 3+ messages in thread

From: Mike Blackwell @ 2007-11-13 19:22 UTC (permalink / raw)
  To: pgsql-admin

I have a system that's been giving the nonstandard use of \\...' warning 
in the postgresql log.  Is there a way to get the SQL associated with 
the warning without logging all the sql statements being processed?




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Escape string tracing
  2007-11-13 19:22 Escape string tracing Mike Blackwell <maiku41@sbcglobal.net>
@ 2007-11-13 20:10 ` Bruce Momjian <bruce@momjian.us>
  1 sibling, 0 replies; 3+ messages in thread

From: Bruce Momjian @ 2007-11-13 20:10 UTC (permalink / raw)
  To: Mike Blackwell <maiku41@sbcglobal.net>; +Cc: pgsql-admin

Mike Blackwell wrote:
> I have a system that's been giving the nonstandard use of \\...' warning 
> in the postgresql log.  Is there a way to get the SQL associated with 
> the warning without logging all the sql statements being processed?

Yes, mark it as an escape string, E''. See the documentation and release
notes.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://postgres.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Escape string tracing
  2007-11-13 19:22 Escape string tracing Mike Blackwell <maiku41@sbcglobal.net>
@ 2007-11-13 20:42 ` Milen A. Radev <milen@radev.net>
  1 sibling, 0 replies; 3+ messages in thread

From: Milen A. Radev @ 2007-11-13 20:42 UTC (permalink / raw)
  To: pgsql-admin

Mike Blackwell написа:
> I have a system that's been giving the nonstandard use of \\...' warning
> in the postgresql log.  Is there a way to get the SQL associated with
> the warning without logging all the sql statements being processed?


Yes, set "log_min_error_statement" to "WARNING"
(http://www.postgresql.org/docs/current/static/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHE...).


-- 
Milen A. Radev




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2007-11-13 20:42 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-11-13 19:22 Escape string tracing Mike Blackwell <maiku41@sbcglobal.net>
2007-11-13 20:10 ` Bruce Momjian <bruce@momjian.us>
2007-11-13 20:42 ` Milen A. Radev <milen@radev.net>

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