Re: CONVERT function is seriously broken - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: CONVERT function is seriously broken
Date
Msg-id 200211020410.gA24AEV12318@candle.pha.pa.us
Whole thread Raw
In response to CONVERT function is seriously broken  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: CONVERT function is seriously broken  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> I have just noticed that the implementation of
>     CONVERT(text USING encoding_name)
> tries to do database access during the grammar phase, viz it looks
> up the encoding_name in pg_conversion and replaces it with an OID.
> 
> This is not workable; consider the situation where we are in an
> already-aborted transaction.  Using a pg_conversion OID in stored rules
> isn't very acceptable either.
> 
> Unfortunately, I don't see any way offhand to fix this without an
> initdb :-(.

Ooch, that hurts.  How bad would it be if it was broken in 7.3?

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Some questions about the NetWare Port - please comment
Next
From: Larry Rosenman
Date:
Subject: Re: 7.3B3 psql talking to a 7.2.3 server?