I want a query to create a table with the output of a stored procedure function in Postgres.
SQL:
CREATE TEMP TABLE new_project AS select project_insert('1','test2343','tew3234','ccc',1);
Error:
ERROR: 42P16: column "projects_insert" has pseudo-type record
LOCATION: CheckAttributeType, heap.c:513
Note: project_insert is a function which insert the values and returns inserted values