Laurenz Albe <laurenz.albe@cybertec.at> writes:
> On Sat, 2021-06-05 at 00:12 +1200, David Rowley wrote:
>> As for the call to generate_series, you're not likely to ever get any
>> great estimation from that.
> "generate_series" has a support function from v12 on:
True, but I don't think it can do anything with non-constant inputs,
as we have in the OP's case.
regards, tom lane