Re: Patch: plan invalidation vs stored procedures - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Patch: plan invalidation vs stored procedures
Date
Msg-id 14897.1219189516@sss.pgh.pa.us
Whole thread Raw
In response to Re: Patch: plan invalidation vs stored procedures  (Hannu Krosing <hannu@2ndQuadrant.com>)
Responses Re: Patch: plan invalidation vs stored procedures
Re: Patch: plan invalidation vs stored procedures
List pgsql-hackers
Hannu Krosing <hannu@2ndQuadrant.com> writes:
> If there is plan invalidation then you just change called1() to return
> one more field and that's it - no juggling with C) and D) and generally
> less things that can go wrong.

That is a pure flight of fancy.  Adjusting a function's API generally
requires source-code changes on the caller side too.  There might be
a few limited cases where you can avoid that, but that doesn't leave
you with much of an argument that this is a critical bug fix.  It's
a corner case and little more.

FWIW, given that there will probably always be corner cases. I can see
the attraction in Simon's suggestion of providing a way to manually
issue a system-wide forced plan flush.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Patch: plan invalidation vs stored procedures
Next
From: Andrew Dunstan
Date:
Subject: Re: Patch: plan invalidation vs stored procedures