Michael Dunn <michael(at)2cactus(dot)com> writes:> Can EXECUTE handle a SELECT INTO statement within a plpgsql function.
SELECT INTO doesn't mean the same thing in plpgsql as it does in regularSQL. Use CREATE TABLE AS, instead.
regards, tom lane