forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit55f4802
committed
Prevent write operations on large objects in read-only transactions
Attempting such an operation would already fail, but in various andconfusing ways. For example, while in recovery, some elog() messageswould be reported, but these should never be user-facing. This commitrestricts any write operations done on large objects in a read-onlycontext, so as the errors generated are more user-friendly. This is perthe discussion done with Tom Lane and Robert Haas.Some regression tests are added to check the case of all the SQLfunctions working on large objects (including an update of the test'salternate output).Author: Yugo NagataDiscussion:https://postgr.es/m/20220527153028.61a4608f66abcd026fd3806f@sraoss.co.jp1 parent8ba3cb2 commit55f4802
File tree
5 files changed
+166
-1
lines changed- doc/src/sgml
- src
- backend/libpq
- test/regress
- expected
- sql
5 files changed
+166
-1
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
114 | 114 |
| |
115 | 115 |
| |
116 | 116 |
| |
117 |
| - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
118 | 120 |
| |
119 | 121 |
| |
120 | 122 |
| |
|
Lines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| 96 | + | |
| 97 | + | |
| 98 | + | |
96 | 99 |
| |
97 | 100 |
| |
98 | 101 |
| |
| |||
245 | 248 |
| |
246 | 249 |
| |
247 | 250 |
| |
| 251 | + | |
| 252 | + | |
248 | 253 |
| |
249 | 254 |
| |
250 | 255 |
| |
| |||
256 | 261 |
| |
257 | 262 |
| |
258 | 263 |
| |
| 264 | + | |
| 265 | + | |
259 | 266 |
| |
260 | 267 |
| |
261 | 268 |
| |
| |||
306 | 313 |
| |
307 | 314 |
| |
308 | 315 |
| |
| 316 | + | |
| 317 | + | |
309 | 318 |
| |
310 | 319 |
| |
311 | 320 |
| |
| |||
368 | 377 |
| |
369 | 378 |
| |
370 | 379 |
| |
| 380 | + | |
| 381 | + | |
371 | 382 |
| |
372 | 383 |
| |
373 | 384 |
| |
| |||
413 | 424 |
| |
414 | 425 |
| |
415 | 426 |
| |
| 427 | + | |
| 428 | + | |
416 | 429 |
| |
417 | 430 |
| |
418 | 431 |
| |
| |||
561 | 574 |
| |
562 | 575 |
| |
563 | 576 |
| |
| 577 | + | |
| 578 | + | |
564 | 579 |
| |
565 | 580 |
| |
566 | 581 |
| |
| |||
571 | 586 |
| |
572 | 587 |
| |
573 | 588 |
| |
| 589 | + | |
| 590 | + | |
574 | 591 |
| |
575 | 592 |
| |
576 | 593 |
| |
| |||
815 | 832 |
| |
816 | 833 |
| |
817 | 834 |
| |
| 835 | + | |
| 836 | + | |
818 | 837 |
| |
819 | 838 |
| |
820 | 839 |
| |
| |||
837 | 856 |
| |
838 | 857 |
| |
839 | 858 |
| |
| 859 | + | |
| 860 | + | |
840 | 861 |
| |
841 | 862 |
| |
842 | 863 |
| |
|
Lines changed: 49 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
506 | 506 |
| |
507 | 507 |
| |
508 | 508 |
| |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
509 | 558 |
| |
510 | 559 |
| |
511 | 560 |
|
Lines changed: 49 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
506 | 506 |
| |
507 | 507 |
| |
508 | 508 |
| |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
509 | 558 |
| |
510 | 559 |
| |
511 | 560 |
|
Lines changed: 44 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
271 | 271 |
| |
272 | 272 |
| |
273 | 273 |
| |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
274 | 318 |
| |
275 | 319 |
| |
276 | 320 |
| |
|
0 commit comments
Comments
(0)