pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tom Puckett <Tom.Puckett@milliman.com>
Cc: pgsql-bugs@postgresql.org <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
Date: Thu, 18 Feb 2016 13:32:58 -0300
Message-ID: <20160218163258.GA949937@alvherre.pgsql> (raw)
In-Reply-To: <DA171538123EEF49B3DF312271D474C2311A522C@WEST-MBX03.milliman.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (3+ messages)

Message-ID: <20160218163258.GA949937@alvherre.pgsql>
Permalink:  ../20160218163258.GA949937@alvherre.pgsql/
Also on:    postgresql.org/message-id/20160218163258.GA949937@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@2ndquadrant.com, Tom.Puckett@milliman.com
  Subject: Re: aparent bug with pgAdmin version 1.22.1 connected to pg 9.5: SQL Pane view of SEQUENCE object
  In-Reply-To: <20160218163258.GA949937@alvherre.pgsql>
  References: <DA171538123EEF49B3DF312271D474C2311A522C@WEST-MBX03.milliman.com> <20160218163258.GA949937@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox