| From: | Fernando Nasser <fnasser(at)redhat(dot)com> |
|---|---|
| To: | pgsql-patches(at)postgresql(dot)org |
| Subject: | Allow arbitrary levels of analyze/rewriting |
| Date: | 2002-02-12 16:19:40 |
| Message-ID: | 3C69409C.F90417D5@redhat.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-patches |
Hi,
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
Red Hat Canada Ltd. E-Mail: fnasser(at)redhat(dot)com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
| Attachment | Content-Type | Size |
|---|---|---|
| EXTRAS.PATCH | text/plain | 12.1 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Vaclav Kulakovsky | 2002-02-13 08:47:49 | Postgres 7.2 - Updating rows in cursor problem |
| Previous Message | Russell Black | 2002-02-11 18:17:15 | Re: JDBC |