diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2018-03-07 14:38:35 -0500 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2018-03-13 09:41:36 -0400 |
commit | c32f44c4a5b27f5055600db1a7374a898f3681df (patch) | |
tree | 23f38ee1de96f2ef214c0515ced16d13745c1ef2 /src/backend/executor/nodeModifyTable.c | |
parent | e2ed3c4a3002a371ceca45d1b5e5581412de4508 (diff) | |
download | postgresql-c32f44c4a5b27f5055600db1a7374a898f3681df.tar.gz postgresql-c32f44c4a5b27f5055600db1a7374a898f3681df.zip |
Fix CREATE TABLE / LIKE with bigint identity column
CREATE TABLE / LIKE with a bigint identity column would fail on
platforms where long is 32 bits. Copying the sequence values used
makeInteger(), which would truncate the 64-bit sequence data to 32 bits.
To fix, use makeFloat() instead, like the parser. (This does not
actually make use of floats, but stores the values as strings.)
Bug: #15096
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions