summaryrefslogtreecommitdiff
path: root/src/include/postgres.h
diff options
context:
space:
mode:
authorTomas Vondra2017-08-21 08:32:49 +0000
committerTomas Vondra2017-08-21 09:03:17 +0000
commit87c16c45082b7b25fd2a4d33b98ee461eee6f936 (patch)
treef220837f01cb12ab991904e23e7ec68b7a6be16b /src/include/postgres.h
parentd66ec8f444000f861fc3b35e0c65adbd74fd434c (diff)
Define coordinator_lxid GUC as unsigned integer
The coordinator_lxid GUC is internally stored as uint32, but was defined as plaint int32, triggering a compiler warning. It's also unclear what would happen for transaction IDs outside the signed range (possibly some strange issues). This adds a new GUC type (UInt), used only for this one GUC. The patch is fairly large, but most of it is boilerplate infrastructure to support the new GUC type. We have considered simpler workarounds (e.g. treating the GUC as string and converting it to/from uint32 using the GUC hooks, but this seems much cleaner and tidier.
Diffstat (limited to 'src/include/postgres.h')
0 files changed, 0 insertions, 0 deletions