------------------------------------------<br>
Number of rows in the table: <br>
     SELECT count(*) FROM <table_name>;<br>
<br>
------------------------------------------<br>
Size of files on disk - Method 1:<br>
  - SELECT relpages * 8192 AS size_in_bytes FROM pg_class WHERE
relnamespace = (SELECT oid FROM pg_namespace WHERE nspname =
'<schema_name>') AND relname = '<table_name>'<br>
  - Note: This value is only updated by the commands VACUUM, ANALYZE, and CREATE INDEX.<br>
<br>
------------------------------------------<br>
Size of files on disk - Method 2:<br>
  - Run this command to find the file node number for a particular table:<br>
       SELECT relfilenode FROM pg_class
WHERE relnamespace = (SELECT oid FROM pg_namespace WHERE nspname =
'<schema_name>') AND relname = '<table_name>'<br>
  - Then run ls -l <your postgres data directory>/base/<file node number><br>
       Example: ls -l /usr/local/pgsql/data/base/17384<br><br>
<br>
<br>
Aaron<br>
<br><div><span class="gmail_quote">On 2/14/06, <b class="gmail_sendername">Ezequias Rodrigues da Rocha</b> <<a href="mailto:ezequias@recife.pe.gov.br">ezequias@recife.pe.gov.br</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi list,<br><br>I would like to know how to get the size of a postgis table ? I did a<br>upload of a shapefile into postgis but I am not certain of the size of it.<br><br>I am worried becouse I need about 10 minutes to load a 6mb shapefile on
<br>a WFS service.<br><br><br><br>Sincerely...<br><br>--<br>Ezequias Rodrigues da Rocha<br><a href="http://ezequiasrocha.blogspot.com">http://ezequiasrocha.blogspot.com</a><br><a href="mailto:msn:ezequias@hotmail.com">msn:ezequias@hotmail.com
</a><br>"the worst of democracies is still better than the best of dictatorship"<br><br>_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net">
postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></blockquote></div><br><br clear="all">
<br>-- <br>+--------------------------------------------<br>|  Aaron Koning<br>|  Information Technologist<br>|  Prince George, BC, Canada.<br>+--------------------------------------------<br>|  <a href="http://datashare.gis.unbc.ca/fist/">
http://datashare.gis.unbc.ca/fist/</a><br>|  <a href="http://datashare.gis.unbc.ca/gctp-js/">http://datashare.gis.unbc.ca/gctp-js/</a><br>+--------------------------------------------