git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ba38e36)
Add dump support for SortBy nodes. Needed this while debugging a reported
2008年7月17日 16:02:12 +0000 (16:02 +0000)
2008年7月17日 16:02:12 +0000 (16:02 +0000)
problem with DISTINCT, so might as well commit it.


diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c
index a03063ce1e69f3c71d9640f12023219b38e5c9d8..9c0726e42e7d2fd4ad81996da90e8edc300b0d93 100644 (file)
--- a/src/backend/nodes/outfuncs.c
+++ b/src/backend/nodes/outfuncs.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.327 2008年07月16日 01:30:22 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.328 2008年07月17日 16:02:12 tgl Exp $
*
* NOTES
* Every node type that can appear in stored rules' parsetrees *must*
@@ -1985,6 +1985,17 @@ _outResTarget(StringInfo str, ResTarget *node)
WRITE_INT_FIELD(location);
}
+static void
+_outSortBy(StringInfo str, SortBy *node)
+{
+ WRITE_NODE_TYPE("SORTBY");
+
+ WRITE_ENUM_FIELD(sortby_dir, SortByDir);
+ WRITE_ENUM_FIELD(sortby_nulls, SortByNulls);
+ WRITE_NODE_FIELD(useOp);
+ WRITE_NODE_FIELD(node);
+}
+
static void
_outConstraint(StringInfo str, Constraint *node)
{
@@ -2426,6 +2437,9 @@ _outNode(StringInfo str, void *obj)
case T_ResTarget:
_outResTarget(str, obj);
break;
+ case T_SortBy:
+ _outSortBy(str, obj);
+ break;
case T_Constraint:
_outConstraint(str, obj);
break;
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /