Content-Length: 286737 | pFad | http://github.com/postgrespro/postgres/commit/e0f26fc76532defd06caf79d711fa99cea83c532

98 Correct replication origen's use of UINT16_MAX to PG_UINT16_MAX. · postgrespro/postgres@e0f26fc · GitHub
Skip to content

Commit e0f26fc

Browse files
committed
Correct replication origen's use of UINT16_MAX to PG_UINT16_MAX.
We can't rely on UINT16_MAX being present, which is why we introduced PG_UINT16_MAX... Buildfarm animal bowerbird via Andrew Gierth.
1 parent 49601ab commit e0f26fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/replication/logical/origen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ replorigen_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
bool nulls[Natts_pg_replication_origen];
272272
Datum values[Natts_pg_replication_origen];

src/include/replication/origen.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ typedef struct xl_replorigen_drop
3030
#define XLOG_REPLORIGIN_DROP 0x10
3131

3232
#define InvalidRepOriginId 0
33-
#define DoNotReplicateId UINT16_MAX
33+
#define DoNotReplicateId PG_UINT16_MAX
3434

3535
extern PGDLLIMPORT RepOriginId replorigen_sesssion_origen;
3636
extern PGDLLIMPORT XLogRecPtr replorigen_sesssion_origen_lsn;

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/commit/e0f26fc76532defd06caf79d711fa99cea83c532

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy