forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4c11d2c
committed
Flag index metapages as standard-format in xlog.c calls.
btree, hash, and bloom indexes all set up their metapages in standardformat (that is, with pd_lower and pd_upper correctly delimiting theunused area); but they mostly didn't inform the xlog routines of this.When calling log_newpage[_buffer], this is bad because it loses theopportunity to compress unused data out of the WAL record. Whencalling XLogRegisterBuffer, it's not such a performance problem becauseall of these call sites also use REGBUF_WILL_INIT, preventing an FPIimage from being written. But it's still a good idea to provide theflag when relevant, because that aids WAL consistency checking.This completes the project of getting all the in-core index AMs tohandle their metapage WAL operations similarly.Amit Kapila, reviewed by Michael PaquierDiscussion:https://postgr.es/m/0d273805-0e9e-ec1a-cb84-d4da400b8f85@lab.ntt.co.jp1 parent1b89056 commit4c11d2c
File tree
6 files changed
+16
-13
lines changed- contrib/bloom
- src/backend/access
- hash
- nbtree
6 files changed
+16
-13
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
178 |
| - | |
| 178 | + | |
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
403 | 403 |
| |
404 | 404 |
| |
405 | 405 |
| |
406 |
| - | |
| 406 | + | |
407 | 407 |
| |
408 | 408 |
| |
409 | 409 |
| |
| |||
592 | 592 |
| |
593 | 593 |
| |
594 | 594 |
| |
595 |
| - | |
596 |
| - | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
597 | 598 |
| |
598 | 599 |
| |
599 | 600 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
898 | 898 |
| |
899 | 899 |
| |
900 | 900 |
| |
901 |
| - | |
| 901 | + | |
902 | 902 |
| |
903 | 903 |
| |
904 | 904 |
| |
| |||
2032 | 2032 |
| |
2033 | 2033 |
| |
2034 | 2034 |
| |
2035 |
| - | |
| 2035 | + | |
2036 | 2036 |
| |
2037 | 2037 |
| |
2038 | 2038 |
| |
|
Lines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
68 |
| - | |
69 |
| - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
70 | 71 |
| |
71 | 72 |
| |
72 | 73 |
| |
| |||
241 | 242 |
| |
242 | 243 |
| |
243 | 244 |
| |
244 |
| - | |
| 245 | + | |
245 | 246 |
| |
246 | 247 |
| |
247 | 248 |
| |
| |||
1827 | 1828 |
| |
1828 | 1829 |
| |
1829 | 1830 |
| |
1830 |
| - | |
| 1831 | + | |
1831 | 1832 |
| |
1832 | 1833 |
| |
1833 | 1834 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
298 | 298 |
| |
299 | 299 |
| |
300 | 300 |
| |
301 |
| - | |
| 301 | + | |
302 | 302 |
| |
303 | 303 |
| |
304 | 304 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
107 | 107 |
| |
108 | 108 |
| |
109 | 109 |
| |
110 |
| - | |
111 |
| - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
112 | 113 |
| |
113 | 114 |
| |
114 | 115 |
| |
|
0 commit comments
Comments
(0)