add some text to README
authorCédric Villemain <cedric.villemain.debian@gmail.com>
Sat, 8 Aug 2009 00:22:59 +0000 (02:22 +0200)
committerCédric Villemain <cedric.villemain.debian@gmail.com>
Sat, 8 Aug 2009 00:22:59 +0000 (02:22 +0200)
ChangeLog
README.pgfincore

index eef3606e1e186b65e8c174a13bb50682fe5f38e8..6fa1fa86efcd54fa8f7c03d854950ace4bc22e41 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,3 +5,8 @@
 06/29/2009 Cédric Villemain <cedric.villemain@dalibo.com>
 
   * 0.1.1 - cleaning and fixing
+
+08/08/2009 Cédric Villemain <cedric.villemain@dalibo.com>
+
+ * 0.2 - add support for 8.4
+       - fix mmap error when file is empty
index 2dc9fbc0583c543cd062c28d7806d5956425e4c5..4bd89ec8b65b6315c1fa3bf09a176d3a90e5fa96 100644 (file)
@@ -1,17 +1,23 @@
-v0.1
+Version :
+v0.2
 
-make clean && make && sudo make install
+Install:
+./configure && make clean && make && sudo make install
 
 Create the functions from the sql script (it should be in your contrib directory)
 
+Debug:
+set client_min_messages TO debug;
+
+Use it:
 select relname, 
        pg_size_pretty(size) as size, 
        size/4/1024 as block_disk,
        block_mem, 
-       (block_mem*4*1024*100/size)||' %'  as block_ratio 
+       CASE WHEN size=0 then '0 %' ELSE (block_mem*4*1024*100/size)||' %'  END as block_ratio
 from (select relname, 
-             pgfincore(relname) as block_mem, 
-             pg_relation_size(relname) as size 
+             pgfincore(relname::text) as block_mem, 
+             pg_relation_size(relname::text) as size 
       from pg_stat_user_tables ) s
 order by 3 desc;