Re: dump + restore didn't include schemas

Поиск
Список
Период
Сортировка
От Dan Langille
Тема Re: dump + restore didn't include schemas
Дата
Msg-id 401B9909.3871.1AA8C384@localhost
обсуждение исходный текст
Ответ на Re: dump + restore didn't include schemas  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: dump + restore didn't include schemas  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 31 Jan 2004 at 11:56, Tom Lane wrote:

> "Dan Langille" <dan@langille.org> writes:
> >>> I upgraded two servers today from 7.3.* to 7.4.1.  In both cases, the 
> >>> schemas which existed in the original databases were not created in 
> >>> the new database.
> 
> > I found three of these messages in /var/log/messages on the box which 
> > had the problem.
> 
> > ERROR:  permission denied for database pg_freebsddiary.org.schemas
> 
> Oh, I bet I know what this is: the owners of those schemas don't have
> CREATE SCHEMA privileges, right?  You made the schemas as superuser with
> CREATE SCHEMA foo AUTHORIZATION bar.
> 
> 7.4's pg_dump will use AUTHORIZATION so that situations like this
> restore correctly, but 7.3's pg_dump is stupid and tries to create the
> schema as its owner.

Does it matter that I used pg_dumpall?

> In general I recommend that during an upgrade, you use the new version's
> pg_dump to dump from the old server.  This way you get the benefit of
> whatever improvements have been made in pg_dump since the previous
> release.

Should that recommendation be added to the "If You Are Upgrading" 
section of INSTALL?
-- 
Dan Langille : http://www.langille.org/
BSDCan - http://www.bsdcan.org/



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: dump + restore didn't include schemas
Следующее
От: Tom Lane
Дата:
Сообщение: Re: dump + restore didn't include schemas