Re: copy a database

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: copy a database
Дата
Msg-id 20040825190842.GA19562@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: copy a database  (Oliver Elphick <olly@lfix.co.uk>)
Ответы Re: copy a database  (Oliver Elphick <olly@lfix.co.uk>)
Список pgsql-general
On Wed, Aug 25, 2004 at 05:57:35PM +0100, Oliver Elphick wrote:
> On Wed, 2004-08-25 at 17:09, Alvaro Herrera wrote:
> > On Wed, Aug 25, 2004 at 04:25:02PM +0100, Oliver Elphick wrote:
>
> > > Maybe recreating pg_user in the database will help.  It is a global
> > > table, so if you have other databases where pg_user exists, copy the row
> > > from pg_class in that database to pg_class in the corrupted database.
> >
> > No, pg_user is a view on pg_shadow ...
>
> Fingers!  view ... table ... thingy
>
> What I meant is that, since it is global, recreating the item in
> pg_class as a copy of the entry in another database should possibly get
> rid of the pg_dump problem.  If you create a new view, the result will
> presumably not be restorable.

But pg_user is not global ...

alvherre=# select relname, relisshared from pg_class where relname = 'pg_user';
 relname | relisshared
---------+-------------
 pg_user | f
(1 fila)

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"No deja de ser humillante para una persona de ingenio saber
que no hay tonto que no le pueda enseñar algo." (Jean B. Say)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: copy a database
Следующее
От: "Cornelia Boenigk"
Дата:
Сообщение: Re: Problem to connect to the Windows Port