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

Commit7b1c2a0

Browse files
committed
Split builtins.h to a new header ruleutils.h
The new header contains many prototypes for functions in ruleutils.cthat are not exposed to the SQL level.Reviewed by Andres Freund and Michael Paquier.
1 parent7bb0e97 commit7b1c2a0

File tree

9 files changed

+41
-11
lines changed

9 files changed

+41
-11
lines changed

‎src/backend/access/index/genam.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include"utils/builtins.h"
2929
#include"utils/lsyscache.h"
3030
#include"utils/rel.h"
31+
#include"utils/ruleutils.h"
3132
#include"utils/snapmgr.h"
3233
#include"utils/tqual.h"
3334

‎src/backend/catalog/heap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
#include"utils/inval.h"
7070
#include"utils/lsyscache.h"
7171
#include"utils/rel.h"
72+
#include"utils/ruleutils.h"
7273
#include"utils/snapmgr.h"
7374
#include"utils/syscache.h"
7475
#include"utils/tqual.h"

‎src/backend/commands/explain.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include"utils/json.h"
2929
#include"utils/lsyscache.h"
3030
#include"utils/rel.h"
31+
#include"utils/ruleutils.h"
3132
#include"utils/snapmgr.h"
3233
#include"utils/tuplesort.h"
3334
#include"utils/xml.h"

‎src/backend/commands/tablecmds.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
#include"utils/lsyscache.h"
8686
#include"utils/memutils.h"
8787
#include"utils/relcache.h"
88+
#include"utils/ruleutils.h"
8889
#include"utils/snapmgr.h"
8990
#include"utils/syscache.h"
9091
#include"utils/tqual.h"

‎src/backend/commands/typecmds.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
#include"utils/lsyscache.h"
7373
#include"utils/memutils.h"
7474
#include"utils/rel.h"
75+
#include"utils/ruleutils.h"
7576
#include"utils/snapmgr.h"
7677
#include"utils/syscache.h"
7778
#include"utils/tqual.h"

‎src/backend/utils/adt/misc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include"storage/proc.h"
3636
#include"storage/procarray.h"
3737
#include"utils/lsyscache.h"
38+
#include"utils/ruleutils.h"
3839
#include"tcop/tcopprot.h"
3940
#include"utils/builtins.h"
4041
#include"utils/timestamp.h"

‎src/backend/utils/adt/ruleutils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
#include"utils/fmgroids.h"
5656
#include"utils/lsyscache.h"
5757
#include"utils/rel.h"
58+
#include"utils/ruleutils.h"
5859
#include"utils/snapmgr.h"
5960
#include"utils/syscache.h"
6061
#include"utils/tqual.h"

‎src/include/utils/builtins.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -676,13 +676,10 @@ extern Datum pg_get_viewdef_name(PG_FUNCTION_ARGS);
676676
externDatumpg_get_viewdef_name_ext(PG_FUNCTION_ARGS);
677677
externDatumpg_get_indexdef(PG_FUNCTION_ARGS);
678678
externDatumpg_get_indexdef_ext(PG_FUNCTION_ARGS);
679-
externchar*pg_get_indexdef_string(Oidindexrelid);
680-
externchar*pg_get_indexdef_columns(Oidindexrelid,boolpretty);
681679
externDatumpg_get_triggerdef(PG_FUNCTION_ARGS);
682680
externDatumpg_get_triggerdef_ext(PG_FUNCTION_ARGS);
683681
externDatumpg_get_constraintdef(PG_FUNCTION_ARGS);
684682
externDatumpg_get_constraintdef_ext(PG_FUNCTION_ARGS);
685-
externchar*pg_get_constraintdef_string(OidconstraintId);
686683
externDatumpg_get_expr(PG_FUNCTION_ARGS);
687684
externDatumpg_get_expr_ext(PG_FUNCTION_ARGS);
688685
externDatumpg_get_userbyid(PG_FUNCTION_ARGS);
@@ -692,17 +689,9 @@ extern Datum pg_get_function_arguments(PG_FUNCTION_ARGS);
692689
externDatumpg_get_function_identity_arguments(PG_FUNCTION_ARGS);
693690
externDatumpg_get_function_result(PG_FUNCTION_ARGS);
694691
externDatumpg_get_function_arg_default(PG_FUNCTION_ARGS);
695-
externchar*deparse_expression(Node*expr,List*dpcontext,
696-
boolforceprefix,boolshowimplicit);
697-
externList*deparse_context_for(constchar*aliasname,Oidrelid);
698-
externList*deparse_context_for_planstate(Node*planstate,List*ancestors,
699-
List*rtable,List*rtable_names);
700-
externList*select_rtable_names_for_explain(List*rtable,
701-
Bitmapset*rels_used);
702692
externconstchar*quote_identifier(constchar*ident);
703693
externchar*quote_qualified_identifier(constchar*qualifier,
704694
constchar*ident);
705-
externchar*generate_collation_name(Oidcollid);
706695

707696

708697
/* tid.c */

‎src/include/utils/ruleutils.h

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*-------------------------------------------------------------------------
2+
*
3+
* ruleutils.h
4+
*Declarations for ruleutils.c
5+
*
6+
* Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
7+
* Portions Copyright (c) 1994, Regents of the University of California
8+
*
9+
* src/include/ruleutils.h
10+
*
11+
*-------------------------------------------------------------------------
12+
*/
13+
#ifndefRULEUTILS_H
14+
#defineRULEUTILS_H
15+
16+
#include"nodes/nodes.h"
17+
#include"nodes/parsenodes.h"
18+
#include"nodes/pg_list.h"
19+
20+
21+
externchar*pg_get_indexdef_string(Oidindexrelid);
22+
externchar*pg_get_indexdef_columns(Oidindexrelid,boolpretty);
23+
24+
externchar*pg_get_constraintdef_string(OidconstraintId);
25+
externchar*deparse_expression(Node*expr,List*dpcontext,
26+
boolforceprefix,boolshowimplicit);
27+
externList*deparse_context_for(constchar*aliasname,Oidrelid);
28+
externList*deparse_context_for_planstate(Node*planstate,List*ancestors,
29+
List*rtable,List*rtable_names);
30+
externList*select_rtable_names_for_explain(List*rtable,
31+
Bitmapset*rels_used);
32+
externchar*generate_collation_name(Oidcollid);
33+
34+
#endif/* RULEUTILS_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp