Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aWRY3-0007dZ-Ey for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Feb 2016 16:35:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aWRY2-0007Mb-TO for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Feb 2016 16:35:22 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aWRVt-0007Fd-4Y for pgsql-bugs@postgresql.org; Thu, 18 Feb 2016 16:33:09 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aWRVq-0001Wf-4i for pgsql-bugs@postgresql.org; Thu, 18 Feb 2016 16:33:07 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [200.83.202.40]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 1D16B400E2A; Thu, 18 Feb 2016 08:33:01 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id F14F9584; Thu, 18 Feb 2016 17:32:58 +0100 (CET) Date: Thu, 18 Feb 2016 13:32:58 -0300 From: Alvaro Herrera To: Tom Puckett Cc: "pgsql-bugs@postgresql.org" Subject: Re: aparent bug with pgAdmin version 1.22.1 connected to pg 9.5: SQL Pane view of SEQUENCE object Message-ID: <20160218163258.GA949937@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Tom Puckett wrote: > A sequence object was created successfully when I created a table with a column of type SEQUENCE. However, in the SQL pane, I see the below code, which has an ALTER TABLE statement for the assignment of ownership. The sequence object can be recreated (manually) only if I edit this statement to become ALTER SEQUENCE, so I'm convinced that this is a defect somewhere. > > -- Sequence: public.patient_patient_dbid_seq > > -- DROP SEQUENCE public.patient_patient_dbid_seq; > > CREATE SEQUENCE public.patient_patient_dbid_seq > INCREMENT 1 > MINVALUE 1 > MAXVALUE 9223372036854775807 > START 1 > CACHE 1; > ALTER TABLE public.patient_patient_dbid_seq > OWNER TO wohcdrowner; This exact series of commands works fine. Are you sure the command you had to modify wasn't the OWNED BY one, rather than OWNER TO? -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs