Обсуждение: Typo in '8.5. Date/Time Types' v16

Поиск
Список
Период
Сортировка

Typo in '8.5. Date/Time Types' v16

От
PG Doc comments form
Дата:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/16/datatype-datetime.html
Description:

Hello,

In the interval example outputs, for postgres and postgres_verbose.
It says mons instead of months.

Re: Typo in '8.5. Date/Time Types' v16

От
Tom Lane
Дата:
PG Doc comments form <noreply@postgresql.org> writes:
> In the interval example outputs, for postgres and postgres_verbose.
> It says mons instead of months.

That is in fact the datatype's output format.

regression=# show intervalstyle;
 IntervalStyle 
---------------
 postgres
(1 row)

regression=# select '2 month'::interval;
 interval 
----------
 2 mons
(1 row)

            regards, tom lane