Alvaro Herrera Munoz <alvherre(at)dcc(dot)uchile(dot)cl> writes:
> Is there a way to create a table from a prepared statement? CREATE TABLE AS
> explicitly says you have to use a SELECT statement, and the SELECT INTO
> syntax doesn't seem to allow the use of a prepared statement either.
IIRC there is an EXECUTE INTO.
regards, tom lane