From: Wei Weng <wweng@kencast.com>
To: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: How do I quit in the middle of a SQL script?
Date: Fri, 20 May 2005 13:22:42 -0400
Message-ID: <428E1CE2.2050605@kencast.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: wweng@kencast.com
Subject: Re: How do I quit in the middle of a SQL script?
In-Reply-To: <428E1CE2.2050605@kencast.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox