From: Shoaib Mir <shoaibmir@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Sandy Spence <axs@aber.ac.uk>
Cc: pgsql-admin@postgresql.org
Subject: Re: invalid types and tables
Date: Fri, 15 Dec 2006 21:21:57 +0500
Message-ID: <bf54be870612150821i28129158v6d2780f7fe836910@mail.gmail.com> (raw)
In-Reply-To: <9165.1166197788@sss.pgh.pa.us>
References: <bf54be870612150458k74c03e9fqa72a4e0eff9edf00@mail.gmail.com>
<002a01c7204d$c4afba90$520b3cc1@pc2axs>
<bf54be870612150547x7c383c75v6a0e2273dac67803@mail.gmail.com>
<9165.1166197788@sss.pgh.pa.us>
Agreed, that will be a good solution for this scenario...
Thanks,
---------
Shoaib Mir
EnterpriseDB (www,enterprisedb.com)
On 12/15/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> "Shoaib Mir" <shoaibmir@gmail.com> writes:
> > Well I will not recommend deleting rows like this from the meta data,
> but if
> > I will rather try using ALTER TABLE and ALTER TYPE to assign an owner
> for
> > the missing user referenced type or table
>
> No, just create a new user with the same usesysid as is shown as the
> owner in pg_class etc. See the SYSID option to CREATE USER.
>
> (FWIW, more recent PG versions prevent you from dropping users that still
> own objects.)
>
> regards, tom lane
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: shoaibmir@gmail.com, tgl@sss.pgh.pa.us, axs@aber.ac.uk
Subject: Re: invalid types and tables
In-Reply-To: <bf54be870612150821i28129158v6d2780f7fe836910@mail.gmail.com>
References: <bf54be870612150458k74c03e9fqa72a4e0eff9edf00@mail.gmail.com> <002a01c7204d$c4afba90$520b3cc1@pc2axs> <bf54be870612150547x7c383c75v6a0e2273dac67803@mail.gmail.com> <9165.1166197788@sss.pgh.pa.us> <bf54be870612150821i28129158v6d2780f7fe836910@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox