Hi, On Tue, Oct 25, 2022 at 11:08:27AM +0200, Laurenz Albe wrote: > > Here is a patch that > implements it with an EXPLAIN option named GENERIC_PLAN.
I only have a quick look at the patch for now. Any reason why you don't rely on the existing explain_filter() function for emitting stable output (without having to remove the costs)? It would also take care of checking that it works in plpgsql.