Re: TODO updates - Mailing list pgsql-hackers

From Philip Warner
Subject Re: TODO updates
Date
Msg-id 3.0.5.32.20000724140537.023f3e30@mail.rhyme.com.au
Whole thread Raw
In response to Re: TODO updates  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: TODO updates  (Philip Warner <pjw@rhyme.com.au>)
List pgsql-hackers
At 23:50 23/07/00 -0400, Tom Lane wrote:
>
>I'm more worried about failing to allow access that's necessary to do
>the restore.  What about
>
>\connect - user1
>
>create table t1;
>
>\connect - user2
>
>create rule .... (refers to t1)
>
>I think the create rule will fail if you haven't yet granted user2
>access rights for t1.
>

You are right; and I just noticed two bugs in pg_dump - (1) it does not
dump the owner of a view (which means the ACLs still might fail), and (2)
it does not reconnect to DB when using a direct DB connection, so
everything is created by one user.

So, I'll put the ACLs in OID order and fix the dump & restore code...


----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.C.N. 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: Tom Lane
Date:
Subject: Re: TODO updates
Next
From: Philip Warner
Date:
Subject: Re: TODO updates