Re: [PORTS] Port Bug Report: pg_dump does incorrect save of permissions in 6.4 - Mailing list pgsql-ports

From Bruce Momjian
Subject Re: [PORTS] Port Bug Report: pg_dump does incorrect save of permissions in 6.4
Date
Msg-id 199906242301.TAA28903@candle.pha.pa.us
Whole thread Raw
In response to Port Bug Report: pg_dump does incorrect save of permissions in 6.4  ("Henry B. Hotz" <hotz@jpl.nasa.gov>)
List 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@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-ports by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PORTS] Win N
Next
From: Tasuka Amano Hsu
Date:
Subject: Postgresql 6.5