Re: missing data

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Dave Perkins <drp(at)shore(dot)net>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: missing data
Date: 2001-03-29 20:07:37
Message-ID: Pine.LNX.4.30.0103292205441.2091-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dave Perkins writes:

> >Depending on your definition of "no trace", this might work: Try
> >
> >select relname, relowner from pg_class;
> >
> >If this shows table names that sound familiar, then it is likely that the
> >user indicated by "relowner" disappeared. Look into the table pg_shadow
> >to make sure some user's usesysid column matches relowner. (It's safe to
> >change these with update commands.)
>
> Thanks for the prompt reply. I did find tables when running the SELECT you
> suggested above and also found an entry in pg_shadow that matches relowner
> for those tables.
>
> Any thoughts on where this leaves me?

Either you update relowner to match an existing user, or you update an
existing user's usesysid to match relowner. Note that the first option is
more labor if you also have functions and other objects that seem
"missing".

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Swaminathan Natarajan 2001-03-29 20:19:35 PLEASE HELP ME!: binary data in text/varchar?
Previous Message Tom Lane 2001-03-29 20:07:02 Re: missing data