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 | 20090508183017.GH10794@alvh.no-ip.org обсуждение исходный текст |
Ответ на | Re: Some 8.4 changes needed according to pg_migrator testing (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>) |
Ответы |
Re: Some 8.4 changes needed according to pg_migrator testing
|
Список | pgsql-hackers |
Heikki Linnakangas wrote: > If we go with that, we should probably make the notion of a default > collation explicit. We could set pg_database.datcollate/datctype column > to NULL to mean "use the cluster default". I'm not sure how this would work. If I initdb with a certain locale/encoding and then create a database with default locale/encoding, how would a restore work on a cluster that has been initdb'd with a different locale/encoding? If you don't dump the locale specification, it could very well not match what the user intended. > I don't find the idea of creating mapping tables of locale names very > appetizing. Looking at our encoding name mapping table, there's quite a > few different spellings of different encoding names alone, let alone all > locale names. Yeah, it doesn't seem pleasant that way. When I proposed it I was thinking that the mapping would be specified by the user. OTOH since it's only pg_dumpall output that's the problem, this idea is not be very useful because there will be no way for a tool to do the replacement. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-hackers по дате отправления: