Alfonso Peniche <alfonso(at)iteso(dot)mx> writes:
> In that case, how could I create a temporary table from plpgsql?
CREATE [TEMP] TABLE foo AS SELECT ...
This is equivalent to SELECT INTO [TEMP] foo in regular SQL, and
does not change meaning in plpgsql.
regards, tom lane