Re: Postgres dies when using an intarray operator - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Postgres dies when using an intarray operator
Date
Msg-id 16936.1143940817@sss.pgh.pa.us
Whole thread Raw
In response to Re: Postgres dies when using an intarray operator  (Michael Fuhr <mike@fuhr.org>)
List pgsql-hackers
Michael Fuhr <mike@fuhr.org> writes:
> Here's a complete test case:

> CREATE TABLE foo (a integer[]);

> INSERT INTO foo (a)
>   SELECT array[random() * 10, random() * 10, random() * 10]
>   FROM generate_series(1, 24);

> CREATE INDEX foo_a_idx ON foo USING gist (a gist__int_ops);

> SET enable_seqscan TO off;
> SELECT f1.a & f2.a FROM foo f1, foo f2 WHERE f1.a && f2.a;

This seems to bear out the concern expressed at _int_gist.c line 44:
/* XXX are we sure it's safe to scribble on the query object here? */
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Suggestion: Which Binary?
Next
From: Christopher Browne
Date:
Subject: Re: Slony-I for circular replication