From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Teodor Sigaev <teodor(at)sigaev(dot)ru>, Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: knngist - 0.8 |
Date: | 2010-11-23 03:18:25 |
Message-ID: | AANLkTinFWMPrE+NYaR_eZyQi8azeQDSWVFRmekymSQNw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Nov 22, 2010 at 8:32 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> The reason I bring this up now is that it affects the decision as to
> what the unique key for pg_amop ought to be. Instead of having an
> enum "purpose" column, maybe we should consider that the unique key
> is (operator oid, opfamily oid, order-by-oid), where order-by-oid
> is zero for a search operator and the OID of the btree opclass or sort
> operator for an ordering operator. This would be of value if we
> imagined that a single opclass could support ordering by more than one
> distance ordering operator; which seems a bit far-fetched but perhaps
> not impossible. On the other side of the coin it'd mean we aren't
> leaving room for other sorts of operator "purposes".
Since the need for additional purposes is mostly hypothetical, this
wouldn't bother me any.
> On balance I'm inclined to leave the unique key as per previous proposal
> (with a "purpose" column) and add the which-sort-order-is-that
> information as payload columns that aren't part of the key.
This is probably OK too, although I confess I'm a lot less happy about
it now that you've pointed out the need for those payload columns.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2010-11-23 03:31:30 | Re: ALTER OBJECT any_name SET SCHEMA name |
Previous Message | Robert Haas | 2010-11-23 03:08:54 | Re: reporting reason for certain locks |