conditionally terminate psql script - Mailing list pgsql-general

From hamann.w@t-online.de
Subject conditionally terminate psql script
Date
Msg-id wolfgang-1181217131349.A0420644@noten19.local
Whole thread Raw
Responses Re: conditionally terminate psql script
Re: conditionally terminate psql script
List pgsql-general

Hi,

is there a way to stop execution of a psql script if a select returns some rows (or no rows)
The idea is to add a safety check on data, specifically to select all new rows that would conflict
on a bulk insert, show them and stop

Best regards
Wolfgang



pgsql-general by date:

Previous
From: Dave Cramer
Date:
Subject: Re: loading jdbc Driver in servlet
Next
From:
Date:
Subject: Creating 2D arrays for pg_copy_from, reading tab-delimted text filethat contains comma and double quotes