From: | Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, dinesh kumar <dineshkumar02(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: proposal: multiple psql option -c |
Date: | 2015-07-27 21:15:19 |
Message-ID: | 55B69F67.1040907@BlueTreble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 7/27/15 2:57 PM, Andrew Dunstan wrote:
>>
>> psql -At -c "select datname from pg_database" postgres | xargs -n 1 -P
>> 3 psql -c "select current_database()"
>>
>>
>
>
> I don't think it's going to be a hugely important feature, but I don't
> see a problem with creating a new option (-C seems fine) which would
> have the same effect as if the arguments were contatenated into a file
> which is then used with -f. IIRC -c has some special characteristics
> which means it's probably best not to try to extend it for this feature.
+1. I've occasionally wanted this as well.
I'd also vote for -C returning every state string as well.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Data in Trouble? Get it in Treble! http://BlueTreble.com
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2015-07-27 21:17:42 | WIP: Make timestamptz_out less slow. |
Previous Message | Jim Nasby | 2015-07-27 21:10:14 | Re: RFC: replace pg_stat_activity.waiting with something more descriptive |