database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
ㆍPostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
PostgreSQL Q&A 4489 게시물 읽기
No. 4489
[질문] 아랬글에 이어서..point 좌표에 인덱스 걸때.--;
작성자
이근호(amnesty)
작성일
2002-12-20 17:06
조회수
1,048

아래 reply 해 주신 글과 같이 함 걸어 봤는데 다음과 같은 에러가 납니다...무슨 말인지 통..--; 알 수가 없습니다... 도와 주십시오..어떻게 해야 할찌요... 부탁 드립니다.

 

ERROR: data type point has no default operator class for access method "rtree"

You must specify an operator class for the index or define a

default operator class for the data type

이 글에 대한 댓글이 총 2건 있습니다.

에러 메시지 그대로의 의미입니다. 안타깝게도 point 타입에 대해서는 인덱싱을 못거는 것 같습니다. 혹시 hash 인덱싱은 될련가... 다음은 indexing 시 이용하는 access method 에 operator class 입니다.

 

 acc_method | ops_name        | ops_comp 
------------+-----------------+----------
 btree      | abstime_ops     | < 
 btree      | abstime_ops     | <= 
 btree      | abstime_ops     | = 
 btree      | abstime_ops     | > 
 btree      | abstime_ops     | >= 
 btree      | bit_ops         | < 
 btree      | bit_ops         | <= 
 btree      | bit_ops         | = 
 btree      | bit_ops         | > 
 btree      | bit_ops         | >= 
 btree      | bool_ops        | < 
 btree      | bool_ops        | <= 
 btree      | bool_ops        | = 
 btree      | bool_ops        | > 
 btree      | bool_ops        | >= 
 btree      | bpchar_ops      | < 
 btree      | bpchar_ops      | <= 
 btree      | bpchar_ops      | = 
 btree      | bpchar_ops      | > 
 btree      | bpchar_ops      | >= 
 btree      | bytea_ops       | < 
 btree      | bytea_ops       | <= 
 btree      | bytea_ops       | = 
 btree      | bytea_ops       | > 
 btree      | bytea_ops       | >= 
 btree      | char_ops        | < 
 btree      | char_ops        | <= 
 btree      | char_ops        | = 
 btree      | char_ops        | > 
 btree      | char_ops        | >= 
 btree      | cidr_ops        | < 
 btree      | cidr_ops        | <= 
 btree      | cidr_ops        | = 
 btree      | cidr_ops        | > 
 btree      | cidr_ops        | >= 
 btree      | date_ops        | < 
 btree      | date_ops        | <= 
 btree      | date_ops        | = 
 btree      | date_ops        | > 
 btree      | date_ops        | >= 
 btree      | float4_ops      | < 
 btree      | float4_ops      | <= 
 btree      | float4_ops      | = 
 btree      | float4_ops      | > 
 btree      | float4_ops      | >= 
 btree      | float8_ops      | < 
 btree      | float8_ops      | <= 
 btree      | float8_ops      | = 
 btree      | float8_ops      | > 
 btree      | float8_ops      | >= 
 btree      | inet_ops        | < 
 btree      | inet_ops        | <= 
 btree      | inet_ops        | = 
 btree      | inet_ops        | > 
 btree      | inet_ops        | >= 
 btree      | int2_ops        | < 
 btree      | int2_ops        | <= 
 btree      | int2_ops        | = 
 btree      | int2_ops        | > 
 btree      | int2_ops        | >= 
 btree      | int4_ops        | < 
 btree      | int4_ops        | <= 
 btree      | int4_ops        | = 
 btree      | int4_ops        | > 
 btree      | int4_ops        | >= 
 btree      | int8_ops        | < 
 btree      | int8_ops        | <= 
 btree      | int8_ops        | = 
 btree      | int8_ops        | > 
 btree      | int8_ops        | >= 
 btree      | interval_ops    | < 
 btree      | interval_ops    | <= 
 btree      | interval_ops    | = 
 btree      | interval_ops    | > 
 btree      | interval_ops    | >= 
 btree      | macaddr_ops     | < 
 btree      | macaddr_ops     | <= 
 btree      | macaddr_ops     | = 
 btree      | macaddr_ops     | > 
 btree      | macaddr_ops     | >= 
 btree      | name_ops        | < 
 btree      | name_ops        | <= 
 btree      | name_ops        | = 
 btree      | name_ops        | > 
 btree      | name_ops        | >= 
 btree      | numeric_ops     | < 
 btree      | numeric_ops     | <= 
 btree      | numeric_ops     | = 
 btree      | numeric_ops     | > 
 btree      | numeric_ops     | >= 
 btree      | oid_ops         | < 
 btree      | oid_ops         | <= 
 btree      | oid_ops         | = 
 btree      | oid_ops         | > 
 btree      | oid_ops         | >= 
 btree      | oidvector_ops   | < 
 btree      | oidvector_ops   | <= 
 btree      | oidvector_ops   | = 
 btree      | oidvector_ops   | > 
 btree      | oidvector_ops   | >= 
 btree      | text_ops        | < 
 btree      | text_ops        | <= 
 btree      | text_ops        | = 
 btree      | text_ops        | > 
 btree      | text_ops        | >= 
 btree      | time_ops        | < 
 btree      | time_ops        | <= 
 btree      | time_ops        | = 
 btree      | time_ops        | > 
 btree      | time_ops        | >= 
 btree      | timestamp_ops   | < 
 btree      | timestamp_ops   | <= 
 btree      | timestamp_ops   | = 
 btree      | timestamp_ops   | > 
 btree      | timestamp_ops   | >= 
 btree      | timestamptz_ops | < 
 btree      | timestamptz_ops | <= 
 btree      | timestamptz_ops | = 
 btree      | timestamptz_ops | > 
 btree      | timestamptz_ops | >= 
 btree      | timetz_ops      | < 
 btree      | timetz_ops      | <= 
 btree      | timetz_ops      | = 
 btree      | timetz_ops      | > 
 btree      | timetz_ops      | >= 
 btree      | varbit_ops      | < 
 btree      | varbit_ops      | <= 
 btree      | varbit_ops      | = 
 btree      | varbit_ops      | > 
 btree      | varbit_ops      | >= 
 btree      | varchar_ops     | < 
 btree      | varchar_ops     | <= 
 btree      | varchar_ops     | = 
 btree      | varchar_ops     | > 
 btree      | varchar_ops     | >= 
 hash       | bpchar_ops      | = 
 hash       | char_ops        | = 
 hash       | cidr_ops        | = 
 hash       | date_ops        | = 
 hash       | float4_ops      | = 
 hash       | float8_ops      | = 
 hash       | inet_ops        | = 
 hash       | int2_ops        | = 
 hash       | int4_ops        | = 
 hash       | int8_ops        | = 
 hash       | interval_ops    | = 
 hash       | macaddr_ops     | = 
 hash       | name_ops        | = 
 hash       | oid_ops         | = 
 hash       | oidvector_ops   | = 
 hash       | text_ops        | = 
 hash       | time_ops        | = 
 hash       | timestamp_ops   | = 
 hash       | timestamptz_ops | = 
 hash       | timetz_ops      | = 
 hash       | varchar_ops     | = 
 rtree      | bigbox_ops      | && 
 rtree      | bigbox_ops      | &< 
 rtree      | bigbox_ops      | &> 
 rtree      | bigbox_ops      | << 
 rtree      | bigbox_ops      | >> 
 rtree      | bigbox_ops      | @ 
 rtree      | bigbox_ops      | ~ 
 rtree      | bigbox_ops      | ~= 
 rtree      | box_ops         | && 
 rtree      | box_ops         | &< 
 rtree      | box_ops         | &> 
 rtree      | box_ops         | << 
 rtree      | box_ops         | >> 
 rtree      | box_ops         | @ 
 rtree      | box_ops         | ~ 
 rtree      | box_ops         | ~= 
 rtree      | poly_ops        | && 
 rtree      | poly_ops        | &< 
 rtree      | poly_ops        | &> 
 rtree      | poly_ops        | << 
 rtree      | poly_ops        | >> 
 rtree      | poly_ops        | @ 
 rtree      | poly_ops        | ~ 
 rtree      | poly_ops        | ~= 
정재익(advance)님이 2002-12-20 21:10에 작성한 댓글입니다.

like 는 어떤 인덱스가 될까요? =_=;

저번에 해보니까 hash는 안되고 btree는 되는 모양이던데..

제한적이지만요 =_=

like 'abcde%' 는 인덱스를 사용하고 like '%abcde'는 사용않고 like '%abcde%' 도 사용않고.. -_-;;;

애매합니다 =_=

신기배(nonun)님이 2002-12-21 00:49에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
4492[질문] mysql 질의를 postgresql 질의로 바꾸고 있습니다.
이근호
2002-12-23
881
4491테이블 사이즈는 어떻게 알수 있지요? [2]
박대일
2002-12-21
1036
4490어떤 종류의 에러인지 [1]
이성희
2002-12-21
861
4489[질문] 아랬글에 이어서..point 좌표에 인덱스 걸때.--; [2]
이근호
2002-12-20
1048
4487[참고] 디비 백업/복구/자동화 [1]
skyer9
2002-12-19
1344
4486[질문] point 좌표에 인덱스 거는 법좀 알려주세여 [1]
이근호
2002-12-18
881
4484[질문]오라클 설치 오류.,...
정종훈
2002-12-18
1012
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.017초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다