On Tue, Feb 16, 2021 at 3:43 PM Ron <ronljohnso...@gmail.com> wrote:

>
> How does one go about syntax checking this?
>
> (There are 222 ALTER TABLE ADD FOREIGN KEY statements that I'm wrapping in
> similar DO blocks, and want to make sure the statements are clean.)
>
>
Begin a transaction, execute the DO, capture an error if there is one,
rollback the transaction.

David J.

Reply via email to