Re: Distinguish view and table problem - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Distinguish view and table problem
Date
Msg-id 603c8f070912180931qb6a9d49ldefcb54d06e4e9da@mail.gmail.com
Whole thread Raw
In response to Distinguish view and table problem  ("suzhiyang" <suzhiyang@gmail.com>)
List pgsql-hackers
On Fri, Dec 18, 2009 at 10:57 AM, suzhiyang <suzhiyang@gmail.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


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Backup history file should be replicated in Streaming Replication?
Next
From: Joshua Tolley
Date:
Subject: Re: Time to run initdb is mostly figure-out-the-timezone work