forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3abf496
committed
> > There is a bug in check_foreign_key of refint.c which is bundled with
> > the standard distribution. It occurs when a trigger calling this> > function recursively fires another trigger which calls the same> > function. The calling check_foreign_key loses its plan informantion and> > when it tries to use it the backend closes its channel. You can check it> > with the sql script I am attaching below.> > The solution to this is to do a find_plan again before executing it at> > line 483 of refint.c.> > Therefore two more lines should be added before line 483:Anand Surelia1 parentb7ed6f8 commit3abf496
2 files changed
+5
-3
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
480 | 480 |
| |
481 | 481 |
| |
482 | 482 |
| |
| 483 | + | |
| 484 | + | |
483 | 485 |
| |
484 | 486 |
| |
485 | 487 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
281 | 281 |
| |
282 | 282 |
| |
283 | 283 |
| |
284 |
| - | |
| 284 | + | |
285 | 285 |
| |
286 | 286 |
| |
287 | 287 |
| |
288 |
| - | |
| 288 | + | |
289 | 289 |
| |
290 |
| - | |
| 290 | + | |
291 | 291 |
| |
292 | 292 |
| |
293 | 293 |
| |
|
0 commit comments
Comments
(0)