Re: Dumping views as views? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Dumping views as views?
Date
Msg-id 14114.968946327@sss.pgh.pa.us
Whole thread Raw
In response to Dumping views as views?  (Philip Warner <pjw@rhyme.com.au>)
Responses Re: Dumping views as views?
List pgsql-hackers
Philip Warner <pjw@rhyme.com.au> writes:
> - when getting table info, also call pg_get_viewdef (which returns 'not a
> view' for non-view relations).

Huh?  Just use the relkind to detect views.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump of regression (again)
Next
From: Thomas Lockhart
Date:
Subject: Touched-up regression tests