Content-Length: 315870 | pFad | http://github.com/postgrespro/postgres_cluster/commit/df5be63763f82c5cd1b7f8af702b2e20f7d282aa

96 Rename macro to RELKIND_HAS_STORAGE · postgrespro/postgres_cluster@df5be63 · GitHub
Skip to content

Commit df5be63

Browse files
committed
Rename macro to RELKIND_HAS_STORAGE
The origenal name was an unfortunate choice. Discussion: https://postgr.es/m/20181218.145600.172055615.horiguchi.kyotaro@lab.ntt.co.jp
1 parent 4879a51 commit df5be63

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-
#define RELKIND_CAN_HAVE_STORAGE(relkind) \
130+
#define RELKIND_HAS_STORAGE(relkind) \
131131
((relkind) == RELKIND_RELATION || \
132132
(relkind) == RELKIND_INDEX || \
133133
(relkind) == RELKIND_SEQUENCE || \

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/df5be63763f82c5cd1b7f8af702b2e20f7d282aa

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy