Re: Distinguish view and table problem

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: suzhiyang <suzhiyang(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Distinguish view and table problem
Date: 2009-12-18 17:31:05
Message-ID: 603c8f070912180931qb6a9d49ldefcb54d06e4e9da@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua Tolley 2009-12-18 17:34:15 Re: Time to run initdb is mostly figure-out-the-timezone work
Previous Message Robert Haas 2009-12-18 17:29:45 Re: Backup history file should be replicated in Streaming Replication?