Re: WIN1252 patch broke my database - Mailing list pgsql-hackers

From Tom Lane
Subject Re: WIN1252 patch broke my database
Date
Msg-id 25920.1111083785@sss.pgh.pa.us
Whole thread Raw
In response to Re: WIN1252 patch broke my database  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: WIN1252 patch broke my database
Re: WIN1252 patch broke my database
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> You shouldn't insert encodings in the middle, because those numbers are 
> exposed to clients.  We've had troubles with that before.  If you add 
> an encoding, append it as the last one (before the client encodings in 
> this case).  This would probably also eliminate the need for the 
> initdb.

It doesn't eliminate the need for initdb, because pg_conversion contains
instances of the client-only encoding numbers.  I think that clients
know the client-only encoding numbers too, so I'm not sure we aren't
stuck with a compatibility issue.

Perhaps, as long as we are forced to renumber, we should reassign the
client-only encodings to higher numbers (starting at 100, perhaps)
so that there will be daylight to avoid this issue in the future.
This would cost some wasted space in the tables, I think, but that
could be worked around if it's large enough to be annoying.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: Changing the default wal_sync_method to open_sync for
Next
From: Tom Lane
Date:
Subject: Re: PHP stuff