Re: TableOID in description of inlined function

2024-02-01 Thread Tom Lane
Marius Lorek writes: > If I have a table > create table my_table(id int primary key); > and a function > create function my_function() returns table(id int) stable as $$ select * > from my_table $$ language sql; > then Postgres knows that selecting from the function is really just > selecting

TableOID in description of inlined function

2024-02-01 Thread Marius Lorek
Hi All, If I have a table create table my_table(id int primary key); and a function create function my_function() returns table(id int) stable as $$ select * from my_table $$ language sql; then Postgres knows that selecting from the function is really just selecting from the table: explain se