Re: [GENERAL] view/pgpgsql functions bug

2005-02-25 Thread Joe Maldonado
Tom Lane wrote: Joe Maldonado <[EMAIL PROTECTED]> writes: After a create or replace view, the new view definition is not being used by plpgsql functions that use the view. Is this a known bug ? Is there a workaround it ? Start a fresh backend session. The old query plan is presumably being

Re: [GENERAL] view/pgpgsql functions bug

2005-02-23 Thread Tom Lane
Joe Maldonado <[EMAIL PROTECTED]> writes: > After a create or replace view, the new view definition is not being > used by plpgsql functions that use the view. Is this a known bug ? Is > there a workaround it ? Start a fresh backend session. The old query plan is presumably being cached by plpgsq

[GENERAL] view/pgpgsql functions bug

2005-02-23 Thread Joe Maldonado
After a create or replace view, the new view definition is not being used by plpgsql functions that use the view. Is this a known bug ? Is there a workaround it ? For instance, selecting from afunc() still returns the old view's results. create table c ( a int ); create or replace view a as select