: CREATE FUNCTION test.myfunction() RETURNS SETOF test.out_table AS $$      CREATE TEMP TABLE IF NOT EXISTS temp_table AS         SELECT id, value         FROM test.another_table;      INSERT INTO test.out_table         SELECT id, value         FROM temp_table;  