[HACKERS] Allowing nonzero return codes from \quit - Mailing list pgsql-hackers

From Corey Huinker
Subject [HACKERS] Allowing nonzero return codes from \quit
Date
Msg-id CADkLM=f2+WapEyL1qc12UfgkQmW-_ykk-UNNqukDvYORd5sJAQ@mail.gmail.com
Whole thread Raw
Responses Re: [HACKERS] Allowing nonzero return codes from \quit  (Pavel Stehule <pavel.stehule@gmail.com>)
List 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.

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: [HACKERS] Undefined psql variables
Next
From: Pavel Stehule
Date:
Subject: Re: [HACKERS] Allowing nonzero return codes from \quit