Bruce Momjian <br...@momjian.us> writes: > What if we globally or locally cache the _cost_ of plans, so we can > consult that cache before planning and enable certain optimizations?
But what would you use as cache key? And how's this help if we haven't seen a similar query before in the session? regards, tom lane