Re: missing data

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: missing data
Дата
Msg-id Pine.LNX.4.30.0103292205441.2091-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: missing data  (Dave Perkins <drp@shore.net>)
Список 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@gmx.net       http://yi.org/peter-e/


В списке pgsql-general по дате отправления:

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: ORDER BY and ignoring the , a , and an
Следующее
От: "Gregory Wood"
Дата:
Сообщение: Re: ORDER BY and ignoring the , a , and an