aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-04-22 09:50:47 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-04-22 10:40:23 +0300
commit8d34f6862853b4b67e29b368dfedf7d4c28d694b (patch)
treeb72b78f57a728af00ca424fba0a7d8c4cdb8a0fe /doc/src
parent78a3c9b6a5f6cc84abaf4e13deb58c620eb2161b (diff)
downloadpostgresql-8d34f6862853b4b67e29b368dfedf7d4c28d694b.tar.gz
postgresql-8d34f6862853b4b67e29b368dfedf7d4c28d694b.zip
Avoid transient bogus page contents when creating a sequence.
Don't use simple_heap_insert to insert the tuple to a sequence relation. simple_heap_insert creates a heap insertion WAL record, and replaying that will create a regular heap page without the special area containing the sequence magic constant, which is wrong for a sequence. That was not a bug because we always created a sequence WAL record after that, and replaying that overwrote the bogus heap page, and the transient state could never be seen by another backend because it was only done when creating a new sequence relation. But it's simpler and cleaner to avoid that in the first place.
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions