libpgtcl and array fields return format - PROPOSAL - Mailing list pgsql-interfaces

From Constantin Teodorescu
Subject libpgtcl and array fields return format - PROPOSAL
Date
Msg-id 37B1178F.1BDFB003@flex.ro
Whole thread Raw
Responses Re: [INTERFACES] libpgtcl and array fields return format - PROPOSAL  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
Hi,

In libpgtcl, pg_select an array field is return as the following string:

{"red","blue","green"}

and it's rather difficult to process them as a normal tcl list.
The same thing for pg_exec, pg_result/tupleArray

I think it would be better to return the string as:

"red" "blue" "green"

and tcl users could directly process the array as an ordinary tcl list.

As far as I know, arrays are not heavily used by libpgtcl users (thought
it's an interesting feature) so changing format would not affect too
many applications but will encourage array field usage in future.

What do you think?

Constantin Teodorescu
FLEX Consulting Braila, ROMANIA


pgsql-interfaces by date:

Previous
From: Spirou
Date:
Subject: PgAccess and arrays
Next
From: Thomas Lockhart
Date:
Subject: Re: [HACKERS] libpgtcl and array fields return format - PROPOSAL