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

Commite0f26fc

Browse files
committed
Correct replication origin's use of UINT16_MAX to PG_UINT16_MAX.
We can't rely on UINT16_MAX being present, which is why we introducedPG_UINT16_MAX...Buildfarm animal bowerbird via Andrew Gierth.
1 parent49601ab commite0f26fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/backend/replication/logical/origin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ replorigin_create(char *roname)
266266

267267
rel=heap_open(ReplicationOriginRelationId,ExclusiveLock);
268268

269-
for (roident=InvalidOid+1;roident<UINT16_MAX;roident++)
269+
for (roident=InvalidOid+1;roident<PG_UINT16_MAX;roident++)
270270
{
271271
boolnulls[Natts_pg_replication_origin];
272272
Datumvalues[Natts_pg_replication_origin];

‎src/include/replication/origin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ typedef struct xl_replorigin_drop
3030
#defineXLOG_REPLORIGIN_DROP0x10
3131

3232
#defineInvalidRepOriginId 0
33-
#defineDoNotReplicateIdUINT16_MAX
33+
#defineDoNotReplicateIdPG_UINT16_MAX
3434

3535
externPGDLLIMPORTRepOriginIdreplorigin_sesssion_origin;
3636
externPGDLLIMPORTXLogRecPtrreplorigin_sesssion_origin_lsn;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp