kputnam / piggly

PL/pgSQL stored procedure code coverage tool
Other
69 stars 14 forks source link

table / row return type not supported #13

Closed lcoldiron closed 13 years ago

lcoldiron commented 13 years ago

Example: CREATE OR REPLACE FUNCTION my_schema.my_proc ( ) RETURNS SETOF my_schema.my_table AS $$ BEGIN RETURN QUERY SELECT * FROM my_schema.my_table; END; $$ LANGUAGE plpgsql VOLATILE STRICT SECURITY INVOKER;

Appears the parser is not schema aware in this case. The return type generated by the trace drops the schema and postgres is unable to find this type in the public schema.