]> granicus.if.org Git - postgresql/commit
Teach planner to expand sufficiently simple SQL-language functions
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Dec 2002 21:05:14 +0000 (21:05 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Dec 2002 21:05:14 +0000 (21:05 +0000)
commit8e3a87fbd4d5552599888b087e23a28df0bb6be5
treee99856f0fdd38b253a25f9cb0334ad23e576baf5
parent02f8c9a38297459c2664044ea6d98d91678a4d79
Teach planner to expand sufficiently simple SQL-language functions
('SELECT expression') inline, like macros, during the constant-folding
phase of planning.  The actual expansion is not difficult, but checking
that we're not changing the semantics of the call turns out to be more
subtle than one might think; in particular must pay attention to
permissions issues, strictness, and volatility.
src/backend/optimizer/util/clauses.c
src/backend/utils/cache/lsyscache.c
src/include/optimizer/clauses.h
src/include/utils/lsyscache.h