Re: proposal: multiple psql option -c
От | Pavel Stehule |
---|---|
Тема | Re: proposal: multiple psql option -c |
Дата | |
Msg-id | CAFj8pRAE520FdhFL_3o9_0MgdGZW4h12PPWU_DyEUFmys1Z8mA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: proposal: multiple psql option -c (Catalin Iacob <iacobcatalin@gmail.com>) |
Ответы |
Re: proposal: multiple psql option -c
|
Список | pgsql-hackers |
Hi
2015-11-25 17:13 GMT+01:00 Catalin Iacob <iacobcatalin@gmail.com>:
On Wed, Nov 18, 2015 at 5:49 PM, Catalin Iacob <iacobcatalin@gmail.com> wrote:
> On Tue, Nov 17, 2015 at 10:13 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> 1. -c no longer implies --no-psqlrc. That's a backwards incompatibility,
>> but very easy to explain and very easy to work around.
>>
>> 2. You can have multiple -c and/or -f. Each -c is processed in
>> the traditional way, ie, either it's a single backslash command
>> or it's sent in a single PQexec. That doesn't seem to me to have
>> much impact on the behavior of adjacent -c or -f.
>>
>> 3. If you combine -1 with -c and/or -f, you get one BEGIN inserted
>> at the beginning and one COMMIT at the end. Nothing else changes.
> I'll try to write the documentation patch for these semantics sometime
> next week.
Attached is my attempt at a documentation patch, feedback welcome. I'm
assuming Pavel will pick up the implementation, if not I could also
try it.
I am sorry for delay - the end of year :(
Attached patch per Tom Lane proposal.
* multiple -c -f options are supported, the order of options is respected
* the statements for one -c options are executed in transactions
* Iacob's doc patch merged
Regards
Pavel
Вложения
В списке pgsql-hackers по дате отправления: