Re: Some 8.4 changes needed according to pg_migrator testing

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Some 8.4 changes needed according to pg_migrator testing
Дата
Msg-id 20090507175437.GB13586@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Some 8.4 changes needed according to pg_migrator testing  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Some 8.4 changes needed according to pg_migrator testing  (Magnus Hagander <magnus@hagander.net>)
Re: Some 8.4 changes needed according to pg_migrator testing  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Tom Lane wrote:

> Actually, there's another issue that comes to mind here: since we are
> relying on platform-dependent locale names, including those in the dump
> is going to pose a severe problem for porting dumps across platforms
> (where "different platform" could even mean "different libc release").
> We're already at risk with respect to dumps from 8.4, even without the
> above-proposed change.
> 
> I am not sure what we can do about this.  Ideas?

I don't think there's much we can do apart from telling the user not to
move stuff across platforms that do not have equally named locales.
Maybe what we can do is have a mechanism for pg_restore to map one
locale from the dump file into another.  So the user can specify a file
with lines like
"en_US := English_UnitedStates"
etc

(For text dumps, the only solution would be for the user to edit the
dump manually; perhaps provide a pg_dump switch to avoid dumping
locale config?).

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: "David E. Wheeler"
Дата:
Сообщение: Re: Some 8.4 changes needed according to pg_migrator testing
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Some 8.4 changes needed according to pg_migrator testing