Re: How to change table owner?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Anders Bogdan <anders(at)theworks(dot)org>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: How to change table owner?
Date: 2002-12-09 15:35:39
Message-ID: 7919.1039448139@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Anders Bogdan <anders(at)theworks(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Anders Bogdan 2002-12-09 16:00:27 Re: How to change table owner?
Previous Message Anders Bogdan 2002-12-09 14:39:34 How to change table owner?