summaryrefslogtreecommitdiff
path: root/src/backend/nodes/nodes.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>1999-08-16 02:17:58 +0000
committerTom Lane <tgl@sss.pgh.pa.us>1999-08-16 02:17:58 +0000
commite6381966c1886badbc19c94ac1f1ffbc104125ab (patch)
tree9da3d5d073dcb4cff68bdb69f6118409b5315512 /src/backend/nodes/nodes.c
parent08320bfb22b3ef006885de91f5163ef5fe831889 (diff)
downloadpostgresql-e6381966c1886badbc19c94ac1f1ffbc104125ab.tar.gz
Major planner/optimizer revision: get rid of PathOrder node type,
store all ordering information in pathkeys lists (which are now lists of lists of PathKeyItem nodes, not just lists of lists of vars). This was a big win --- the code is smaller and IMHO more understandable than it was, even though it handles more cases. I believe the node changes will not force an initdb for anyone; planner nodes don't show up in stored rules.
Diffstat (limited to 'src/backend/nodes/nodes.c')
-rw-r--r--src/backend/nodes/nodes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/nodes/nodes.c b/src/backend/nodes/nodes.c
index 0e60597949..b1ebcf53ff 100644
--- a/src/backend/nodes/nodes.c
+++ b/src/backend/nodes/nodes.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/nodes.c,v 1.10 1999/07/17 20:17:07 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/nodes.c,v 1.11 1999/08/16 02:17:42 tgl Exp $
*
* HISTORY
* Andrew Yu Oct 20, 1994 file creation
@@ -32,7 +32,7 @@ newNode(Size size, NodeTag tag)
{
Node *newNode;
- Assert(size >= 4); /* need the tag, at least */
+ Assert(size >= sizeof(Node)); /* need the tag, at least */
newNode = (Node *) palloc(size);
MemSet((char *) newNode, 0, size);