From: | Chris Travers <chris(dot)travers(at)gmail(dot)com> |
---|---|
To: | salah jubeh <s_jubeh(at)yahoo(dot)com> |
Cc: | pgsql <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: roles |
Date: | 2011-07-01 12:49:35 |
Message-ID: | BANLkTikTeHq0_yhkaOuOYKfnBsOqVZ9AQA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Fri, Jul 1, 2011 at 5:06 AM, salah jubeh <s_jubeh(at)yahoo(dot)com> wrote:
>
> Hello,
>
> I have two databases, I need to insure that both databases has the same
> roles. tables, schemas, views must have the same permissions and
> privileges. you can say and Identical clones. I can synchronize the roles
> using these statements
I guess it kinda depends on what you are trying to do.
If these are db's on the same db cluster, then no action is necessary
since roles are shared among databases. If they are on different
clusters and servers, I think your approach will fail to synchronize
passwords if those are required. I would probably do a pg_dumpall -s
and use grep to pullout the create/alter role statements along with
grants.
Best wishes,
Chris Travers
From | Date | Subject | |
---|---|---|---|
Next Message | AI Rumman | 2011-07-01 13:16:52 | Re: pg_rman in Windows - is it possible? |
Previous Message | Rob Richardson | 2011-07-01 12:39:13 | Re: roles |