Re: Another issue in default-values patch: defaults expanded too soon

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Robert Haas" <robertmhaas(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Another issue in default-values patch: defaults expanded too soon
Date: 2008-12-17 02:18:36
Message-ID: 19303.1229480316@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Robert Haas" <robertmhaas(at)gmail(dot)com> writes:
> I wonder whether the whole architecture is wrong here. Perhaps when a
> function is created with N arguments of which M have default values,
> we should actually create M entries in pg_proc: one for each possible
> number of arguments from N-M up through N.

That's been considered and rejected before, in the context of the
variadic-function patch which has a lot of the same issues. What it
mostly does is bloat pg_proc.

> I think this would kill all of the problems reported thus far at one
> blow.

No, it doesn't resolve any of them ... particularly not the ones
associated with defaults for polymorphics.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Emmanuel Cecchet 2008-12-17 02:48:35 Partitioning wiki page
Previous Message Fujii Masao 2008-12-17 02:15:17 Re: DTrace probes patch