Re: Exec statement logging - Mailing list pgsql-patches

From Tom Lane
Subject Re: Exec statement logging
Date
Msg-id 6949.1116107872@sss.pgh.pa.us
Whole thread Raw
In response to Re: Exec statement logging  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Exec statement logging  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> One thing you did was to log debug_query_string, but I don't see how
> that could be the right value.  I assume it would be empty in a
> client-side execute, or be the previous query.  I instead used "EXECUTE
> portal_name" because that is what we are passed from the client.

You could use portal->sourceText whenever that isn't null; it should be
the querystring that the portal was created by.

            regards, tom lane

pgsql-patches by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] plperl and pltcl installcheck targets
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] pgsql config flag update: apple rendezvous renamed bonjour