Skip site navigation (1) Skip section navigation (2)

Re: Dumping views as views?

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org, Mark Hollomon <mhh(at)mindspring(dot)com>
Subject: Re: Dumping views as views?
Date: 2000-09-15 01:01:24
Message-ID: 3.0.5.32.20000915110124.028007d0@mail.rhyme.com.au (view raw or flat)
Thread:
Lists: pgsql-hackers
At 11:45 14/09/00 -0400, Tom Lane wrote:
>Philip Warner <pjw(at)rhyme(dot)com(dot)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   |/

In response to

pgsql-hackers by date

Next:From: Philip WarnerDate: 2000-09-15 01:22:01
Subject: Re: pg_dump of regression (again)
Previous:From: Hiroshi InoueDate: 2000-09-15 00:19:34
Subject: RE: Status of new relation file naming

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group