Re: Re: Null-safe GiST interface (proposal)

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>, Teodor Sigaev <teodor(at)stack(dot)net>
Subject: Re: Re: Null-safe GiST interface (proposal)
Date: 2001-08-07 19:33:31
Message-ID: Pine.GSO.4.33.0108072215550.4719-102000@ra.sai.msu.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

please apply patch to current CVS which implements:

1. null-safe interface to GiST
(as proposed in http://fts.postgresql.org/db/mw/msg.html?mid=1028327)

2. support for 'pass-by-value' arguments - to test this
we used special opclass for int4 with values in range [0-2^15]
More testing will be done after resolving problem with
index_formtuple and implementation of B-tree using GiST

3. small patch to contrib modules (seg,cube,rtree_gist,intarray) -
mark functions as 'isstrict' where needed.

Patch was intensively tested (attached test.tgz contains test suite):

This is a generic test suite for GiST (7.2):

1. tests GiST multi-key indexes
2. tests null-safe interface to GiST
(see proposal http://fts.postgresql.org/db/mw/msg.html?mid=1028327)

USAGE:

Create db and install contrib modules: intarray, rtree_gist, seg, cube.
Edit gen.pl for $pgsqlsrc
% perl gen.pl > /tmp/data
% psql TESTDB < test.sql

Regards,
Oleg

On Fri, 3 Aug 2001, Tom Lane wrote:

> Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> writes:
> > 2. For union and picksplit we propose to clean up NULLs from array of
> > keys, so support of arguments 'passed-by-value' will not require
> > changes of user interface. It would require some modification of current
> > algorithm of splitting, but this wouldn't be a complex task for us.
>
> Seems reasonable. Would there ever be a union or picksplit method that
> would want to do anything with nulls except ignore them? I can't think
> of a reason to do differently, so you're just centralizing the logic to
> ignore nulls in these methods.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

Attachment Content-Type Size
patch.gz application/octet-stream 10.0 KB
test.tgz application/octet-stream 1.0 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-08-07 19:34:02 Re: FW: [JDBC] BIGINT vs Java's long
Previous Message Oleg Bartunov 2001-08-07 19:10:57 Re: To be 7.1.3 or not to be 7.1.3?