Re: change owner to all object in a schema

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: change owner to all object in a schema
Date: 2007-12-21 12:42:24
Message-ID: 20071221124224.GA6943@KanotixBox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Nicola Benaglia <nico(dot)benaz(at)gmail(dot)com> schrieb:

> Hi!
> I searched a lot on the net, but I haven't found a quick way to change
> owner to all objects in a schema.
> Could you please suggest me a tool or an existing script to do that ?

There are any scripts, for instance:

13:38 < akretschmer> ??grantall
13:38 < rtfm_please> For information about grantall
13:38 < rtfm_please> see http://pgedit.com/public/sql/acl_admin/index.html
13:38 < rtfm_please> or http://unf.be/postgresql/postgres_grant_all.perl
13:38 < rtfm_please> or http://www.archonet.com/pgdocs/grant-all.html

(answer from the nice doc-bot on our irc-channel)

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Childs 2007-12-21 13:36:36 Re: Conditional updateable view
Previous Message Greg Smith 2007-12-21 12:29:41 Re: Machine spec 64-bit/32 GB RAM