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

Commitd942887

Browse files
committed
Improve order in file
Move support functions for new PublicationTable node to more sensiblelocations in the files.
1 parent5c6e33f commitd942887

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
returnnewnode;
48114811
}
48124812

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

4961-
staticPublicationTable*
4962-
_copyPublicationTable(constPublicationTable*from)
4963-
{
4964-
PublicationTable*newnode=makeNode(PublicationTable);
4965-
4966-
COPY_NODE_FIELD(relation);
4967-
4968-
returnnewnode;
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+
staticbool
2300+
_equalPublicationTable(constPublicationTable*a,constPublicationTable*b)
2301+
{
2302+
COMPARE_NODE_FIELD(relation);
2303+
2304+
return true;
2305+
}
2306+
22992307
staticbool
23002308
_equalCreatePublicationStmt(constCreatePublicationStmt*a,
23012309
constCreatePublicationStmt*b)
@@ -3133,14 +3141,6 @@ _equalBitString(const BitString *a, const BitString *b)
31333141
return true;
31343142
}
31353143

3136-
staticbool
3137-
_equalPublicationTable(constPublicationTable*a,constPublicationTable*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)

[8]ページ先頭

©2009-2025 Movatter.jp