1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00
Files
postgres/src
Heikki Linnakangas 4da24f12e6 Fix two bugs in setting the vm bit of empty pages.
Use a critical section when setting the all-visible flag on an empty page,
and WAL-logging it. log_newpage_buffer() contains an assertion that it
must be called inside a critical section, and it's the right thing to do
when modifying a buffer anyway.

Also, the page should be marked dirty before calling log_newpage_buffer(),
per the comment in log_newpage_buffer() and src/backend/access/transam/README.

Patch by Andres Freund, in response to my report. Backpatch to 9.2, like
the patch that introduced these bugs (a6370fd9).
2013-10-23 14:25:50 +03:00
..
2013-10-07 16:17:51 -04:00
2013-10-07 23:16:13 -04:00
2013-10-07 23:16:13 -04:00
2013-10-07 16:17:51 -04:00
2013-10-07 23:16:13 -04:00
2012-04-23 22:43:09 -04:00