Re: conditionally terminate psql script

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Steven Lembark <lembark(at)wrkhors(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: conditionally terminate psql script
Date: 2018-12-18 21:47:46
Message-ID: CAKFQuwb5Mo2FbKvXBLmj7NNg9SACVADrGUdq_my8Yk3ODgjBLQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Dec 18, 2018 at 2:44 PM Steven Lembark <lembark(at)wrkhors(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Torsten Förtsch 2018-12-19 01:25:49 Re: conditionally terminate psql script
Previous Message Steven Lembark 2018-12-18 21:42:14 Re: conditionally terminate psql script