]> granicus.if.org Git - postgresql/commitdiff
Adds index entries for session_user and pg_describe_object
authorBruce Momjian <bruce@momjian.us>
Fri, 11 Mar 2011 15:23:59 +0000 (10:23 -0500)
committerBruce Momjian <bruce@momjian.us>
Fri, 11 Mar 2011 15:23:59 +0000 (10:23 -0500)
Removes extraneous closing parenthesis from pg_describe_object
Puts pg_describe_object and has_sequence_privilege in correct
alphabetical position in function listing

Thom Brown

doc/src/sgml/func.sgml

index c392109e6d3d463116d7c52406d36b9b7045a96d..f746ed6e9003978964ea917ae89ace731d42e9a5 100644 (file)
@@ -12508,6 +12508,10 @@ postgres=# SELECT * FROM unnest2(ARRAY[[1,2],[3,4]]);
     <secondary>current</secondary>
    </indexterm>
 
+   <indexterm>
+    <primary>session_user</primary>
+   </indexterm>
+
    <indexterm>
     <primary>user</primary>
     <secondary>current</secondary>
@@ -12767,34 +12771,34 @@ SET search_path TO <replaceable>schema</> <optional>, <replaceable>schema</>, ..
        <entry>does current user have privilege for schema</entry>
       </row>
       <row>
-       <entry><literal><function>has_server_privilege</function>(<parameter>user</parameter>,
-                                  <parameter>server</parameter>,
+       <entry><literal><function>has_sequence_privilege</function>(<parameter>user</parameter>,
+                                  <parameter>sequence</parameter>,
                                   <parameter>privilege</parameter>)</literal>
        </entry>
        <entry><type>boolean</type></entry>
-       <entry>does user have privilege for foreign server</entry>
+       <entry>does user have privilege for sequence</entry>
       </row>
       <row>
-       <entry><literal><function>has_server_privilege</function>(<parameter>server</parameter>,
+       <entry><literal><function>has_sequence_privilege</function>(<parameter>sequence</parameter>,
                                   <parameter>privilege</parameter>)</literal>
        </entry>
        <entry><type>boolean</type></entry>
-       <entry>does current user have privilege for foreign server</entry>
+       <entry>does current user have privilege for sequence</entry>
       </row>
       <row>
-       <entry><literal><function>has_sequence_privilege</function>(<parameter>user</parameter>,
-                                  <parameter>sequence</parameter>,
+       <entry><literal><function>has_server_privilege</function>(<parameter>user</parameter>,
+                                  <parameter>server</parameter>,
                                   <parameter>privilege</parameter>)</literal>
        </entry>
        <entry><type>boolean</type></entry>
-       <entry>does user have privilege for sequence</entry>
+       <entry>does user have privilege for foreign server</entry>
       </row>
       <row>
-       <entry><literal><function>has_sequence_privilege</function>(<parameter>sequence</parameter>,
+       <entry><literal><function>has_server_privilege</function>(<parameter>server</parameter>,
                                   <parameter>privilege</parameter>)</literal>
        </entry>
        <entry><type>boolean</type></entry>
-       <entry>does current user have privilege for sequence</entry>
+       <entry>does current user have privilege for foreign server</entry>
       </row>
       <row>
        <entry><literal><function>has_table_privilege</function>(<parameter>user</parameter>,
@@ -13198,6 +13202,10 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
     <primary>format_type</primary>
    </indexterm>
 
+   <indexterm>
+    <primary>pg_describe_object</primary>
+   </indexterm>
+
    <indexterm>
     <primary>pg_get_constraintdef</primary>
    </indexterm>
@@ -13280,6 +13288,11 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
        <entry><type>text</type></entry>
        <entry>get SQL name of a data type</entry>
       </row>
+      <row>
+       <entry><literal><function>pg_describe_object(<parameter>catalog_id</parameter>, <parameter>object_id</parameter>, <parameter>object_sub_id</parameter>)</function></literal></entry>
+       <entry><type>text</type></entry>
+       <entry>get description of a database object</entry>
+      </row>
       <row>
        <entry><literal><function>pg_get_constraintdef(<parameter>constraint_oid</parameter>)</function></literal></entry>
        <entry><type>text</type></entry>
@@ -13400,11 +13413,6 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
        <entry><type>setof oid</type></entry>
        <entry>get the set of database OIDs that have objects in the tablespace</entry>
       </row>
-      <row>
-       <entry><literal><function>pg_describe_object(<parameter>catalog_id</parameter>, <parameter>object_id</parameter>, <parameter>object_sub_id</parameter>)</function>)</literal></entry>
-       <entry><type>text</type></entry>
-       <entry>get description of a database object</entry>
-      </row>
       <row>
        <entry><literal><function>pg_typeof(<parameter>any</parameter>)</function></literal></entry>
        <entry><type>regtype</type></entry>