Re: Converting to identity columns with domains on PK columns - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Converting to identity columns with domains on PK columns
Date
Msg-id 81ddd3d0-bfb0-f52e-318c-622ab8e9fa9b@aklaver.com
Whole thread Raw
In response to Re: Converting to identity columns with domains on PK columns  (PegoraroF10 <marcos@f10.com.br>)
Responses Re: Converting to identity columns with domains on PK columns
List pgsql-general
On 7/5/19 4:38 AM, PegoraroF10 wrote:
> Well, I think it´ll not as easy as you said. That tables has dependencies.
> So, if I try to alter type it gives me ERROR: cannot alter type of a column
> used in a trigger definition. I dropped all Triggers of that table and it
> gives me ERROR: cannot alter type of a column used by a view or rule.
> Then, if I need to drop everything to change that thing I think is better
> just have an empty structure and copy entire database data to it.
> 
> And why do we used domains, because we were Firebird and on that database a
> integer or a domain based on an integer is the same, so we converted to
> Postgres using that way.

That is not what the Firebird docs say:

https://firebirdsql.org/file/documentation/reference_manuals/fblangref25-en/html/fblangref25-datatypes-custom.html

https://firebirdsql.org/file/documentation/reference_manuals/fblangref25-en/html/fblangref25-ddl-domn.html

https://firebirdsql.org/file/documentation/release_notes/html/en/3_0/rnfb30-ddl-enhance.html

> 
> Thanks
> 
> 
> 
> --
> Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Active connections are terminated because of small wal_sender_timeout
Next
From: Michael Lewis
Date:
Subject: Re: PostgreSQL upgrade from 9.4.2 to 9.6.12