Re: "name" vs "alias" in datatype table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "name" vs "alias" in datatype table
Дата
Msg-id 308440.1701275206@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: "name" vs "alias" in datatype table  (Eric Hanson <eric@aquameta.com>)
Ответы Re: "name" vs "alias" in datatype table  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Re: "name" vs "alias" in datatype table  (Eric Hanson <eric@aquameta.com>)
Список pgsql-docs
Eric Hanson <eric@aquameta.com> writes:
> The larger point being, the "name" vs "alias" paradigm presented in this
> table does not accurately represent PostgreSQL, and conveys an inaccurate
> picture of the relationship between type names.  int4 is not an "alias".

I agree that this could be improved, mainly because it's far from
clear what the internal name of each type is (and there's at least
one case where the internal name is not shown at all).

I could see splitting this into three columns:

1. Preferred name (the standard's name, if it's a standard type)

2. Internal name (pg_type.typname), perhaps only if different from #1

3. Other aliases

However, the table is already pretty wide and so adding another
column might create formatting issues.

AFAICS the only candidates for "other aliases" are char, int,
and decimal.  Maybe we could handle those another way than reserving
a table column for them?  We could give them their own table rows,
or relegate them to footnotes.

The "serial" types need a bit more reflection too, since they
aren't truly types at all: there is no matching pg_type entry.
I'm not sure they belong here.

            regards, tom lane



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

Предыдущее
От: "Euler Taveira"
Дата:
Сообщение: Re: Clarification regarding CREATE TABLE LIKE and FOREIGN KEYS
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: "name" vs "alias" in datatype table