Re: InitPostgres and flatfiles question - Mailing list pgsql-hackers

From Tom Lane
Subject Re: InitPostgres and flatfiles question
Date
Msg-id 18111.1167929076@sss.pgh.pa.us
Whole thread Raw
In response to Re: InitPostgres and flatfiles question  (Markus Schiltknecht <markus@bluegap.ch>)
Responses Re: InitPostgres and flatfiles question  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
Markus Schiltknecht <markus@bluegap.ch> writes:
> Tom Lane wrote:
>> Hm, that's an interesting point.  psql's -c just shoves its whole
>> argument string at the backend in one PQexec(), instead of dividing
>> at semicolons as psql does with normal input.

> Is there a good reason to not let psql -c behave exactly like psql from 
> STDIN?

Backwards compatibility, mostly --- there seems to be a considerable
risk of subtly breaking people's scripts if we change the transactional
boundaries for psql -c commands.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Odd numeric->float4/8 casting behaviour
Next
From: "Simon Riggs"
Date:
Subject: Re: [PATCHES] wal_checksum = on (default) | off