Skip site navigation (1) Skip section navigation (2)

Re: InitPostgres and flatfiles question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Markus Schiltknecht <markus(at)bluegap(dot)ch>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: InitPostgres and flatfiles question
Date: 2007-01-04 16:44:36
Message-ID: 18111.1167929076@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Markus Schiltknecht <markus(at)bluegap(dot)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

In response to

Responses

pgsql-hackers by date

Next:From: Simon RiggsDate: 2007-01-04 16:51:50
Subject: Re: [HACKERS] wal_checksum = on (default) | off
Previous:From: Tom LaneDate: 2007-01-04 16:42:33
Subject: Re: Odd numeric->float4/8 casting behaviour

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group