OSDN Git Service

Document pg_options_to_table() (not previously documented)
authorBruce Momjian <bruce@momjian.us>
Sat, 26 Feb 2011 06:55:26 +0000 (01:55 -0500)
committerBruce Momjian <bruce@momjian.us>
Sat, 26 Feb 2011 06:56:49 +0000 (01:56 -0500)
doc/src/sgml/func.sgml

index c363949..edb7795 100644 (file)
@@ -13244,6 +13244,10 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
    </indexterm>
 
    <indexterm>
+    <primary>pg_options_to_table</primary>
+   </indexterm>
+
+   <indexterm>
     <primary>pg_tablespace_databases</primary>
    </indexterm>
 
@@ -13380,6 +13384,11 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
        <entry>get underlying <command>SELECT</command> command for view</entry>
       </row>
       <row>
+       <entry><literal><function>pg_options_to_table(<parameter>reloptions</parameter>)</function></literal></entry>
+       <entry><type>name, option</type></entry>
+       <entry>get the set of option name/value pairs from <structname>pg_class</>.<structfield>reloptions</></entry>
+      </row>
+      <row>
        <entry><literal><function>pg_tablespace_databases(<parameter>tablespace_oid</parameter>)</function></literal></entry>
        <entry><type>setof oid</type></entry>
        <entry>get the set of database OIDs that have objects in the tablespace</entry>
@@ -13475,6 +13484,12 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
   </para>
 
   <para>
+   <function>pg_options_to_table</function> returns the set of option
+   name/value pairs when passed
+   <structname>pg_class</>.<structfield>reloptions</>.
+  </para>
+
+  <para>
    <function>pg_tablespace_databases</function> allows a tablespace to be
    examined. It returns the set of OIDs of databases that have objects stored
    in the tablespace. If this function returns any rows, the tablespace is not