Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita41f73a

Browse files
committed
Add dump support for SortBy nodes. Needed this while debugging a reported
problem with DISTINCT, so might as well commit it.
1 parentba38e36 commita41f73a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

‎src/backend/nodes/outfuncs.c

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.327 2008/07/16 01:30:22 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.328 2008/07/17 16:02:12 tgl Exp $
1212
*
1313
* NOTES
1414
* Every node type that can appear in stored rules' parsetrees *must*
@@ -1985,6 +1985,17 @@ _outResTarget(StringInfo str, ResTarget *node)
19851985
WRITE_INT_FIELD(location);
19861986
}
19871987

1988+
staticvoid
1989+
_outSortBy(StringInfostr,SortBy*node)
1990+
{
1991+
WRITE_NODE_TYPE("SORTBY");
1992+
1993+
WRITE_ENUM_FIELD(sortby_dir,SortByDir);
1994+
WRITE_ENUM_FIELD(sortby_nulls,SortByNulls);
1995+
WRITE_NODE_FIELD(useOp);
1996+
WRITE_NODE_FIELD(node);
1997+
}
1998+
19881999
staticvoid
19892000
_outConstraint(StringInfostr,Constraint*node)
19902001
{
@@ -2426,6 +2437,9 @@ _outNode(StringInfo str, void *obj)
24262437
caseT_ResTarget:
24272438
_outResTarget(str,obj);
24282439
break;
2440+
caseT_SortBy:
2441+
_outSortBy(str,obj);
2442+
break;
24292443
caseT_Constraint:
24302444
_outConstraint(str,obj);
24312445
break;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp