Re: [GENERAL] Date: Fri, 25 Jun 1999 09:56:12 +0200

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: "Ansley, Michael" <Michael(dot)Ansley(at)intec(dot)co(dot)za>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] Date: Fri, 25 Jun 1999 09:56:12 +0200
Date: 1999-06-25 13:20:32
Message-ID: 199906251320.JAA20486@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Legacy apps, Bruce. Sometimes you come across tables with ten fields in the
> index. I'm working on a (fairly specialised) system now where the primary
> key of one of the tables has twenty-four fields in it. It is a summary
> table, and probably not the best design, but that's the way it is, and I
> have to live with it. Unfortunately, because we don't have a database that
> can have that many fields in a key, we have to construct manual indices in
> code. Even Oracle (which is what we are using) only goes up to about 21 or
> something. However, if you are going to summarise heavily, then the number
> of fields in your primary key can get quite large.
> How difficult would it be to make the number of fields in an index unlimited
> (or arbitrarily large). Perhaps there could be a compile-time variable
> which is defaulted to 7, but which can be increased using the configure
> script (./configure --with-index-fields=24). I realise that there are
> performance issues, but that's a trade off that only the system designers
> can make.

There is a special oid8 type that holds eight oids the represent the
index entries. We would have to expand that field to a larger value. I
don't believe there is any real reason we have to limit it to eight. We
don't do any other fancy stuff with it. The only other issue is that
all indexes will have to use the maximum space. We could make it a
varlena() field, and do it that way.

We have not had any real demand for more than eight, but I can see your
point. I will put it on the TODO list.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

  • at 1999-06-25 07:56:12 from Ansley, Michael

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 1999-06-25 13:27:34 Re: [GENERAL] *Old* PostgreSQL version
Previous Message Alex Shnitman 1999-06-25 13:17:46 *Old* PostgreSQL version