Re: current is broken - Mailing list pgsql-hackers

From Tom Lane
Subject Re: current is broken
Date
Msg-id 18468.968984592@sss.pgh.pa.us
Whole thread Raw
In response to RE: current is broken  (Philip Warner <pjw@rhyme.com.au>)
Responses RE: current is broken
Re: current is broken
List pgsql-hackers
Philip Warner <pjw@rhyme.com.au> writes:
> The only thing that's missing is a 'rulekind' for rules - it would be very
> nice if pg_dump could use a simple method (that didn't involve munging
> names) to determin is a rule is a 'view rule'.

Oh, I finally see the problem: when you come to dump out the rules, you
need to avoid dumping the rules that correspond to views because you're
going to emit the CREATE VIEW commands separately.

You don't really need a rulekind though.  If it's an ON SELECT rule for
a relation that you've determined to be a view, then the rule is a
view rule.  Otherwise, you print the rule.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump of regression (again)
Next
From: "Hiroshi Inoue"
Date:
Subject: RE: current is broken