Re: BUG #16703: pg-dump fails to process recursive view definition

From: Andrew Bille <andrewbille(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, exclusion(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16703: pg-dump fails to process recursive view definition
Date: 2020-11-06 16:42:33
Message-ID: CAJnzarxfMQRkXd6KKeTx5bJhEPzQd1aHpNL3As0u=SztGfTg_g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Thanks.

After removing views like this from my dump, produced from the modified
regression test results (with most of DROP's deleted), I did not find any
other problems

regards, Andrew Bille

On Fri, Nov 6, 2020 at 10:05 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Andrew Bille <andrewbille(at)gmail(dot)com> writes:
> > pg_dump is also fails to process the view created by the following script
> > (excerpt from privileges.sql):
>
> > CREATE USER user1;
> > CREATE TABLE test (col1 varchar(10), col2 boolean);
> > SET SESSION AUTHORIZATION user1;
> > CREATE VIEW testv AS SELECT * FROM test;
>
> Hm, yeah, so more to do here. (Sure glad we found these issues before
> next week's releases, not after.)
>
> I propose that what we'd better do is
>
> (1) Make pg_dump use LOCK TABLE ONLY, not LOCK TABLE.
>
> (2) Make LOCK TABLE ONLY on a view not recurse to the view's dependencies.
> It's quite unclear to me why it didn't work that way all along.
>
> regards, tom lane
>

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2020-11-06 20:25:39 Re: BUG #16703: pg-dump fails to process recursive view definition
Previous Message Ross Biro 2020-11-06 15:14:54 Re: BUG #16705: Triggers deferred during commit callback are not executed