Re: [HACKERS] psql -c does not honor ON_ERROR_STOP

2015-01-07 Thread Joe Conway
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/06/2015 12:36 PM, Tom Lane wrote: > -c submits the entire string to the backend in one PQexec(); > therefore ON_ERROR_STOP cannot have any impact on its behavior. > The backend will abandon processing the whole string upon first > error, embedded

Re: [HACKERS] psql -c does not honor ON_ERROR_STOP

2015-01-06 Thread Tom Lane
Joe Conway writes: > This seems like either a psql bug or maybe just a documentation bug. I > know the psql docs say that -c behavior can be surprising, but I find > the below surprising even after reading the docs a couple of times. > Given that ON_ERROR_STOP defaults to off, it seems like these

[HACKERS] psql -c does not honor ON_ERROR_STOP

2015-01-06 Thread Joe Conway
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This seems like either a psql bug or maybe just a documentation bug. I know the psql docs say that -c behavior can be surprising, but I find the below surprising even after reading the docs a couple of times. Given that ON_ERROR_STOP defaults to off, i