How do I quit in the middle of a SQL script? - Mailing list pgsql-sql

From Wei Weng
Subject How do I quit in the middle of a SQL script?
Date
Msg-id 428E1CE2.2050605@kencast.com
Whole thread Raw
Responses Re: How do I quit in the middle of a SQL script?
List pgsql-sql
Say if I want to add a small snip of code in front of the sql script 
generated by the pg_dump, to check for something then if the condition 
doesn't match, the script terminates right away. (Without actually doing the 
restoring stuff that the following large chunk is supposed to do)

Can I do that? And is it a good idea to add arbitrary code to the database 
dump sql script?

Thanks!


Wei


pgsql-sql by date:

Previous
From: Rafa Couto
Date:
Subject: Transaction in plpgslq
Next
From: Andrew Hammond
Date:
Subject: Re: Transaction in plpgslq