diff options
author | Dean Rasheed <dean.a.rasheed@gmail.com> | 2016-02-20 09:57:27 +0000 |
---|---|---|
committer | Dean Rasheed <dean.a.rasheed@gmail.com> | 2016-02-20 09:57:27 +0000 |
commit | 53874c5228fe16589a4d01b3e1fab3678e0fd8e3 (patch) | |
tree | 7ca2581b3e8731254b62b31fbb2f95a1301b3ef1 /src/backend/utils/adt/arrayutils.c | |
parent | 091b6055e3e52338850370f17835e833ca66ac55 (diff) | |
download | postgresql-53874c5228fe16589a4d01b3e1fab3678e0fd8e3.tar.gz postgresql-53874c5228fe16589a4d01b3e1fab3678e0fd8e3.zip |
Add pg_size_bytes() to parse human-readable size strings.
This will parse strings in the format produced by pg_size_pretty() and
return sizes in bytes. This allows queries to be written with clauses
like "pg_total_relation_size(oid) > pg_size_bytes('10 GB')".
Author: Pavel Stehule with various improvements by Vitaly Burovoy
Discussion: http://www.postgresql.org/message-id/CAFj8pRD-tGoDKnxdYgECzA4On01_uRqPrwF-8LdkSE-6bDHp0w@mail.gmail.com
Reviewed-by: Vitaly Burovoy, Oleksandr Shulgin, Kyotaro Horiguchi,
Michael Paquier and Robert Haas
Diffstat (limited to 'src/backend/utils/adt/arrayutils.c')
0 files changed, 0 insertions, 0 deletions