Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> writes:
> This is really annoying since:
> o these code fragments actually controls the optimization efforts for
> subqueries and views, not related to GEQO at all. So using GEQO
> parameters for this kind of purpose seems abuse for me.
But GEQO_RELS is directly related to the maximum number of FROM-clause
entries that we want to try to handle by exhaustive search. So I think
it's not completely unreasonable to use it for this additional purpose.
Still, if you want to do the work to create another GUC parameter,
I won't object.
regards, tom lane