1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-12 16:21:30 +03:00
Heikki Linnakangas 83eb54001c 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:24:37 +03:00
..
2013-10-13 00:09:18 -04:00
2013-10-13 00:09:18 -04:00
2013-10-13 00:09:18 -04:00
2013-10-13 00:09:18 -04:00
2013-10-07 16:51:52 -04:00
2013-10-18 08:14:21 -04:00
2013-09-03 13:17:09 +03:00
2013-01-01 17:15:01 -05:00
2013-05-29 16:58:43 -04:00
2013-02-21 22:46:17 -03:00