Guillaume Lelarge wrote:
> Hi all,
> 
> During a training course last week, a customer told me he found strange
> that current_user is not available on the documentation's index. I think
> he's right, so I made this little patch thats adds indexterm tags for
> current_database, current_schema and current_user.
> 
> Please apply if you find this interesting.

I figured out where it goes in the docs.  Applied and attached.

-- 
  Bruce Momjian  <[EMAIL PROTECTED]>        http://momjian.us
  EnterpriseDB                             http://postgres.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +
Index: doc/src/sgml/func.sgml
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/func.sgml,v
retrieving revision 1.412
diff -c -c -r1.412 func.sgml
*** doc/src/sgml/func.sgml	27 Nov 2007 18:29:11 -0000	1.412
--- doc/src/sgml/func.sgml	28 Nov 2007 05:12:40 -0000
***************
*** 10722,10727 ****
--- 10722,10739 ----
      <secondary>current</secondary>
     </indexterm>
  
+    <indexterm>
+     <primary>current_database</primary>
+    </indexterm>
+ 
+    <indexterm>
+     <primary>current_schema</primary>
+    </indexterm>
+ 
+    <indexterm>
+     <primary>current_user</primary>
+    </indexterm>
+ 
     <para>
      The <function>session_user</function> is normally the user who initiated
      the current database connection; but superusers can change this setting
---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply via email to