Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aWErZ-00017v-Bh for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Feb 2016 03:02:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aWErY-0006yu-GF for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Feb 2016 03:02:40 +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) (envelope-from ) id 1aWEqw-0006Cs-04 for pgsql-bugs@postgresql.org; Thu, 18 Feb 2016 03:02:02 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aWEqs-00028x-MZ for pgsql-bugs@postgresql.org; Thu, 18 Feb 2016 03:02:01 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1aWEqq-000561-AJ; Wed, 17 Feb 2016 22:01:56 -0500 Date: Wed, 17 Feb 2016 22:01:56 -0500 From: Bruce Momjian 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: <20160218030156.GC26716@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) 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 On Tue, Feb 16, 2016 at 03:13:59PM +0000, 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. The alter_table manual page says: OWNER This form changes the owner of the table, sequence, view, ^^^^^^^^ materialized view, or foreign table to the specified user. so it does work. You are right that ALTER SEQUENCE would be clearer, though. --------------------------------------------------------------------------- > > > > -- 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 communication is intended solely for the addressee and is confidential. If > you > are not the intended recipient, any disclosure, copying, distribution or any > action taken > or omitted to be taken in reliance on it, is prohibited and may be unlawful. > Unless > indicated to the contrary: it does not constitute professional advice or > opinions upon > which reliance may be made by the addressee or any other party, and it should > be > considered to be a work in progress. > ****************************************************************** > -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Roman grave inscription + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs