On 04/06/25 15:47, Tom Lane wrote: > Chapman Flack <jcfl...@acm.org> writes: >> Can a spread-out variadic "any" arg list ever vary >> in length or type on the fly at a single call site? > > Don't think so.
Only slightly tangentially: what things count as "objects that depend on the transform" for purposes of DROP TRANSFORM ... CASCADE / RESTRICT ? I just now dropped (in 17.4) a transform named in an existing routine's declaration, with nary a peep. I'm not, for now, complaining, as my objective was to make sure my dispatcher noticed that, when dispatching to the routine, and if DROP TRANSFORM had refused, I'd have had to work harder. Right now the dispatcher is only checking before validate or prepare though. If transforms can really just vanish I'd better check even when dispatching to a cached version. I suppose a cached routine could continue merrily along using the vanished transform's functions, as long as they haven't vanished. But once the transform is dropped there's nothing saying you can't drop the functions, and that could get weird. Or, is somehow registering a routine's dependency on a transform something that its PL handler is responsible for doing? I could sort of see that, given that it's the PL that has to make whatever actual transformation happens, happen. But relying on the PL to record the dependency would seem brittle, what with validators not running for sure in all circumstances. Regards, -Chap