forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb155310
committed
Fix overly tense optimization of PLpgSQL_func_hashkey: we must represent
the isTrigger state explicitly, not rely on nonzero-ness of trigrelOidto indicate trigger-hood, because trigrelOid will be left zero when compilingfor validation. The (useless) function hash entry built by the validatorwas able to match an ordinary non-trigger call later in the same session,thereby bypassing the check that is supposed to prevent such a call.Per report from Alvaro.It might be worth suppressing the useless hash entry altogether, butthat's a bigger change than I want to consider back-patching.Back-patch to 8.0. 7.4 doesn't have the problem because it doesn'thave validation mode.1 parent1b0f58a commitb155310
2 files changed
+10
-3
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1941 | 1941 |
| |
1942 | 1942 |
| |
1943 | 1943 |
| |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
1944 | 1947 |
| |
1945 | 1948 |
| |
1946 | 1949 |
| |
1947 | 1950 |
| |
1948 | 1951 |
| |
1949 |
| - | |
| 1952 | + | |
1950 | 1953 |
| |
1951 | 1954 |
| |
1952 | 1955 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
616 | 616 |
| |
617 | 617 |
| |
618 | 618 |
| |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
619 | 623 |
| |
620 | 624 |
| |
621 | 625 |
| |
|
0 commit comments
Comments
(0)