Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxFLT-00047w-LW for pgsql-docs@arkaria.postgresql.org; Wed, 27 Sep 2017 16:37:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dxFLT-0006vL-85 for pgsql-docs@arkaria.postgresql.org; Wed, 27 Sep 2017 16:37:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dwPqY-000301-Uk for pgsql-docs@postgresql.org; Mon, 25 Sep 2017 09:38:39 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dwPqV-00085a-R3 for pgsql-docs@postgresql.org; Mon, 25 Sep 2017 09:38:38 +0000 Received: by mail-wm0-x235.google.com with SMTP id m127so9927012wmm.1 for ; Mon, 25 Sep 2017 02:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=0s6QZ0EfRXXXa4gL9NVS/l4cQpyDBVFPXfgbGnSGFys=; b=KCDzUB3LjeKC9MIRO6e/bFUlpo9zByDO37abjd0gUQW1D+r0XC/fwTQf+Jq+WHOMKJ CSGSeqZJQpTPZwFC9OT4JpqKnGRnlbHUpAr5hveYksniNce29aIHO6ayY+A23RTl/58t n4QEN1QuUYLiBGTSRYCrP9tM2plzhLP+LjHoTjnrPFAGo+itQTLYgiW0bnsUb62T0cH7 /hpxKnhAuxIZ911vKWoFes5Q4UbUm7aOnyDzK9OTK8jC4/nnkm3L7VD1xhIbF9W3WQyo 4imRMsIkRIsUU+SmTEJNQddmJG25ASva0BL+Ff3qMOHeHAmJXtnIFf5TokZrfilys4S8 5k3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=0s6QZ0EfRXXXa4gL9NVS/l4cQpyDBVFPXfgbGnSGFys=; b=F5sFWoGwqhoAWa73/DUx4IZbSRYoORMi29/bkHjJjeYBiAV8vo1V8GOHCPjriMEHXb qNC+lQy7MR200KA9pEsTuLrXDc6y70VQv4hMub2uQz1/bXs6W3e2gXGR1mFq5ArGz05s LLWpTpMkhhJDQQYYQWz5gj+6h1/9CHzzUkN93GrLMF1Yl7pXXW6a3HNzXXdBGD1vvWwM DfCsnZaFX/cKhwJ7oDqNAdFSNcmKfEtF+lgqrAPobVt8PyZD/At63Fr0fHcBQx3r5MPB yZ2olAbEbWKQh50SFvDPPmTv1sRW+trSvYQB8Od//YBj5O+7UsgOOOyYXTjBVDGWpWK8 r7Nw== X-Gm-Message-State: AHPjjUhp50+aTG4M7O+Tbc2tC54OKUkWhtX2kBMsCjuPwKZgOLv7+xIU friAZpFWt1Zmeh1vxTmls69yo86K X-Google-Smtp-Source: AOwi7QDCx0bK+qZyn+YiKsyCANldC8NxpYWNavzTZOCUDrCqrNBDMCgiyEo8SHDzOG8DmDtNy6/QsA== X-Received: by 10.80.145.175 with SMTP id g44mr13519631eda.34.1506332314850; Mon, 25 Sep 2017 02:38:34 -0700 (PDT) Received: from [192.168.1.18] (LFbn-1-3492-249.w90-127.abo.wanadoo.fr. [90.127.245.249]) by smtp.gmail.com with ESMTPSA id h45sm4210502eda.92.2017.09.25.02.38.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Sep 2017 02:38:33 -0700 (PDT) Subject: Re: can't reproduce example To: Tom Lane , herve@duchesne.me Cc: pgsql-docs@postgresql.org References: <20170922150333.1448.70668@wrigleys.postgresql.org> <2754.1506095239@sss.pgh.pa.us> From: Herve Duchesne Message-ID: Date: Mon, 25 Sep 2017 11:38:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <2754.1506095239@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org 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