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)
commitb2d0a19ec5607009b9b751e1f8d73c813c5db7d0
tree77e76544e1c0b08e74e7d4d9da170d0d1a2c4f06
parenta756449fcb70566a5c2f03c84844c92324633e1d
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