Re: Functions with more than 32 parameters

From: Christopher Browne <cbbrowne(at)acm(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Functions with more than 32 parameters
Date: 2005-02-11 03:19:09
Message-ID: 372mhdF569et6U1@individual.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Certainly you can change this.

Edit the following file in your source tree:

cbbrowne(at)wolfe:/brownes/wolfe/compiles/pgsql> vi src/include/pg_config_manual.h

/*
* Maximum number of columns in an index and maximum number of
* arguments to a function. They must be the same value.
*
* The minimum value is 8 (index creation uses 8-argument functions).
* There is no specific upper limit, although large values will waste
* system-table space and processing time.
*
* Changing these requires an initdb.
*/
#define INDEX_MAX_KEYS 32
#define FUNC_MAX_ARGS INDEX_MAX_KEYS

You will have to recompile PostgreSQL and create a fresh database
instance using initdb with the new maxima for these configuration
values.

Fortunately, the ability to recompile as needed is kind of the whole
point of this "open source" stuff...
--
"cbbrowne","@","gmail.com"
http://linuxdatabases.info/~cbbrowne/spreadsheets.html
They are called computers simply because computation is the only
significant job that has so far been given to them. -- Louis Ridenour

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-02-11 03:30:26 Re: Understanding EXPLAIN ANALYZE output
Previous Message Jamie Deppeler 2005-02-11 03:07:43 Distributed Data Base Management System