Re: Current enums patch
От | Tom Lane |
---|---|
Тема | Re: Current enums patch |
Дата | |
Msg-id | 17323.1175533684@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Current enums patch (Heikki Linnakangas <heikki@enterprisedb.com>) |
Ответы |
Re: Current enums patch
|
Список | pgsql-patches |
Heikki Linnakangas <heikki@enterprisedb.com> writes: > There's a little bug: > postgres=# CREATE TYPE aenum AS ENUM ('a','b','c'); CREATE TYPE > postgres=# CREATE TABLE t (e aenum); CREATE TABLE postgres=# INSERT > INTO t VALUES > ('foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo'); > server closed the connection unexpectedly Hm, I suppose we should apply truncate_identifier rather than letting the strings be blindly truncated (perhaps in mid-character). Should we have it throw the truncation NOTICE, or not? First thought is to do so during CREATE TYPE but not during plain enum_in(). regards, tom lane
В списке pgsql-patches по дате отправления: