Thread: Some more indexterm
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. Regards. -- Guillaume. http://www.postgresqlfr.org http://dalibo.com Index: doc/src/sgml/func.sgml =================================================================== RCS file: /projects/cvsroot/pgsql/doc/src/sgml/func.sgml,v retrieving revision 1.412 diff -r1.412 func.sgml 10710a10711,10722 > <primary>current_database</primary> > </indexterm> > > <indexterm> > <primary>current_schema</primary> > </indexterm> > > <indexterm> > <primary>current_user</primary> > </indexterm> > > <indexterm>
Please send us a context diff, diff -c. --------------------------------------------------------------------------- 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. > > Regards. > > > -- > Guillaume. > http://www.postgresqlfr.org > http://dalibo.com > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend -- Bruce Momjian <bruce@momjian.us> http://momjian.us EnterpriseDB http://postgres.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +
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 <bruce@momjian.us> 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
Bruce Momjian a écrit : > Please send us a context diff, diff -c. > Sorry, I thought a "cvs diff" was enough. Is there a way to get a context diff with "cvs diff" command ? Regards. -- Guillaume. http://www.postgresqlfr.org http://dalibo.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 28 Nov 2007 08:02:45 +0100 Guillaume Lelarge <guillaume@lelarge.info> wrote: > Bruce Momjian a écrit : > > Please send us a context diff, diff -c. > > > > Sorry, I thought a "cvs diff" was enough. Is there a way to get a > context diff with "cvs diff" command ? cvs diff -c > > Regards. > > - -- === The PostgreSQL Company: Command Prompt, Inc. === Sales/Support: +1.503.667.4564 24x7/Emergency: +1.800.492.2240 PostgreSQL solutions since 1997 http://www.commandprompt.com/ UNIQUE NOT NULL Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate PostgreSQL Replication: http://www.commandprompt.com/products/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHTRNVATb/zqfZUUQRArBMAJ4sfX6x9/dL6lvsoOq90WN7ycM4ZwCdEYOc 0xXOoI/C1ajRqXbDUCXYUjQ= =nV8w -----END PGP SIGNATURE-----
Joshua D. Drake a écrit : > On Wed, 28 Nov 2007 08:02:45 +0100 > Guillaume Lelarge <guillaume@lelarge.info> wrote: > >> Bruce Momjian a écrit : >>> Please send us a context diff, diff -c. >>> >> Sorry, I thought a "cvs diff" was enough. Is there a way to get a >> context diff with "cvs diff" command ? > > cvs diff -c > Thanks, I put this on my .cvsrc and I can now send a new documentation patch. Regards. -- Guillaume. http://www.postgresqlfr.org http://dalibo.com