Bret Green <bret.green@xxxxxxxxx> writes: > Is there anything like a macro or an inline table valued function in postgres? Recent versions can inline SQL-language functions, if they consist of a simple SELECT and meet a few other constraints. I think the main nonobvious constraint is they should be marked STABLE and not STRICT. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general