On Fri, Dec 18, 2009 at 10:57 AM, suzhiyang <suzhiyang(at)gmail(dot)com> wrote:
> Another question is that does postgres save the user's original query_string
> at anywhere(systable etc.)? If I want to save the sourceText in the
> systable, I could add a column to pg_class called query_string. How could I
> insert a line to pg_class or read a line from it?
pg_class wouldn't make much sense for this. But you might be
interested in pg_stat_activity.
...Robert