On Mon, Aug 05, 2019 at 09:20:07AM +0200, Daniel Gustafsson wrote:
> Thanks, the attached v4 updates to patch to handle a0555ddab9b672a046 as well.
+ if (referenced->numrefs == 1)
+ recordDependencyOn(depender, &referenced->refs[0], behavior);
+ else
+ recordMultipleDependencies(depender,
+ referenced->refs, referenced->numrefs,
+ behavior);
This makes me wonder if we should not just add a shortcut in
recordMultipleDependencies() to use recordDependencyOn if there is
only one reference in the set. That would save the effort of a multi
insert for all callers of recordMultipleDependencies() this way,
including the future ones. And that could also be done independently
of the addition of InsertPgAttributeTuples(), no?
--
Michael