forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita056f14
committed
Cause plpgsql's PERFORM to behave according to its documentation,
which says that PERFORM will execute any SELECT query and discard theresult. The former implementation would in fact raise an error if theresult contained more than one row or more than one column.Also, change plpgsql's error-logging mechanism to emit the additionalmessages about error location at NOTICE rather than DEBUG level. Thisallows them to be seen by the client without having to dig into thepostmaster log file (which may be nonexistent or inaccessible by theclient).1 parent505d903 commita056f14
2 files changed
+41
-19
lines changedLines changed: 2 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
1402 | 1402 |
| |
1403 | 1403 |
| |
1404 | 1404 |
| |
1405 |
| - | |
1406 |
| - | |
1407 |
| - | |
1408 | 1405 |
| |
1409 | 1406 |
| |
1410 | 1407 |
| |
1411 | 1408 |
| |
1412 | 1409 |
| |
1413 |
| - | |
| 1410 | + | |
1414 | 1411 |
| |
1415 | 1412 |
| |
1416 | 1413 |
| |
|
Lines changed: 39 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
188 |
| - | |
| 188 | + | |
189 | 189 |
| |
190 | 190 |
| |
191 | 191 |
| |
| |||
248 | 248 |
| |
249 | 249 |
| |
250 | 250 |
| |
251 |
| - | |
| 251 | + | |
252 | 252 |
| |
253 | 253 |
| |
254 | 254 |
| |
255 | 255 |
| |
256 | 256 |
| |
257 |
| - | |
| 257 | + | |
258 | 258 |
| |
259 |
| - | |
| 259 | + | |
260 | 260 |
| |
261 | 261 |
| |
262 | 262 |
| |
| |||
491 | 491 |
| |
492 | 492 |
| |
493 | 493 |
| |
494 |
| - | |
| 494 | + | |
495 | 495 |
| |
496 | 496 |
| |
497 | 497 |
| |
| |||
548 | 548 |
| |
549 | 549 |
| |
550 | 550 |
| |
551 |
| - | |
| 551 | + | |
552 | 552 |
| |
553 | 553 |
| |
554 | 554 |
| |
555 | 555 |
| |
556 | 556 |
| |
557 |
| - | |
| 557 | + | |
558 | 558 |
| |
559 |
| - | |
| 559 | + | |
560 | 560 |
| |
561 | 561 |
| |
562 | 562 |
| |
| |||
1065 | 1065 |
| |
1066 | 1066 |
| |
1067 | 1067 |
| |
| 1068 | + | |
| 1069 | + | |
1068 | 1070 |
| |
1069 | 1071 |
| |
1070 | 1072 |
| |
1071 | 1073 |
| |
1072 | 1074 |
| |
1073 |
| - | |
1074 |
| - | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
1075 | 1079 |
| |
1076 |
| - | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
1077 | 1103 |
| |
1078 | 1104 |
| |
1079 | 1105 |
| |
| |||
2608 | 2634 |
| |
2609 | 2635 |
| |
2610 | 2636 |
| |
2611 |
| - | |
2612 |
| - | |
| 2637 | + | |
2613 | 2638 |
| |
2614 | 2639 |
| |
2615 | 2640 |
| |
|
0 commit comments
Comments
(0)