Re: [GENERAL] 7.4 in-lining of SQL functions

2004-10-14 Thread Tom Lane
Mike Mascari <[EMAIL PROTECTED]> writes: > "Simple SQL functions can now be inlined by including their SQL in the > main query. This improves performance by eliminating per-call overhead. > That means simple SQL functions now behave like macros." > has me a bit worried. What does "simple" mean?

[GENERAL] 7.4 in-lining of SQL functions

2004-10-14 Thread Mike Mascari
Hello. I'm writing SQL functions that take an action code and determine the rows visible by accessing application-maintained privilege tables. Here's an example: CREATE FUNCTION sql_areas(bigint) RETURNS SETOF bigint AS ' SELECT _areas.area FROM _members, _webgroups, _stores, _areas WHERE