Allowing nonzero return codes from \quit

From: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Allowing nonzero return codes from \quit
Date: 2017-01-23 18:09:20
Message-ID: CADkLM=f2+WapEyL1qc12UfgkQmW-_ykk-UNNqukDvYORd5sJAQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Another suggestion to come out of the \quit_if discussion was that someone
might want to send a return code other than 0 back. Something like this:

\quit 4

or even:

\set exit_code 127
\quit :exit_code

This isn't a personal need of mine, but I figured it was an idea worth
discussing on its own.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2017-01-23 18:15:47 Re: Allowing nonzero return codes from \quit
Previous Message Pavel Stehule 2017-01-23 18:07:14 Re: Undefined psql variables