[PATCH] log_statement docs

Поиск
Список
Период
Сортировка
Искать

[PATCH] log_statement docs

От:
gabrielle <gorthx@gmail.com>
Дата:
Вложения:
Patch amends description of log_statement to include definition of "all" option.

gabrielle

Re: [PATCH] log_statement docs

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
gabrielle  writes:
> Patch amends description of log_statement to include definition of "all" option.

Shouldn't it just say "all means all", if we think that needs to be
explained?

			regards, tom lane

Re: [PATCH] log_statement docs

От:
gabrielle <gorthx@gmail.com>
Дата:
On Wed, Feb 24, 2010 at 7:14 PM, Tom Lane  wrote:
> gabrielle  writes:
>> Patch amends description of log_statement to include definition of "all" option.
>
> Shouldn't it just say "all means all", if we think that needs to be
> explained?

I think it should say something about the "all" option.  I read &
re-read that section trying to figure out what the difference between
"mod" and "all" was, and finally asked on the irc channel.  As it
stands, it essentially says "there are three options to this command,
but we're only going to tell you about two of them." :)

Thanks!
gabrielle

Re: [PATCH] log_statement docs

От:
Bruce Momjian <bruce@momjian.us>
Дата:
gabrielle wrote:
> On Wed, Feb 24, 2010 at 7:14 PM, Tom Lane  wrote:
> > gabrielle  writes:
> >> Patch amends description of log_statement to include definition of "all" option.
> >
> > Shouldn't it just say "all means all", if we think that needs to be
> > explained?
> 
> I think it should say something about the "all" option.  I read &
> re-read that section trying to figure out what the difference between
> "mod" and "all" was, and finally asked on the irc channel.  As it
> stands, it essentially says "there are three options to this command,
> but we're only going to tell you about two of them." :)

Well, if you take a look at utility.c:GetCommandLogLevel() you will see
that ALL includes a lot more commands than just SELECT.

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://enterprisedb.com
  PG East:  http://www.enterprisedb.com/community/nav-pg-east-2010.do
  + If your life is a hard drive, Christ can be your backup. +

Re: [PATCH] log_statement docs

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Bruce Momjian  writes:
> gabrielle wrote:
>> On Wed, Feb 24, 2010 at 7:14 PM, Tom Lane  wrote:
>>> Shouldn't it just say "all means all", if we think that needs to be
>>> explained?
>> 
>> I think it should say something about the "all" option.  I read &
>> re-read that section trying to figure out what the difference between
>> "mod" and "all" was, and finally asked on the irc channel.  As it
>> stands, it essentially says "there are three options to this command,
>> but we're only going to tell you about two of them." :)

> Well, if you take a look at utility.c:GetCommandLogLevel() you will see
> that ALL includes a lot more commands than just SELECT.

Yeah.  My objection was not to documenting ALL, it was to documenting it
with exactly that sentence, which seems both needlessly complicated and
subject to errors of omission.

			regards, tom lane

Re: [PATCH] log_statement docs

От:
Bruce Momjian <bruce@momjian.us>
Дата:
Tom Lane wrote:
> Bruce Momjian  writes:
> > gabrielle wrote:
> >> On Wed, Feb 24, 2010 at 7:14 PM, Tom Lane  wrote:
> >>> Shouldn't it just say "all means all", if we think that needs to be
> >>> explained?
> >> 
> >> I think it should say something about the "all" option.  I read &
> >> re-read that section trying to figure out what the difference between
> >> "mod" and "all" was, and finally asked on the irc channel.  As it
> >> stands, it essentially says "there are three options to this command,
> >> but we're only going to tell you about two of them." :)
> 
> > Well, if you take a look at utility.c:GetCommandLogLevel() you will see
> > that ALL includes a lot more commands than just SELECT.
> 
> Yeah.  My objection was not to documenting ALL, it was to documenting it
> with exactly that sentence, which seems both needlessly complicated and
> subject to errors of omission.

I have applied the following patch with adds "off" and "all statements"
identifiers.  This is probaby the right level of detail for this.

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://enterprisedb.com
  PG East:  http://www.enterprisedb.com/community/nav-pg-east-2010.do
  + If your life is a hard drive, Christ can be your backup. +
Index: doc/src/sgml/config.sgml
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/config.sgml,v
retrieving revision 1.253
diff -c -c -r1.253 config.sgml
*** doc/src/sgml/config.sgml	25 Feb 2010 13:26:15 -0000	1.253
--- doc/src/sgml/config.sgml	25 Feb 2010 19:19:14 -0000
***************
*** 3392,3399 ****
        
         
          Controls which SQL statements are logged. Valid values are
!         none</>, ddl</>, mod</>, and
!         all</>. ddl</> logs all data definition
          statements, such as CREATE</>, ALTER</>, and
          DROP</> statements. mod</> logs all
          ddl</> statements, plus data-modifying statements
--- 3392,3399 ----
        
         
          Controls which SQL statements are logged. Valid values are
!         none</> (off), ddl</>, mod</>, and
!         all</> (all statements). ddl</> logs all data definition
          statements, such as CREATE</>, ALTER</>, and
          DROP</> statements. mod</> logs all
          ddl</> statements, plus data-modifying statements

Re: [PATCH] log_statement docs

От:
gabrielle <gorthx@gmail.com>
Дата:
On Thu, Feb 25, 2010 at 11:20 AM, Bruce Momjian  wrote:
> I have applied the following patch with adds "off" and "all statements"
> identifiers.  This is probaby the right level of detail for this.

Thank you!

gabrielle
FAQ