Andrew Gierth <andrew@tao11.riddles.org.uk> writes:
> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:
> Tom> A defining SQL script is the way to go.
> But I disagree with this, for the simple reason that we don't have
> anything like enough flexibility in the form of conditional DDL or
> error handling, when working in pure SQL without any procedural help.
So? You can have the script create, execute, and remove a function,
and thereby perform any operation that a function could possibly
perform for you.
regards, tom lane