From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Josh Berkus <josh(at)agliodbs(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: No, pg_size_pretty(numeric) was not such a hot idea |
Date: | 2012-10-12 19:17:59 |
Message-ID: | CA+TgmoZJ0isk7nbwWfXVKekvLjDV3t-6Eb48rY2OcdF6=Y1_nA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Oct 10, 2012 at 2:49 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> So, here's a complaint: 9.2 is breaking our code for checking table sizes:
>
> postgres=# select pg_size_pretty(100);
> ERROR: function pg_size_pretty(integer) is not unique at character 8
You know, if we implemented what Tom proposed here:
http://archives.postgresql.org/pgsql-hackers/2012-08/msg01055.php
...then we probably get away with removing pg_size_pretty(bigint) and
then this would Just Work. pg_size_pretty(numeric) is doubtless a
little slower than pg_size_pretty(bigint), but I think in practice
nobody's going to care.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2012-10-12 19:18:41 | Re: Deprecating RULES |
Previous Message | Stephen Frost | 2012-10-12 19:17:28 | Re: Truncate if exists |