"Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com> writes:
> Trying (failing) a test to see if I can run ddl in a procedure where elements of the ddl are vars. Consider...
You'll need to construct the command as a string value and then run it
with EXECUTE. Beware of quoting issues (quote_ident and quote_literal
are your friends).
regards, tom lane