Re: Change seconds argument of make_*() functions to numeric

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Change seconds argument of make_*() functions to numeric
Date: 2020-12-17 16:54:13
Message-ID: CAFj8pRCLA9nd0WWpUFs1xaMdfGPmq_aOgGf0hwTkxGfo4uKLaw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

čt 17. 12. 2020 v 17:43 odesílatel Peter Eisentraut <
peter(dot)eisentraut(at)enterprisedb(dot)com> napsal:

> Along with the discussed change of the return type of EXTRACT from
> float8 to numeric [0], I was looking around what other date/time APIs
> might be using float arguments or return values. The only thing left
> appears to be the functions make_time, make_timestamp, make_timestamptz,
> and make_interval, which take an argument specifying the seconds, which
> has type float8 right now. I'm proposing the attached patch to change
> that to numeric.
>
> Can we change the arguments, as proposed here, or do we need to add
> separate overloaded versions and leave the existing versions in place?
>

What this change does with views. Can it break upgrade by pg_upgrade?

Regards

Pavel

> [0]:
>
> https://www.postgresql.org/message-id/flat/42b73d2d-da12-ba9f-570a-420e0cce19d9(at)phystech(dot)edu
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2020-12-17 16:55:01 Re: Change seconds argument of make_*() functions to numeric
Previous Message Peter Eisentraut 2020-12-17 16:43:39 Change seconds argument of make_*() functions to numeric