Unix Technical Forum

pgsql: Change initdb and CREATE DATABASE to actively reject attempts to

This is a discussion on pgsql: Change initdb and CREATE DATABASE to actively reject attempts to within the pgsql Committers forums, part of the PostgreSQL category; --> Log Message: ----------- Change initdb and CREATE DATABASE to actively reject attempts to create databases with encodings that are ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Committers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 01:47 AM
Tom Lane
 
Posts: n/a
Default pgsql: Change initdb and CREATE DATABASE to actively reject attempts to

Log Message:
-----------
Change initdb and CREATE DATABASE to actively reject attempts to create
databases with encodings that are incompatible with the server's LC_CTYPE
locale, when we can determine that (which we can on most modern platforms,
I believe). C/POSIX locale is compatible with all encodings, of course,
so there is still some usefulness to CREATE DATABASE's ENCODING option,
but this will insulate us against all sorts of recurring complaints
caused by mismatched settings.

I moved initdb's existing LC_CTYPE-to-encoding mapping knowledge into
a new src/port/ file so it could be shared by CREATE DATABASE.

Modified Files:
--------------
pgsql/doc/src/sgml:
charset.sgml (r2.83 -> r2.84)
(http://developer.postgresql.org/cvsw...1=2.83&r2=2.84)
pgsql/doc/src/sgml/ref:
create_database.sgml (r1.47 -> r1.48)
(http://developer.postgresql.org/cvsw...1=1.47&r2=1.48)
pgsql/src:
Makefile.global.in (r1.238 -> r1.239)
(http://developer.postgresql.org/cvsw...1.238&r2=1.239)
pgsql/src/backend/commands:
dbcommands.c (r1.198 -> r1.199)
(http://developer.postgresql.org/cvsw...1.198&r2=1.199)
pgsql/src/bin/initdb:
initdb.c (r1.142 -> r1.143)
(http://developer.postgresql.org/cvsw...1.142&r2=1.143)
pgsql/src/include:
port.h (r1.112 -> r1.113)
(http://developer.postgresql.org/cvsw...1.112&r2=1.113)
pgsql/src/port:
Makefile (r1.34 -> r1.35)
(http://developer.postgresql.org/cvsw...1=1.34&r2=1.35)

Added Files:
-----------
pgsql/src/port:
chklocale.c (r1.1)
(http://developer.postgresql.org/cvsw...-cvsweb-markup)

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:54 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com