Re: [ADMIN] Upgrade problem, with GRANT - Mailing list pgsql-admin

From Bruce Momjian
Subject Re: [ADMIN] Upgrade problem, with GRANT
Date
Msg-id 199807150350.XAA03966@candle.pha.pa.us
Whole thread Raw
In response to Upgrade problem, with GRANT  (Michael <wwwadmin@wizard.ca>)
List pgsql-admin
> Well, since I am posting I might as well ask two questions..
>
> FIrst, when I upgraded from 6.2.1 to 6.3.2 I performed a pg_dumpall and
> after I did an import of the db.out.. All seemed okay, and I assumed
> that permissions were okay, but I was wrong.
> I was able to log in under postgres user, and the data seemed fine, but
> there were no GRANTS
> THEN I tried to GRANT all on table_name to user_name;
> but it kept coming up as nonexistent user.. It worked fine before the
> upgrade, and the user_name does indeed exist..
> What is the problem?

This is the first time this has come up.  When we added pg_shadow in
6.3, we made pg_user a view.  I don't thing pg_dumpall is going to
preserve users for such an upgrade, as it normally does.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-admin by date:

Previous
From: Michael
Date:
Subject: Upgrade problem, with GRANT
Next
From: Reshma Choodanath
Date:
Subject: field types