diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2021-12-14 11:46:36 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2021-12-14 11:46:44 -0500 |
commit | 25c7faa1feeeff040242100d61b1f8914db3d3ea (patch) | |
tree | 2b2efeab49e082e440ef89bcd80cc4e7ce67a8e2 /src/backend/commands/tablecmds.c | |
parent | 4be3e005e5da931aa816e3c04e1217c33de52fd6 (diff) | |
download | postgresql-25c7faa1feeeff040242100d61b1f8914db3d3ea.tar.gz postgresql-25c7faa1feeeff040242100d61b1f8914db3d3ea.zip |
Fix datatype confusion in logtape.c's right_offset().
This could only matter if (a) long is wider than int, and (b) the heap
of free blocks exceeds UINT_MAX entries, which seems pretty unlikely.
Still, it's a theoretical bug, so backpatch to v13 where the typo came
in (in commit c02fdc922).
In passing, also make swap_nodes() use consistent datatypes.
Ma Liangzhu
Discussion: https://postgr.es/m/17336-fc4e522d26a750fd@postgresql.org
Diffstat (limited to 'src/backend/commands/tablecmds.c')
0 files changed, 0 insertions, 0 deletions