From:
Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To:
Shigeru Hanada <shigeru(dot)hanada(at)gmail(dot)com>
Cc:
Andrew Dunstan <andrew(at)dunslane(dot)net>, Phil Sorber <phil(at)omniti(dot)com>, Erik Rijkers <er(at)xs4all(dot)nl>, David Fetter <david(at)fetter(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject:
Re: proposal - assign result of query to psql variable
Date:
2013-02-01 05:22:59
Message-ID:
CAFj8pRA_f_wg0dhTaVO8rGdbeJN+XarW9rSCDjk1KGrUDSgg+Q@mail.gmail.com (view raw or flat )
Thread:
2012-07-26 05:13:01 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-07-26 05:36:17 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2012-07-26 05:37:40 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-07-26 06:19:55 from David Fetter <david(at)fetter(dot)org>
2012-07-26 06:31:13 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-07-26 06:36:55 from David Fetter <david(at)fetter(dot)org>
2012-07-26 06:44:23 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-07-27 05:49:28 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2012-07-28 16:11:21 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-08-01 04:05:26 from David Fetter <david(at)fetter(dot)org>
2012-08-09 18:21:25 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-09-19 09:51:13 from Shigeru HANADA <shigeru(dot)hanada(at)gmail(dot)com>
2012-09-20 17:01:35 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-09-21 08:24:59 from Shigeru HANADA <shigeru(dot)hanada(at)gmail(dot)com>
2012-09-27 19:09:19 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-10-12 15:58:05 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-10-13 05:08:31 from Shigeru HANADA <shigeru(dot)hanada(at)gmail(dot)com>
2012-10-13 17:26:18 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-10-13 22:11:14 from "Erik Rijkers" <er(at)xs4all(dot)nl>
2012-10-14 18:23:20 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-10-14 21:13:40 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2012-10-15 03:57:42 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-10-15 10:17:42 from Shigeru HANADA <shigeru(dot)hanada(at)gmail(dot)com>
2012-10-15 10:48:53 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-10-15 12:16:25 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-10-15 21:59:10 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-10-16 08:14:36 from Shigeru HANADA <shigeru(dot)hanada(at)gmail(dot)com>
2012-10-16 16:24:12 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-10-24 18:48:07 from Phil Sorber <phil(at)omniti(dot)com>
2012-10-25 14:24:14 from Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
2012-10-25 14:38:15 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2012-10-25 15:03:56 from Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
2012-10-25 15:37:07 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-10-25 15:49:00 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2012-10-25 15:58:58 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-10-27 17:23:38 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-10-27 22:16:39 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-12-17 09:44:55 from Shigeru Hanada <shigeru(dot)hanada(at)gmail(dot)com>
2012-12-17 17:52:19 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-12-19 06:39:00 from Shigeru Hanada <shigeru(dot)hanada(at)gmail(dot)com>
2012-12-19 08:03:13 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2013-01-26 03:50:00 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2013-01-26 16:42:37 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2013-01-26 17:04:35 from Andrew Dunstan <andrew(at)dunslane(dot)net>
2013-01-26 17:25:28 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2013-01-28 20:00:37 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2013-02-01 05:22:59 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2013-02-01 22:56:05 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2013-02-02 10:30:12 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2013-02-02 11:25:45 from Shigeru Hanada <shigeru(dot)hanada(at)gmail(dot)com>
2013-02-02 14:43:46 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2013-02-02 17:38:29 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2013-02-02 20:39:02 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2013-02-02 22:12:25 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2013-02-03 18:22:17 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2013-02-03 19:02:27 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2013-02-03 19:34:24 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2013-01-26 17:26:37 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-10-15 09:34:09 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
2012-10-15 09:56:39 from Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Lists:
pgsql-hackers
Hello
can you look, please, on updated version - it respects Tom's proposal
and it is significantly reduced?
Thank you
Pavel Stehule
2013/1/28 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>:
> Hello
>
> 2013/1/26 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
>> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>>> +1. This looks quite nifty. Maybe useful too to have a default prefix
>>> via some setting.
>>
>> Meh. I would expect that "\gset :foo" would work to specify a computed
>> prefix if you wanted it --- isn't that sufficient indirection? I'm not
>> thrilled with further expanding the set of magic variables in psql.
>>
>
> here is patch related to your proposal
>
> Regards
>
> Pavel
>
>> regards, tom lane
In response to
pgsql-hackers by date
Next :From: Pavel StehuleDate: 2013-02-01 05:37:39
Subject : Re: Re: proposal: a width specification for s specifier
(format function), fix behave when positional and ordered placeholders are used
Previous :From : Amit KapilaDate : 2013-02-01 05:04:33
Subject : Re: Suggestion: Issue warning when calling SET TRANSACTION outside transaction block