GIN インデックスを使用したいと思いuuid[]
ます (uuid の配列の効率的なメンバーシップ テストを行うため)。ただし、試してみると、PostgreSQL でエラーが発生します。
mydb=> CREATE TABLE foo (val uuid[]);
CREATE TABLE
mydb=> CREATE INDEX foo_idx ON foo USING GIN(val);
ERROR: data type uuid[] has no default operator class for access method "gin"
HINT: You must specify an operator class for the index or define a default operator class for the data type.
必要な演算子クラスを追加して機能させるにはどうすればよいですか?
これはタイプの同様の質問ですcitext
が、提供された回答は機能しないことに注意してください。