Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d942887

Browse files
committed
Improve order in file
Move support functions for new PublicationTable node to more sensible locations in the files.
1 parent 5c6e33f commit d942887

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

src/backend/nodes/copyfuncs.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4810,6 +4810,16 @@ _copyPartitionCmd(const PartitionCmd *from)
48104810
return newnode;
48114811
}
48124812

4813+
static PublicationTable *
4814+
_copyPublicationTable(const PublicationTable *from)
4815+
{
4816+
PublicationTable *newnode = makeNode(PublicationTable);
4817+
4818+
COPY_NODE_FIELD(relation);
4819+
4820+
return newnode;
4821+
}
4822+
48134823
static CreatePublicationStmt *
48144824
_copyCreatePublicationStmt(const CreatePublicationStmt *from)
48154825
{
@@ -4958,16 +4968,6 @@ _copyForeignKeyCacheInfo(const ForeignKeyCacheInfo *from)
49584968
return newnode;
49594969
}
49604970

4961-
static PublicationTable *
4962-
_copyPublicationTable(const PublicationTable *from)
4963-
{
4964-
PublicationTable *newnode = makeNode(PublicationTable);
4965-
4966-
COPY_NODE_FIELD(relation);
4967-
4968-
return newnode;
4969-
}
4970-
49714971
/*
49724972
* copyObjectImpl -- implementation of copyObject(); see nodes/nodes.h
49734973
*

src/backend/nodes/equalfuncs.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2296,6 +2296,14 @@ _equalAlterTSConfigurationStmt(const AlterTSConfigurationStmt *a,
22962296
return true;
22972297
}
22982298

2299+
static bool
2300+
_equalPublicationTable(const PublicationTable *a, const PublicationTable *b)
2301+
{
2302+
COMPARE_NODE_FIELD(relation);
2303+
2304+
return true;
2305+
}
2306+
22992307
static bool
23002308
_equalCreatePublicationStmt(const CreatePublicationStmt *a,
23012309
const CreatePublicationStmt *b)
@@ -3133,14 +3141,6 @@ _equalBitString(const BitString *a, const BitString *b)
31333141
return true;
31343142
}
31353143

3136-
static bool
3137-
_equalPublicationTable(const PublicationTable *a, const PublicationTable *b)
3138-
{
3139-
COMPARE_NODE_FIELD(relation);
3140-
3141-
return true;
3142-
}
3143-
31443144
/*
31453145
* equal
31463146
* returns whether two nodes are equal

0 commit comments

Comments
 (0)