Re: psql Feature request \set query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: josh(at)agliodbs(dot)com
Cc: postgres hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql Feature request \set query
Date: 2008-10-22 23:03:48
Message-ID: 28152.1224716628@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Josh Berkus <josh(at)agliodbs(dot)com> writes:
> but you can't do
> \set myvar "Select now()"

That's a seriously ridiculous syntax.

If you want something like this, a variant of \g that squirts the
results to a variable instead of a file would be more usable:
no quoting problems and no restriction to a single-line query.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2008-10-22 23:06:59 Re: psql Feature request \set query
Previous Message Robert Haas 2008-10-22 22:57:19 Re: minimal update