Re: pgbench - allow to store select results into variables - Mailing list pgsql-hackers

From Robert Haas
Subject Re: pgbench - allow to store select results into variables
Date
Msg-id CA+TgmoaFOUVh5E5qbMjV6L6ub1NFML7U+4Cx+8CvLQgRPrO4Ng@mail.gmail.com
Whole thread Raw
In response to Re: pgbench - allow to store select results into variables  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: pgbench - allow to store select results into variables  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: pgbench - allow to store select results into variables  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
On Sat, Jul 9, 2016 at 7:52 AM, Fabien COELHO <coelho@cri.ensmp.fr> wrote:
> If someone thinks that "gset" is a good idea for pgbench, which I don't, it
> could be implemented. I think that an "into" feature, like PL/pgSQL & ECPG,
> makes more sense for scripting.

I agree: I like \into.

But:

> SELECT 1, 2 \; SELECT 3;
>  \into one two three

I think that's pretty weird.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Header and comments describing routines in incorrect shape in visibilitymap.c
Next
From: Robert Haas
Date:
Subject: Re: One process per session lack of sharing