Re: How to give complete ownership of a new DB to a new user (non-SU)? - Mailing list pgsql-general

From Tom Lane
Subject Re: How to give complete ownership of a new DB to a new user (non-SU)?
Date
Msg-id 9988.1469645837@sss.pgh.pa.us
Whole thread Raw
In response to How to give complete ownership of a new DB to a new user (non-SU)?  (Billal Mahmood <billal.mahmood@rolustech.com>)
List pgsql-general
Billal Mahmood <billal.mahmood@rolustech.com> writes:
> *Problem Summary:*
> I'm facing changing ownership issue for a DB and all its DB objects (DB,
> schema, tables, sequences etc ownership).

While there's no magic single statement for this, I think you'll find
that REASSIGN OWNED takes most of the drudgery out of it, if you have
the template database set up properly.

            regards, tom lane


pgsql-general by date:

Previous
From: Billal Mahmood
Date:
Subject: How to give complete ownership of a new DB to a new user (non-SU)?
Next
From: Kevin Grittner
Date:
Subject: Re: Uber migrated from Postgres to MySQL