remove TCL_ARRAYS

Started by Alvaro Herreraover 18 years ago3 messagespatches
Jump to latest
#1Alvaro Herrera
alvherre@2ndquadrant.com

This patch removes the TCL_ARRAY symbol. This seems to be a leftover
from when pgtcl was around in the backend; if enabled, it causes
array_out to emit bogus array values:

alvherre=# create table bar ( a text);
CREATE TABLE
alvherre=# insert into bar values ('foo"');
INSERT 0 1
alvherre=# select array_append('{}', a) from bar;
array_append
--------------
{"foo""}
(1 ligne)

The correct value is

alvherre=# select array_append('{}', a) from bar;
array_append
--------------
{"foo\""}
(1 ligne)

Of course, the system does not accept the TCL_ARRAY value back.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

Attachments:

remove-tcl-arrays.patchtext/x-diff; charset=us-asciiDownload+0-6
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Alvaro Herrera (#1)
Re: remove TCL_ARRAYS

Alvaro Herrera <alvherre@commandprompt.com> writes:

This patch removes the TCL_ARRAY symbol.

If you're going to remove it you should actually remove it
(eg from pg_config_manual.h).

This seems to be a leftover
from when pgtcl was around in the backend;

Yeah, it was supporting some kluge or other in the libpgtcl client.
AFAICT from the 7.x code, the client-side kluge was never enabled by
default anyway, so it seems unlikely anyone will miss it.

regards, tom lane

#3Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Tom Lane (#2)
Re: remove TCL_ARRAYS

Tom Lane wrote:

Alvaro Herrera <alvherre@commandprompt.com> writes:

This patch removes the TCL_ARRAY symbol.

If you're going to remove it you should actually remove it
(eg from pg_config_manual.h).

Oops. Thanks, removed from there too.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.