Foreign key plan caching (too long!) - Mailing list pgsql-hackers

From Rod Taylor
Subject Foreign key plan caching (too long!)
Date
Msg-id 1065717781.45504.17.camel@jester
Whole thread Raw
List pgsql-hackers
Below is a short script which causes an error in the foreign key plan
caching. It appears to cause the error with or without the transaction,
but closing the connection between steps causes it to go away.

Can the cache be cleared after each statement?


Error reported:       psql:/home/rbt/bugtest:18: ERROR:  could not open relation with       OID 26353


Script:       begin;              create table a (col integer primary key);              create table b (col integer
primarykey references a on update       cascade on delete cascade);                     insert into a values (1);
insertinto b values (1);              insert into a values (2);       insert into b values (2);              delete
froma where col = 1;              alter table b drop constraint b_pkey;              delete from a where col = 2;
      commit; 



pgsql-hackers by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: 2-phase commit
Next
From: Peter Eisentraut
Date:
Subject: Re: [PORTS] [COMMITTERS] pgsql-server/src/template bsdi freebsd