Re: [HACKERS] SQL functions that can be inlined

2010-11-06 Thread Tom Lane
Jim Nasby writes: > Is there any way to have the database tell you if a particular SQL function > can be inlined? Easiest way is to EXPLAIN a query using it and see if it did get inlined. For example, regression=# create function foo(int) returns int as regression-# 'select $1 + 1' language sql

[HACKERS] SQL functions that can be inlined

2010-11-06 Thread Jim Nasby
Is there any way to have the database tell you if a particular SQL function can be inlined? -- Jim C. Nasby, Database Architect j...@nasby.net 512.569.9461 (cell) http://jim.nasby.net -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org