Re: Converting to identity columns with domains on PK columns

From: PegoraroF10 <marcos(at)f10(dot)com(dot)br>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Converting to identity columns with domains on PK columns
Date: 2019-07-05 11:38:54
Message-ID: 1562326734199-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

Thanks

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter J. Holzer 2019-07-05 11:50:01 Re: Why does jsonb_set() remove non-mentioned keys?
Previous Message Steve Rogerson 2019-07-05 11:18:56 Re: postgres 11 issue?