libpgtcl and array fields return format - PROPOSAL

From: Constantin Teodorescu <teo(at)flex(dot)ro>
To: PostgreSQL Interfaces <pgsql-interfaces(at)postgresql(dot)org>, "pgsql-hackers(at)postgreSQL(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: libpgtcl and array fields return format - PROPOSAL
Date: 1999-08-11 06:26:23
Message-ID: 37B1178F.1BDFB003@flex.ro
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 1999-08-11 06:31:17 Re: [HACKERS] Crisp text editor (probably OT)
Previous Message Oleg Bartunov 1999-08-11 05:29:48 Re: [HACKERS] Crisp text editor

Browse pgsql-interfaces by date

  From Date Subject
Next Message Thomas Lockhart 1999-08-11 12:23:05 Re: [HACKERS] libpgtcl and array fields return format - PROPOSAL
Previous Message Spirou 1999-08-11 05:23:23 PgAccess and arrays