Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTQlm-0002d9-A2 for pgadmin-hackers@arkaria.postgresql.org; Tue, 17 Jan 2017 10:13:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cTQll-0001Bi-LV for pgadmin-hackers@arkaria.postgresql.org; Tue, 17 Jan 2017 10:13:37 +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 1cTQlY-0000x0-3y for pgadmin-hackers@postgresql.org; Tue, 17 Jan 2017 10:13:24 +0000 Received: from mail-vk0-x234.google.com ([2607:f8b0:400c:c05::234]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cTQlP-0006iz-Qm for pgadmin-hackers@postgresql.org; Tue, 17 Jan 2017 10:13:23 +0000 Received: by mail-vk0-x234.google.com with SMTP id x75so89317396vke.2 for ; Tue, 17 Jan 2017 02:13:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8RL1OXPIHUpSxA0WTXqCem0nda8LnTgFVNjBgucxuxU=; b=VnMCyU1IDtYZJHVxIw3EqWa/CFl9yVwDDnQ0vz/uxEQ3Sb5N+0nioUKC/zo8+jN7DJ pzQClxVD5Bh/P7aKuH2mdvFNnfuEKRRKyOJQhLqIuY5PS79KQVK6gz4hCxucH7DODmG5 7NtaKATcngVIR3z4B+MFqogrtZ1p2LQ3AZ2vmXl0HnY/roZjpXz2dEvt6bjD6VNfflhs aMorZA0layQ+8PbgDJQPDcqPUED3f9ZrUso1SWa2eOiM2Fygu43guc6/uqfu4n0lWInT CtnFdnhDrOmRz8t3D62+dHnot5sKHrIIb+KY/Nwn7OaW3G2+5FHL37NjyJ6FQphqAbGO jJ4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8RL1OXPIHUpSxA0WTXqCem0nda8LnTgFVNjBgucxuxU=; b=Ul950CuTM8uAjgrhcX4ZSpjlD9uJ36lP3gB0W8z3vweXnSmHYrDcdekXc/DfHxk5Bc PARL0wYGy48TyBEpTAJqD8MNQ5HGm2kICt3zuGzxX/PodgJKAIWvgzJ40XdZhssORawT W+oYD/YXTv0luCom3H72WU4Kt/j3qZ+++EiNPNJW97+pKs6BUGqrIYMAHjYqF7PMY7Jn WugO77imlEfQzam9/rLgBUFrDl46nkCSb9pKf6rNcWKmlQ3XahpydQalttc63ahM57Le OkmtMpISuvkA0tlBo6hiunQBiCVa5YS6St5cU1Wkw85hKbPE5LOGlS/vfk1B52x0M383 nsjg== X-Gm-Message-State: AIkVDXLD9ITB5AZtI1BzZe1jfSNCQMUKSZfIppR+XLVDL4THau9lrazOybBStoJtLqWHAAlqTDpLyonHc2Mljw== X-Received: by 10.31.58.215 with SMTP id h206mr11096839vka.164.1484647994200; Tue, 17 Jan 2017 02:13:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.146.131 with HTTP; Tue, 17 Jan 2017 02:13:13 -0800 (PST) In-Reply-To: References: From: Dave Page Date: Tue, 17 Jan 2017 10:13:13 +0000 Message-ID: Subject: Re: [pgAdmin4][Patch]: RM1840 - cannot create gist index due to enforced ASC, DESC options in generated SQL To: Surinder Kumar Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Hi On Tue, Jan 17, 2017 at 9:52 AM, Surinder Kumar wrote: > Hi > On Tue, Jan 17, 2017 at 3:08 PM, Dave Page wrote: >> >> Hi >> >> On Fri, Jan 13, 2017 at 6:50 AM, Surinder Kumar >> wrote: >> > Hi >> > >> > Please find updated patch following changes: >> > 1) Keep field 'opclass' combo box enabled. >> >> That doesn't seem to be working. > > Is the field 'opclass' is not enabled for you?. No. > Can you please tell in which scenario it doesn't gets enabled? so that I can > fix it. PostgreSQL 9.4, table: CREATE TABLE public.foo ( id text COLLATE pg_catalog."default" NOT NULL, data1 text COLLATE pg_catalog."default", CONSTRAINT foo_pkey1 PRIMARY KEY (id), CONSTRAINT gerp1 UNIQUE (id, data1) ) 1) Right-click, Create index 2) Name: xxxx 3) Access method: gist 4) Add column. Select id (note the opclass field is not enabled) 5) Add column. Select data1 (note the opclass field is not enabled). 6) Click save, and behold the following error in all it's glory :-) ERROR: data type text has no default operator class for access method "gist" HINT: You must specify an operator class for the index or define a default operator class for the data type. -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers