From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
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: | 2013-01-25 21:16:52 |
Message-ID: | 20130125211652.GS6848@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Oct 10, 2012 at 11:49:50AM -0700, Josh Berkus wrote:
>
> >> Assuming that's how 9.2 ships, we might as well wait to see if there
> >> are any real complaints from the field before we decide whether any
> >> changing is needed.
>
> 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
> HINT: Could not choose a best candidate function. You might need to add
> explicit type casts.
> STATEMENT: select pg_size_pretty(100);
> ERROR: function pg_size_pretty(integer) is not unique
> LINE 1: select pg_size_pretty(100);
> ^
> HINT: Could not choose a best candidate function. You might need to add
> explicit type casts.
>
> Obviously, we can work around it though. Let's see if anyone else
> complains ...
Where are we on this? I still see this behavior:
test=> SELECT pg_size_pretty(100);
ERROR: function pg_size_pretty(integer) is not unique
LINE 1: SELECT pg_size_pretty(100);
^
HINT: Could not choose a best candidate function. You might need to add explicit type casts.
\df shows:
test=> \df pg_size_pretty
List of functions
Schema | Name | Result data type | Argument data types | Type
------------+----------------+------------------+---------------------+--------
pg_catalog | pg_size_pretty | text | bigint | normal
pg_catalog | pg_size_pretty | text | numeric | normal
(2 rows)
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2013-01-25 21:23:21 | Re: pg_retainxlog for inclusion in 9.3? |
Previous Message | Bruce Momjian | 2013-01-25 21:12:51 | Re: Add the FET timetone abbreviation |