From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | "Henry B(dot) Hotz" <hotz(at)jpl(dot)nasa(dot)gov> |
Cc: | pgsql-ports(at)postgreSQL(dot)org |
Subject: | Re: [PORTS] Port Bug Report: pg_dump does incorrect save of permissions in 6.4 |
Date: | 1999-06-24 23:01:53 |
Message-ID: | 199906242301.TAA28903@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-ports |
> Problem Description:
> --------------------
> pg_dump -z creates grant commands of the form
> grant "all" on "hotz" to "hotz";
> instead of
> grant "all" on "table" to "hotz";
>
> Don't know if this is fixed in newer dot revisions or 6.5.
>
> --------------------------------------------------------------------------
>
> Test Case:
> ----------
> pg_dump -z <database> >db.backup
I just did this:
test=> create table test (x int);
CREATE
test=> grant all on test to postgres;
CHANGE
test=> \q
#$ pg_dump -z -d test >/bjm/l
pg_dump: The -z option(dump ACLs) is now the default, continuing.
#$ less /bjm/l
\connect - postgres
CREATE TABLE "test" (
"x" int4);
REVOKE ALL on "test" from PUBLIC;
GRANT ALL on "test" to "postgres";
#$
Looks OK to me.
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Tasuka Amano Hsu | 1999-06-25 06:21:15 | Postgresql 6.5 |
Previous Message | Bruce Momjian | 1999-06-24 22:53:43 | Re: [PORTS] Win N |