Re: GiST index question

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Eric Fleming <efleming(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: Re: GiST index question
Date: 2014-09-04 04:31:04
Message-ID: CAB7nPqSve8joZwTq3w4nZVTm273xw4WOLXThJ+z6=ouZ-rhe-Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Sep 4, 2014 at 8:35 AM, Eric Fleming <efleming(at)gmail(dot)com> wrote:
> I have a table that I have defined as:
>
> CREATE TABLE test (
> "id" SERIAL PRIMARY KEY,
> "first_path" path NOT NULL,
> "second_path" path NOT NULL
> );
>
> I am attempting to create a GiST index on the two "path" columns using:
>
> CREATE INDEX "idx_test_first_path" ON test USING gist(first_path);
> CREATE INDEX "idx_test_second_path" ON test USING gist(second_path);
>
> I am getting this error:
>
> Error : ERROR: data type path has no default operator class for access
> method "gist"
>
> Is it that I am not allowed to create an index on the path data type or do I
> need to enable an extension for this to work? Thanks in advance for your
> help.
In-core contrib modules (and core) do not have yet support for gist
operator classes for the datatype path as far as I recall.
Regards,
--
Michael

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brett Mc Bride 2014-09-04 04:43:12 Re: || operator
Previous Message Vinayak 2014-09-04 04:27:23 Re: || operator