forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6a72c42
committed
Retire MemoryContextResetAndDeleteChildren() macro.
As of commiteaa5808, MemoryContextResetAndDeleteChildren() isjust a backwards compatibility macro for MemoryContextReset(). Nowthat some time has passed, this macro seems more likely to createconfusion.This commit removes the macro and replaces all remaining uses withcalls to MemoryContextReset(). Any third-party code that use thismacro will need to be adjusted to call MemoryContextReset()instead. Since the two have behaved the same way since v9.5, suchadjustments won't produce any behavior changes for allcurrently-supported versions of PostgreSQL.Reviewed-by: Amul Sul, Tom Lane, Alvaro Herrera, Dagfinn Ilmari MannsåkerDiscussion:https://postgr.es/m/20231113185950.GA1668018%40nathanxps131 parent83267b1 commit6a72c42
File tree
18 files changed
+31
-34
lines changed- src
- backend
- access
- brin
- gin
- transam
- commands
- executor
- postmaster
- replication/logical
- statistics
- tcop
- utils
- cache
- error
- include/utils
18 files changed
+31
-34
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
297 | 297 |
| |
298 | 298 |
| |
299 | 299 |
| |
300 |
| - | |
| 300 | + | |
301 | 301 |
| |
302 | 302 |
| |
303 | 303 |
| |
| |||
533 | 533 |
| |
534 | 534 |
| |
535 | 535 |
| |
536 |
| - | |
| 536 | + | |
537 | 537 |
| |
538 | 538 |
| |
539 | 539 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
254 |
| - | |
| 254 | + | |
255 | 255 |
| |
256 | 256 |
| |
257 | 257 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1933 | 1933 |
| |
1934 | 1934 |
| |
1935 | 1935 |
| |
1936 |
| - | |
| 1936 | + | |
1937 | 1937 |
| |
1938 | 1938 |
| |
1939 | 1939 |
| |
| |||
1969 | 1969 |
| |
1970 | 1970 |
| |
1971 | 1971 |
| |
1972 |
| - | |
| 1972 | + | |
1973 | 1973 |
| |
1974 | 1974 |
| |
1975 | 1975 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
583 | 583 |
| |
584 | 584 |
| |
585 | 585 |
| |
586 |
| - | |
| 586 | + | |
587 | 587 |
| |
588 | 588 |
| |
589 | 589 |
| |
| |||
972 | 972 |
| |
973 | 973 |
| |
974 | 974 |
| |
975 |
| - | |
| 975 | + | |
976 | 976 |
| |
977 | 977 |
| |
978 | 978 |
| |
| |||
981 | 981 |
| |
982 | 982 |
| |
983 | 983 |
| |
984 |
| - | |
| 984 | + | |
985 | 985 |
| |
986 | 986 |
| |
987 | 987 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
317 | 317 |
| |
318 | 318 |
| |
319 | 319 |
| |
320 |
| - | |
| 320 | + | |
321 | 321 |
| |
322 | 322 |
| |
323 | 323 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
631 | 631 |
| |
632 | 632 |
| |
633 | 633 |
| |
634 |
| - | |
| 634 | + | |
635 | 635 |
| |
636 | 636 |
| |
637 | 637 |
| |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
219 |
| - | |
| 219 | + | |
220 | 220 |
| |
221 | 221 |
| |
222 | 222 |
| |
| |||
875 | 875 |
| |
876 | 876 |
| |
877 | 877 |
| |
878 |
| - | |
| 878 | + | |
879 | 879 |
| |
880 | 880 |
| |
881 | 881 |
| |
| |||
1351 | 1351 |
| |
1352 | 1352 |
| |
1353 | 1353 |
| |
1354 |
| - | |
1355 |
| - | |
| 1354 | + | |
| 1355 | + | |
1356 | 1356 |
| |
1357 | 1357 |
| |
1358 | 1358 |
| |
1359 |
| - | |
| 1359 | + | |
1360 | 1360 |
| |
1361 | 1361 |
| |
1362 | 1362 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
547 | 547 |
| |
548 | 548 |
| |
549 | 549 |
| |
550 |
| - | |
| 550 | + | |
551 | 551 |
| |
552 | 552 |
| |
553 | 553 |
| |
| |||
3083 | 3083 |
| |
3084 | 3084 |
| |
3085 | 3085 |
| |
3086 |
| - | |
| 3086 | + | |
3087 | 3087 |
| |
3088 | 3088 |
| |
3089 | 3089 |
| |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
555 | 555 |
| |
556 | 556 |
| |
557 | 557 |
| |
558 |
| - | |
| 558 | + | |
559 | 559 |
| |
560 | 560 |
| |
561 | 561 |
| |
| |||
2521 | 2521 |
| |
2522 | 2522 |
| |
2523 | 2523 |
| |
2524 |
| - | |
| 2524 | + | |
2525 | 2525 |
| |
2526 | 2526 |
| |
2527 | 2527 |
| |
| |||
2576 | 2576 |
| |
2577 | 2577 |
| |
2578 | 2578 |
| |
2579 |
| - | |
| 2579 | + | |
2580 | 2580 |
| |
2581 | 2581 |
| |
2582 | 2582 |
| |
| |||
2718 | 2718 |
| |
2719 | 2719 |
| |
2720 | 2720 |
| |
2721 |
| - | |
| 2721 | + | |
2722 | 2722 |
| |
2723 | 2723 |
| |
2724 | 2724 |
| |
| |||
2770 | 2770 |
| |
2771 | 2771 |
| |
2772 | 2772 |
| |
2773 |
| - | |
| 2773 | + | |
2774 | 2774 |
| |
2775 | 2775 |
| |
2776 | 2776 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
182 | 182 |
| |
183 | 183 |
| |
184 | 184 |
| |
185 |
| - | |
| 185 | + | |
186 | 186 |
| |
187 | 187 |
| |
188 | 188 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
290 | 290 |
| |
291 | 291 |
| |
292 | 292 |
| |
293 |
| - | |
| 293 | + | |
294 | 294 |
| |
295 | 295 |
| |
296 | 296 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
178 | 178 |
| |
179 | 179 |
| |
180 | 180 |
| |
181 |
| - | |
| 181 | + | |
182 | 182 |
| |
183 | 183 |
| |
184 | 184 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3647 | 3647 |
| |
3648 | 3648 |
| |
3649 | 3649 |
| |
3650 |
| - | |
| 3650 | + | |
3651 | 3651 |
| |
3652 | 3652 |
| |
3653 | 3653 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2237 | 2237 |
| |
2238 | 2238 |
| |
2239 | 2239 |
| |
2240 |
| - | |
| 2240 | + | |
2241 | 2241 |
| |
2242 | 2242 |
| |
2243 | 2243 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4457 | 4457 |
| |
4458 | 4458 |
| |
4459 | 4459 |
| |
4460 |
| - | |
| 4460 | + | |
4461 | 4461 |
| |
4462 | 4462 |
| |
4463 | 4463 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
94 |
| - | |
| 94 | + | |
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
| |||
262 | 262 |
| |
263 | 263 |
| |
264 | 264 |
| |
265 |
| - | |
| 265 | + | |
266 | 266 |
| |
267 | 267 |
| |
268 | 268 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1833 | 1833 |
| |
1834 | 1834 |
| |
1835 | 1835 |
| |
1836 |
| - | |
| 1836 | + | |
1837 | 1837 |
| |
1838 | 1838 |
| |
1839 | 1839 |
| |
|
Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 | 69 |
| |
73 | 70 |
| |
74 | 71 |
| |
|
0 commit comments
Comments
(0)