Re: conditionally terminate psql script - Mailing list pgsql-general

From David G. Johnston
Subject Re: conditionally terminate psql script
Date
Msg-id CAKFQuwb5Mo2FbKvXBLmj7NNg9SACVADrGUdq_my8Yk3ODgjBLQ@mail.gmail.com
Whole thread Raw
In response to Re: conditionally terminate psql script  (Steven Lembark <lembark@wrkhors.com>)
List pgsql-general
On Tue, Dec 18, 2018 at 2:44 PM Steven Lembark <lembark@wrkhors.com> wrote:
> > there is a \if statement
>
> Q: What is the "abort cycle command"?
[...]
>     \if :lacks_rows
>
>         \echo foobar lacks rows to process.
>         \echo goodnight :-)
>
>         ?????????    <--- what goes here to stop execution?

\quit

David J.


pgsql-general by date:

Previous
From: Steven Lembark
Date:
Subject: Re: conditionally terminate psql script
Next
From: Torsten Förtsch
Date:
Subject: Re: conditionally terminate psql script