"Alex Hunsaker" <badalex(at)gmail(dot)com> writes:
> Perhaps my simple updates are not enough for analyze to
> invalidate the query plan? Should I be doing inserts/deletes or just
> more updates?
No, AFAICS the plan inval will happen after a vacuum regardless of whether
anything actually changed. I'm thinking that there's some property
of the query or the invoked function that's relevant, but it's not
clear what. (We'll know soon enough once we can reproduce it easily...)
regards, tom lane