Re: Make ON_ERROR_STOP stop on shell script failure - Mailing list pgsql-hackers

From Corey Huinker
Subject Re: Make ON_ERROR_STOP stop on shell script failure
Date
Msg-id CADkLM=famwUGCGfH7WCVaqk5LKeUqL-bsRs+CaXPwVnb15fSuQ@mail.gmail.com
Whole thread Raw
In response to Re: Make ON_ERROR_STOP stop on shell script failure  (Justin Pryzby <pryzby@telsasoft.com>)
List pgsql-hackers


I think it'd be a lot better to expose the script status to psql.
(without having to write "foo; echo status=$?").

I agree, and I hacked up a proof of concept, but started another thread at https://www.postgresql.org/message-id/CADkLM=cWao2x2f+UDw15W1JkVFr_bsxfstw=NGea7r9m4j-7rQ@mail.gmail.com so as not to clutter up this one.

pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Allow single table VACUUM in transaction block
Next
From: Corey Huinker
Date:
Subject: Re: Add SHELL_EXIT_CODE to psql