Re: request for feedback - read-only GUC variables, - Mailing list pgsql-hackers

From Tom Lane
Subject Re: request for feedback - read-only GUC variables,
Date
Msg-id 29546.1070681436@sss.pgh.pa.us
Whole thread Raw
In response to Re: request for feedback - read-only GUC variables,  (Joe Conway <mail@joeconway.com>)
List pgsql-hackers
Joe Conway <mail@joeconway.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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: 7.4.1 ... slight change of scheduale ...
Next
From: Tom Lane
Date:
Subject: Re: Postgres 7.3.5 and count('x')