Missing date_trunc docs

Started by Eric Howealmost 13 years ago2 messagesdocs
Jump to latest
#1Eric Howe
eric@pieinsky.ca

In table 9-27 of the 9.2 docs:

http://www.postgresql.org/docs/9.2/interactive/functions-datetime.html#FUNCTIONS-DATETIME-TABLE

There is an entry for date_trunc(text, timestamp) but no entry for date_trunc(text, interval). The full docs for date_trunc:

http://www.postgresql.org/docs/9.2/interactive/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC

do mention both the timestamp and interval forms of date_trunc but that's easy to miss if you're just scanning the function lists.

Eric Howe
eric@pieinsky.ca
http://pieinsky.ca/

--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs

#2Bruce Momjian
bruce@momjian.us
In reply to: Eric Howe (#1)
Re: Missing date_trunc docs

On Fri, Jun 7, 2013 at 11:32:14AM -0700, Eric Howe wrote:

In table 9-27 of the 9.2 docs:

http://www.postgresql.org/docs/9.2/interactive/functions-datetime.html#FUNCTIONS-DATETIME-TABLE

There is an entry for date_trunc(text, timestamp) but no entry for date_trunc(text, interval). The full docs for date_trunc:

http://www.postgresql.org/docs/9.2/interactive/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC

do mention both the timestamp and interval forms of date_trunc but that's easy to miss if you're just scanning the function lists.

Thanks for the report. The attached patch has been applied and will
appear in PG 9.4. Sorry for the delay.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ Everyone has their own god. +

Attachments:

date_trunc.difftext/x-diff; charset=us-asciiDownload+14-0