Re: VIP: new format for psql - shell - simple using psql in shell

From: Jim Nasby <jim(at)nasby(dot)net>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: VIP: new format for psql - shell - simple using psql in shell
Date: 2012-06-04 20:32:33
Message-ID: 4FCD1B61.1070802@nasby.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 5/26/12 10:16 PM, Pavel Stehule wrote:
> My idea is secure to separator - because separator is just space and
> new line and these symbols are escaped.

ISTM it'd be a really good idea to support something other than space, since presumably that'd be trivial.

I'm not a fan of supporting the array construction. If you get to that level of complexity in bash it's a really good sign that you need to use a real language.

If we do add array support then it needs to be keyed to the actual shell in use, because it's inconsistent between them.
--
Jim C. Nasby, Database Architect jim(at)nasby(dot)net
512.569.9461 (cell) http://jim.nasby.net

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2012-06-04 20:36:05 Re: No, pg_size_pretty(numeric) was not such a hot idea
Previous Message Christopher Browne 2012-06-04 19:49:37 Re: Re: [COMMITTERS] pgsql: Send new protocol keepalive messages to standby servers.