Re: How to change table owner? - Mailing list pgsql-admin

From Tom Lane
Subject Re: How to change table owner?
Date
Msg-id 7919.1039448139@sss.pgh.pa.us
Whole thread Raw
In response to How to change table owner?  (Anders Bogdan <anders@theworks.org>)
Responses Re: How to change table owner?
List pgsql-admin
Anders Bogdan <anders@theworks.org> writes:
> I've created and deployed a number of databases and am now getting
> around to adding some table maintenance (a vacuum script). But, the
> script can't run as the "postgres" user. It runs as a defined db user
> "admin".. Unfortunately, in my db schema the tables are owned by
> postgres and my script doesn't have permission to vacuum.

Make "admin" a postgres superuser.  (I think "ALTER USER admin CREATEUSER"
is the approved way to do this.)

            regards, tom lane

pgsql-admin by date:

Previous
From: Anders Bogdan
Date:
Subject: How to change table owner?
Next
From: Anders Bogdan
Date:
Subject: Re: How to change table owner?