]> granicus.if.org Git - postgresql/commitdiff
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 c363949b7c5f7317e8f6b215387ec1a2844f489f..edb77953cd247832a8b404abd5197688eff94f25 100644 (file)
@@ -13243,6 +13243,10 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
     <primary>pg_get_viewdef</primary>
    </indexterm>
 
+   <indexterm>
+    <primary>pg_options_to_table</primary>
+   </indexterm>
+
    <indexterm>
     <primary>pg_tablespace_databases</primary>
    </indexterm>
@@ -13379,6 +13383,11 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
        <entry><type>text</type></entry>
        <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>
@@ -13474,6 +13483,12 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
    its OID.
   </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