1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Repair intarray's problems with TOASTed input, avoid scribbling on

source data, improve split algorithm for intbig_ops.  Oleg Bartunov
with some kibitzing from Tom Lane.
This commit is contained in:
Tom Lane
2001-03-20 03:08:12 +00:00
parent 9e07c9a39c
commit 2ef6e7ee18
4 changed files with 2212 additions and 188 deletions

View File

@ -8,7 +8,7 @@ CREATE TABLE test__int( a int[] );
SELECT count(*) from test__int WHERE a && '{23,50}';
count
-------
345
403
(1 row)
SELECT count(*) from test__int WHERE a @ '{23,50}';
@ -21,7 +21,7 @@ CREATE INDEX text_idx on test__int using gist ( a gist__int_ops ) with ( islossy
SELECT count(*) from test__int WHERE a && '{23,50}';
count
-------
345
403
(1 row)
SELECT count(*) from test__int WHERE a @ '{23,50}';
@ -35,7 +35,7 @@ CREATE INDEX text_idx on test__int using gist ( a gist__intbig_ops ) with ( islo
SELECT count(*) from test__int WHERE a && '{23,50}';
count
-------
345
403
(1 row)
SELECT count(*) from test__int WHERE a @ '{23,50}';