Peter Eisentraut <[EMAIL PROTECTED]> writes: > Joe Conway writes: >> 3. Modify CREATE FUNCTION to allow the implicit creation of a dependent >> composite type, e.g.:
> Forgive this blunt question, but: Why? > Of course I can see the answer, it's convenient, but wouldn't the system > be more consistent overall if all functions and types are declared > explicitly? I was wondering about that too, in particular: what name are you going to give to the implicit type, and what if it conflicts? The already-accepted mechanism for anonymous function-result types for RECORD functions doesn't have that problem, because it has no need to create a catalog entry for the anonymous type. But I'm not sure what to do for record types that need to be present in the catalogs. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly