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

Поиск
Список
Период
Сортировка
От Eric Hanson
Тема Re: "name" vs "alias" in datatype table
Дата
Msg-id CACA6kxhTPh8-a2=kKbXfFx38H9bsGht-hWGA730uaBM3BvAE6Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: "name" vs "alias" in datatype table  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-docs
On Wed, Nov 29, 2023 at 10:26 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
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

I like the preferred name being the preferred name and focal point, as most users aren't going to much care about internal type names.  For "int", "decimal" and "char", how about a "shorthand" column?  Wouldn't be too wide.  So:

1. Name
2. Shorthand
3. Internal name
4. Description

And maybe a paragraph at the top explaining that types have multiple names that can be used interchangeably, but users are encouraged to use the standard names for beauty and clarity.

I could also see splitting this into two tables.  First just a) Name, Description.  Second, a paragraph about internal names and such, then b) Name, Shorthand, Internal Name, Description.  That way for quick reference people will just see a simple table that gets 90% of readers what they need.






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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: "name" vs "alias" in datatype table
Следующее
От: "Euler Taveira"
Дата:
Сообщение: Re: An inconsistency in the documentation about full text search