Nathan Bossart <nathandboss...@gmail.com> writes: > On Wed, Jul 10, 2024 at 01:41:41PM -0500, Nathan Bossart wrote: >> On Wed, Jul 10, 2024 at 11:11:13AM -0400, Tom Lane wrote: >>> We went through a ton of permutations of that kind of >>> idea years ago, when it first became totally clear that cross-checks >>> between GUCs do not work nicely if implemented in check_hooks.
>> Do you remember the general timeframe or any of the GUCs involved? I spent >> some time searching through the commit log and mailing lists, but I've thus >> far only found allusions to past bad experiences with such hooks. > Could it be the effective_cache_size work from 2013-2014? Yeah, that's what I was remembering. It looks like my memory was slightly faulty, in that what ee1e5662d tried to do was make the default value of one GUC depend on the actual value of another one, not implement a consistency check per se. But the underlying problem is the same: a check_hook can't assume it is seeing the appropriate value of some other GUC, since a change of that one may be pending. regards, tom lane