Re: request for feedback - read-only GUC variables,

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: request for feedback - read-only GUC variables,
Date: 2003-12-06 03:30:36
Message-ID: 29546.1070681436@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Joe Conway <mail(at)joeconway(dot)com> writes:
> Josh Berkus wrote:
>> Have we decoupled these two variables?

> Their values are still the same, but Tom suggested we not couple them
> inextricably by giving users access to them as one variable.

The only reason they are the same is that pg_proc.proargtypes and
pg_index.indclass use the same fixed-length datatype, oidvector,
and so FUNC_MAX_ARGS and INDEX_MAX_KEYS must both equal the size of
this array type.

We could decouple them if we felt like it, by introducing a second
oidvector-ish datatype for one table or the other. While I don't see
any particular reason to do so, it could happen that we want to sometime
in the future. If we publicize to users that there is only one variable
determining both limits, it'd be a lot harder to do anything.

Basically the point is that the backend code is careful to use
FUNC_MAX_ARGS or INDEX_MAX_KEYS as appropriate, and we shouldn't
throw away that distinction at the user level.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-12-06 03:51:37 Re: Postgres 7.3.5 and count('x')
Previous Message Tom Lane 2003-12-06 03:13:14 Re: 7.4.1 ... slight change of scheduale ...