[pgsql-jp: 30131] ユーザ定義型の検索

junji junji @ gi.k.u-tokyo.ac.jp
2003年 6月 5日 (木) 01:25:12 JST


橋本といいます。
はじめまして。

既知だったらすみません。
ユーザ定義型でbtreeをつかってbackwardサーチが
できません。なぜでしょうか?

int,floatなどではbackwardサーチがうまくつかえるのですが、
postgresql-7.3.2/src/tutorial
の下にあるcomplex型でもうまくいきませんでした。


例ですけど、
set enable_seqscan to off;
create table test_int ( a int);
insert into test_int values(2);
       .
       .
create index test_int_idx on test_int(a);
select * from test_int where a < 10 order by a desc;
の場合は
Index Scan Backward
で検索がされるのですが、
set enable_seqscan to off;
create table test_complex ( a complex);
insert into test_complex values('(2,1)');
       .
       .
create index test_complex_idx on test_complex(a);
select * from test_complex where a < '(10,1)' order by a desc;
の場合は
Index Scan
で検索されますが、Backwardで検索されません。





pgsql-jp メーリングリストの案内