> > There is a bug in check_foreign_key of refint.c which is bundled with
Bruce Momjian <bruce@momjian.us>
> > 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 Surelia
Files
| Path | Change | +/− |
|---|---|---|
| contrib/spi/refint.c | modified | +2 −0 |
| doc/src/sgml/ref/pg_dump.sgml | modified | +3 −3 |