From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: eugeny@zhuzhnev.com
Subject: BUG #17866: behavior does not match documentation
Date: Thu, 23 Mar 2023 15:10:08 +0000
Message-ID: <17866-18eb70095b1594e2@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 17866
Logged by: Евгений Жужнев
Email address: eugeny@zhuzhnev.com
PostgreSQL version: 15.2
Operating system: Oracle Linux 9
Description:
sudo -u postgres psql pgc
psql (15.2)
Type "help" for help.
pgc=# SELECT EXTRACT(EPOCH FROM INTERVAL '5 days 3 hours');
extract
---------------
442800.000000
(1 row)
--
But in documentation we can see:
SELECT EXTRACT(EPOCH FROM INTERVAL '5 days 3 hours');
Result: 442800
https://www.postgresql.org/docs/current/functions-datetime.html
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, eugeny@zhuzhnev.com
Subject: Re: BUG #17866: behavior does not match documentation
In-Reply-To: <17866-18eb70095b1594e2@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox