hello!
database "statistics" tab contains value "size of temporary files" in bytes. what if we apply function pg_size_pretty() for it (as it was done for another
value "size")? patch is attached.

--
Dmitriy Olshevskiy

diff --git a/pgadmin/schema/pgDatabase.cpp b/pgadmin/schema/pgDatabase.cpp
index 33c2fe7..a511712 100644
--- a/pgadmin/schema/pgDatabase.cpp
+++ b/pgadmin/schema/pgDatabase.cpp
@@ -327,7 +327,7 @@ void pgDatabase::ShowStatistics(frmMain *form, ctlListView *statistics)
 
 		if (connection()->BackendMinimumVersion(9, 2))
 			sql += wxT(", temp_files AS ") + qtIdent(_("Temporary files")) +
-			       wxT(", temp_bytes AS ") + qtIdent(_("Size of temporary files")) +
+			       wxT(", pg_size_pretty(temp_bytes) AS ") + qtIdent(_("Size of temporary files")) +
 			       wxT(", deadlocks AS ") + qtIdent(_("Deadlocks")) +
 			       wxT(", blk_read_time AS ") + qtIdent(_("Block read time")) +
 			       wxT(", blk_write_time AS ") + qtIdent(_("Block write time"));
-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

Reply via email to