Table function
RETURNS SETOF a table type makes a function usable in FROM, like a parameterised view.
task
Write reports(e int) returning the employees whose manager_id is e.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
RETURNS SETOF a table type makes a function usable in FROM, like a parameterised view.
Write reports(e int) returning the employees whose manager_id is e.