Re: [DOCS] can't reproduce example - Mailing list pgsql-docs

From Herve Duchesne
Subject Re: [DOCS] can't reproduce example
Date
Msg-id c358e481-2d7b-18c4-a489-73710d1d9cdf@gmail.com
Whole thread Raw
In response to Re: [DOCS] can't reproduce example  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-docs
You are right,

CREATE EXTENSION btree_gist;

the command failed because I was not superuser. I did it as postgres 
user and It works now.

Thanks.



Le 22/09/2017 à 17:47, Tom Lane a écrit :
> herve@duchesne.me writes:
>> I tried to reproduce the example :
>> CREATE EXTENSION btree_gist;
>> CREATE TABLE room_reservation (
>>      room text,
>>      during tsrange,
>>      EXCLUDE USING GIST (room WITH =, during WITH &&)
>> );
>> but I got this error :
>> ERROR:  data type text has no default operator class for access method
>> "gist"
> It works for me.  You sure you installed the extension successfully?
>
>             regards, tom lane



-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs

pgsql-docs by date:

Previous
From: zszmigiero@gmail.com
Date:
Subject: [DOCS] RECURSIVE update
Next
From: sanyamjain22@live.in
Date:
Subject: [DOCS] drop table doesn't fire ddl_command_end event trigger