Reorder definitions in parsenodes.h

From: Fernando Nasser <fnasser(at)redhat(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: Reorder definitions in parsenodes.h
Date: 2002-03-07 16:57:34
Message-ID: 3C879BFE.9FFD10F6@redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

This allows Stmt nodes to refer to smaller nodes. This is needed
for schemas as we plan to use RangeVar in several statements
(the option would be to define the field as struct RangeVar *,
but it is cleaner to use the type defined for that).

I am trying to do the reorg now so that any changes due to schemas
show up in a cleaner way.

I kept Query at the top for developers convenience.
Them it goes:
_ Supporting data structures for Parse Trees
_ Nodes for a Domain Creation tree (?)
_ Nodes for a Query tree
_ Optimizable Statements
_ Other Statements (no optimizations required)

I left the enums that are only used in one place close
to the definition that uses/is related to it.
The inhOption one is used in many places, so I moved
it closer to the includes at the top of the file.

The context diff results weird, so I've attached the resulting
file as well so people can look at it.

--
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
PARSENODES.H text/plain 39.1 KB
PARSENODES.PATCH text/plain 77.8 KB

Browse pgsql-patches by date

  From Date Subject
Next Message Manuel Sugawara 2002-03-07 17:30:47 Re: date formatting and tab-complete patch
Previous Message Tom Lane 2002-03-07 16:55:48 Re: Small fix for _equalValue()