[postgis-commits] svn - r3299 - trunk/doc
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Sun Nov 16 17:00:37 PST 2008
Author: robe
Date: 2008-11-16 17:00:37 -0800 (Sun, 16 Nov 2008)
New Revision: 3299
Modified:
trunk/doc/reference_new.xml
Log:
typos
Modified: trunk/doc/reference_new.xml
===================================================================
--- trunk/doc/reference_new.xml 2008-11-17 00:52:56 UTC (rev 3298)
+++ trunk/doc/reference_new.xml 2008-11-17 01:00:37 UTC (rev 3299)
@@ -10608,18 +10608,10 @@
<para><xref linkend="ST_AsEWKT" />, <xref linkend="ST_SetSRID" />, <xref linkend="ST_SRID" /></para>
</refsection>
</refentry>
-
- <varlistentry>
- <term>ST_mem_size(geometry)</term>
- <listitem>
- <para>Returns the amount of space (in bytes) the geometry
- takes.</para>
- </listitem>
- </varlistentry>
- <refentry id="ST_MemSize">
+ <refentry id="ST_Mem_Size">
<refnamediv>
- <refname>ST_MemSize</refname>
+ <refname>ST_Mem_Size</refname>
<refpurpose>Returns the amount of space (in bytes) the geometry takes.</refpurpose>
</refnamediv>
@@ -10627,7 +10619,7 @@
<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
- <funcdef>integer <function>ST_MemSize</function></funcdef>
+ <funcdef>integer <function>ST_Mem_Size</function></funcdef>
<paramdef><type>geometry </type> <parameter>geomA</parameter></paramdef>
</funcprototype>
</funcsynopsis>
@@ -10638,6 +10630,8 @@
<para>Returns the amount of space (in bytes) the geometry takes. </para>
<para>This is a nice compliment to PostgreSQL built in functions pg_size_pretty, pg_relation_size.</para>
+ <note><para>pg_relation_size which gives the full size of a table may return byte size lower than ST_Mem_Size. This is because
+ pg_relation_size does not add toasted table contribution where large geometries are stored.</para></note>
<!-- Optionally mention 3d support -->
@@ -10660,7 +10654,7 @@
<programlisting>
--Return how much byte space Boston takes up in our Mass data set
-SELECT pg_size_pretty(SUM(st_mem_size(the_geom))) as totgeomsum,
+SELECT pg_size_pretty(SUM(ST_Mem_Size(the_geom))) as totgeomsum,
pg_size_pretty(SUM(CASE WHEN town = 'BOSTON' THEN st_mem_size(the_geom) ELSE 0 END)) As bossum,
CAST(SUM(CASE WHEN town = 'BOSTON' THEN st_mem_size(the_geom) ELSE 0 END)*1.00 /
SUM(st_mem_size(the_geom))*100 As numeric(10,2)) As perbos
@@ -10669,6 +10663,12 @@
totgeomsum bossum perbos
---------- ------ ------
1522 kB 30 kB 1.99
+
+
+SELECT ST_Mem_Size(ST_GeomFromText('CIRCULARSTRING(220268 150415,220227 150505,220227 150406)'));
+
+---
+73
</programlisting>
</refsection>
More information about the postgis-commits
mailing list