BUG #4266: regress test: could not dump unrecognized node type: 925 - Mailing list pgsql-bugs

From Clemens Fischer
Subject BUG #4266: regress test: could not dump unrecognized node type: 925
Date
Msg-id 200806260748.m5Q7mVg2057260@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #4266: regress test: could not dump unrecognized node type: 925  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
The following bug has been logged online:

Bug reference:      4266
Logged by:          Clemens Fischer
Email address:      clefis@gmx.de
PostgreSQL version: 8.3.3
Operating system:   QNX
Description:        regress test: could not dump unrecognized node type: 925
Details:

I cannot decode this bug on the TODO list.
There is no fix in the snapshot from today.
The bug is platform independent.
A part of the regress tests fails 'cause in src/backend/nodes/outfuncs.c the
function _outInhRelation() is missing.

The solution is a little patch:
diff -Prubd postgresql-8.3.3/src/backend/nodes/outfuncs.c
postgresql-8.3.3-1/src/backend/nodes/outfuncs.c
--- postgresql-8.3.3/src/backend/nodes/outfuncs.c       2008-01-09
09:46:44.000000000 +0100
+++ postgresql-8.3.3-1/src/backend/nodes/outfuncs.c     2008-06-25
13:59:46.000000000 +0200
@@ -1547,6 +1547,15 @@
 }

 static void
+_outInhRelation(StringInfo str, InhRelation *node)
+{
+       WRITE_NODE_TYPE("INHRELATION");
+
+       WRITE_NODE_FIELD(relation);
+       WRITE_NODE_FIELD(options);
+}
+
+static void
 _outIndexStmt(StringInfo str, IndexStmt *node)
 {
        WRITE_NODE_TYPE("INDEXSTMT");
@@ -2357,6 +2366,9 @@
                        case T_CreateStmt:
                                _outCreateStmt(str, obj);
                                break;
+                       case T_InhRelation:
+                               _outInhRelation(str, obj);
+                               break;
                        case T_IndexStmt:
                                _outIndexStmt(str, obj);
                                break;

pgsql-bugs by date:

Previous
From: "Clemens Fischer"
Date:
Subject: BUG #4265: PostgreSQL fails to compile
Next
From: "Scott Carey"
Date:
Subject: Re: BUG #4264: Optimizer fails to use hash_aggregate when appropriate.