Re: Make ON_ERROR_STOP stop on shell script failure

From: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
To: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Cc: bt22nakamorit <bt22nakamorit(at)oss(dot)nttdata(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Make ON_ERROR_STOP stop on shell script failure
Date: 2022-11-04 09:10:53
Message-ID: CADkLM=famwUGCGfH7WCVaqk5LKeUqL-bsRs+CaXPwVnb15fSuQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Corey Huinker 2022-11-04 09:23:56 Re: Add SHELL_EXIT_CODE to psql
Previous Message Simon Riggs 2022-11-04 09:09:34 Re: Allow single table VACUUM in transaction block