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

From Philip Warner
Subject Re: Dumping views as views?
Date
Msg-id 3.0.5.32.20000915110124.028007d0@mail.rhyme.com.au
Whole thread Raw
In response to Re: Dumping views as views?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
At 11:45 14/09/00 -0400, Tom Lane wrote:
>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.

Sorry; what the above means is that I will get the views when I get the
tables, and call 'pg_get_viewdef' in all cases. I will check relkind when I
come to dump the 'table'.

----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/


pgsql-hackers by date:

Previous
From: "Mikheev, Vadim"
Date:
Subject: RE: Status of new relation file naming
Next
From: "Mikheev, Vadim"
Date:
Subject: RE: strange behaviour (bug)