Re: smallserial / serial2

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: smallserial / serial2
Дата
Msg-id BANLkTimqxuc59ExOEnj9gTjk=kbaj0ZnpA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: smallserial / serial2  ("Mike Pultz" <mike@mikepultz.com>)
Список pgsql-hackers
On Thu, Apr 21, 2011 at 11:06 AM, Mike Pultz <mike@mikepultz.com> wrote:
> And since serial4 and serial8 are simply pseudo-types- effectively there for
> convenience, I’d argue that it should simply be there for completeness- just
> because it may be less used, doesn’t mean it shouldn’t be convenient?

Right now, smallint is a bit like an unwanted stepchild in the
PostgreSQL type system.  In addition to the problem you hit here,
there are various situations where using smallint requires casts in
cases where int4 or int8 would not.  Ken Rosensteel even talked about
this being an obstacle to Oracle to PostgreSQL migrations, in his talk
at PG East (see his slides for details).

Generally, I think this is a bad thing.  We should be trying to put
all types on equal footing, rather than artificially privilege some
over others.  Unfortunately, this is easier said than done, but I
don't think that's a reason to give up trying.

So a tentative +1 from me on supporting this.

You might want to review:

http://wiki.postgresql.org/wiki/Submitting_a_Patch

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: make check in contrib
Следующее
От: Robert Haas
Дата:
Сообщение: branching for 9.2devel