Re: Failure to coerce unknown type to specific type
От | Robert Haas |
---|---|
Тема | Re: Failure to coerce unknown type to specific type |
Дата | |
Msg-id | CA+TgmobymzvoNZLwk-m_b3XTL8JQowyjLJyM8JkCyjhj5CrcvA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Failure to coerce unknown type to specific type (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-bugs |
On Wed, Apr 29, 2015 at 6:37 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote: >>> We should, in fact, fail that to begin with. Unknown-type columns are >>> a spectactularly horrid idea. > >> I agree. So why don't we throw an error when someone tries to create one? > > We should IMO, but there's been push-back about backwards compatibility > when this has been proposed in the past. I do think that there are probably people who have got cruft lying around in their database where they've accidentally created views or tables with unknown-type columns. They are unlikely to be actually used, but they may exist. If we want to ease the backward-compatibility pain, maybe we could map unknown -> text, so that the upgrade still works but changes the column type under the hood. Or we can just break it. But we should do something. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-bugs по дате отправления: