]> granicus.if.org Git - postgresql/commit
This patch will allow arbitrary levels of analyze / rewriting
authorBruce Momjian <bruce@momjian.us>
Mon, 25 Feb 2002 04:21:55 +0000 (04:21 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 25 Feb 2002 04:21:55 +0000 (04:21 +0000)
commitb4a09eaaadcfcb759454f661722412394e90245e
treed766e68b1f51201e7362ae11586ac473d7006757
parentd6198ee3a556d6d2b05f06256a956dc88594db3e
This patch will allow arbitrary levels of analyze / rewriting
by making the static variables extra_before and extra_after
automatic so we can use recursion.

It gets much easier to generate extra commands now, and one can rest
assured that the extra commands will be properly analyzed/rewritten.

Without this patch, if a command produced by transformation tries to
use these static lists their first contents would be lost with
unpredictable results.  I know I could fix this by just using nconc()
instead of assignments, but the resulting order of the commands would
not be exactly what one could expect.

--
Fernando Nasser
src/backend/parser/analyze.c