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

Commitdf5be63

Browse files
committed
Rename macro to RELKIND_HAS_STORAGE
The original name was an unfortunate choice.Discussion:https://postgr.es/m/20181218.145600.172055615.horiguchi.kyotaro@lab.ntt.co.jp
1 parent4879a51 commitdf5be63

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎src/backend/commands/copy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2405,7 +2405,7 @@ CopyFrom(CopyState cstate)
24052405
*----------
24062406
*/
24072407
/* createSubid is creation check, newRelfilenodeSubid is truncation check */
2408-
if (RELKIND_CAN_HAVE_STORAGE(cstate->rel->rd_rel->relkind)&&
2408+
if (RELKIND_HAS_STORAGE(cstate->rel->rd_rel->relkind)&&
24092409
(cstate->rel->rd_createSubid!=InvalidSubTransactionId||
24102410
cstate->rel->rd_newRelfilenodeSubid!=InvalidSubTransactionId))
24112411
{

‎src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11003,7 +11003,7 @@ ATExecSetTableSpaceNoStorage(Relation rel, Oid newTableSpace)
1100311003
* Shouldn't be called on relations having storage; these are processed
1100411004
* in phase 3.
1100511005
*/
11006-
Assert(!RELKIND_CAN_HAVE_STORAGE(rel->rd_rel->relkind));
11006+
Assert(!RELKIND_HAS_STORAGE(rel->rd_rel->relkind));
1100711007

1100811008
/* Can't allow a non-shared relation in pg_global */
1100911009
if (newTableSpace==GLOBALTABLESPACE_OID)

‎src/include/catalog/pg_class.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ typedef FormData_pg_class *Form_pg_class;
127127
* relfilenode set to non-zero, but it can also be zero if the relation is
128128
* mapped.
129129
*/
130-
#defineRELKIND_CAN_HAVE_STORAGE(relkind) \
130+
#defineRELKIND_HAS_STORAGE(relkind) \
131131
((relkind) == RELKIND_RELATION || \
132132
(relkind) == RELKIND_INDEX || \
133133
(relkind) == RELKIND_SEQUENCE || \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp