remove TCL_ARRAYS - Mailing list pgsql-patches

From Alvaro Herrera
Subject remove TCL_ARRAYS
Date
Msg-id 20080229143414.GE4673@alvh.no-ip.org
Whole thread Raw
Responses Re: remove TCL_ARRAYS  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
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.

Attachment

pgsql-patches by date:

Previous
From: Robert Lor
Date:
Subject: Re: DTrace probe patch for OS X Leopard
Next
From: Robert Lor
Date:
Subject: Re: DTrace probe patch for OS X Leopard