Re: Logging statements and parameter values

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ted Powell <ted(at)theplace(dot)enposte(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Logging statements and parameter values
Date: 2006-01-27 15:26:14
Message-ID: 2383.1138375574@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Ted Powell <ted(at)theplace(dot)enposte(dot)net> writes:
> Has this not been done simply because nobody has gotten around to it, or
> are there pitfalls?

What are you going to do with binary parameter values? Calling the
type's output converter is possible but not very pleasant.

> Also, the Datum params[i].value, does it necessarily hold displayable
> text, even when its content is the output of a binary input converter?

Datums are guaranteed *not* to be displayable text.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-01-27 15:32:34 Re: PG_RESTORE and database size
Previous Message Ilja Golshtein 2006-01-27 15:22:00 Re: table is not a table

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Hallgren 2006-01-27 15:29:32 Re: Adding a --quiet option to initdb
Previous Message Jason Essington 2006-01-27 15:21:23 Re: Segfault Exiting psql