Index: openacs-4/packages/schema-browser/tcl/schema-browser-procs-postgresql.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/schema-browser/tcl/schema-browser-procs-postgresql.tcl,v diff -u -N -r1.5 -r1.6 --- openacs-4/packages/schema-browser/tcl/schema-browser-procs-postgresql.tcl 20 May 2004 13:55:13 -0000 1.5 +++ openacs-4/packages/schema-browser/tcl/schema-browser-procs-postgresql.tcl 28 Jun 2004 05:30:02 -0000 1.6 @@ -302,6 +302,40 @@ return [list [array get references] $complex_foreign_keys] } + +ad_proc -public sb_get_table_size { + {-table_name:required} + {-namespace {public}} + {-block_size {8192}} +} { + Returns the size of the table on disk. This information is only updated + by the commands VACUUM, ANALYZE, and CREATE INDEX. Thus, if you have + been changing your table, run ANALYZE on the table before running this + proc. + + @param table_name The table name + @param namespace The database namespace that contains the table + @param block_size Size of BLCKSZ (in bytes) used by the database + + @return This procedure returns a list with 2 items: +