Re: [GENERAL] capturing and storing query statement with - Mailing list pgsql-hackers

From Larry Rosenman
Subject Re: [GENERAL] capturing and storing query statement with
Date
Msg-id 60000000.1056489211@lerlaptop.iadfw.net
Whole thread Raw
In response to Re: [GENERAL] capturing and storing query statement with rules  (Joe Conway <mail@joeconway.com>)
List pgsql-hackers

--On Tuesday, June 24, 2003 14:07:23 -0700 Joe Conway <mail@joeconway.com> 
wrote:

> (moving to HACKERS)
>
> Mike Mascari wrote:
>> Joe Conway wrote:
>>> I think this shows how to do what you want:
>>> http://archives.postgresql.org/pgsql-sql/2003-05/msg00301.php
>>
>> Maybe debug_query_string should be mapped into a variable like
>> CURRENT_USER? Perhaps something like CURRENT_QUERY?
>>
>
> I was thinking something similar. This exact question has come up at
> least three times in the last three months. I doubt we'd want a special
> keyword like CURRENT_QUERY, but maybe current_query()?
>
> Comments?
I was thinking the same thing.  Currently I use the contrib/dblink supplied
function, but a firstclass, in the default install, version would be nice.



-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749





pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Two weeks to feature freeze
Next
From: Andreas Pflug
Date:
Subject: Re: pg_get_triggerdef in pg_dump