Re: Proposal to add --single-row to psql - Mailing list pgsql-hackers

From Fabrízio de Royes Mello
Subject Re: Proposal to add --single-row to psql
Date
Msg-id CAFcNs+pBhK=zL_a_TKxRNU1JPsdq+A+Bdoty8+_nryJcg1bwnQ@mail.gmail.com
Whole thread
In response to Re: Proposal to add --single-row to psql  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Proposal to add --single-row to psql
List pgsql-hackers

On Tue, Apr 23, 2013 at 1:05 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Isn't there already a way to set FETCH_COUNT from the command line?
> (ie, I think there's a generic variable-assignment facility that could
> do this)
>

Christopher,

Tom is all right... from psql [1] command line we can do that:

$ bin/psql --variable=FETCH_COUNT=100
psql (9.3devel)
Type "help" for help.

fabrizio=# \echo :FETCH_COUNT
100

Regards,

[1] http://www.postgresql.org/docs/current/interactive/app-psql.html#AEN84903

--
Fabrízio de Royes Mello
Consultoria/Coaching PostgreSQL
>> Blog sobre TI: http://fabriziomello.blogspot.com
>> Perfil Linkedin: http://br.linkedin.com/in/fabriziomello
>> Twitter: http://twitter.com/fabriziomello

pgsql-hackers by date:

Previous
From: Florian Pflug
Date:
Subject: Re: GSOC Student Project Idea
Next
From: Jeevan Chalke
Date:
Subject: Re: REFRESH MATERIALIZED VIEW command in PL block hitting Assert