New pg_dump patch -- document statistics collector exception

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

New pg_dump patch -- document statistics collector exception

От:
Bryce Nesbitt <bryce2@obviously.com>
Дата:
This is a proposed patch to document disabling the statistics collector 
pg_dump activity, and give a bit more visibility to the PGOPTIONS 
environment variable supported by libpq.

It is an alternative to the prior patch, which supplied a --no-stats flag.

This is a documentation only patch, not tied to a recent code change.
? HTML.index
? test.man
Index: ref/pg_dump.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql/doc/src/sgml/ref/pg_dump.sgml,v
retrieving revision 1.106
diff -c -2 -r1.106 pg_dump.sgml
*** ref/pg_dump.sgml	5 Jan 2009 16:54:36 -0000	1.106
--- ref/pg_dump.sgml	21 Jan 2009 01:15:41 -0000
***************
*** 727,733 ****
      PGDATABASE
      PGHOST
      PGPORT
-     PGUSER
  
      
       
--- 727,734 ----
      PGDATABASE
      PGHOST
+     PGOPTIONS
      PGPORT
  
+     PGUSER
      
       
***************
*** 735,738 ****
--- 736,740 ----
       
      
+ 
     
    
***************
*** 758,761 ****
--- 760,770 ----
     library will apply.
    
+   
+    The database activity of pg_dump is normally collected by the statistics collector.
+    If this is undesirable, you can set parameters stats_block_level and stats_row_level to false
+    via the libpq</> PGOPTIONS environment varriable, or via ALTER USER.
+   
+ 
+ 
   
  
Index: ref/pg_dumpall.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v
retrieving revision 1.74
diff -c -2 -r1.74 pg_dumpall.sgml
*** ref/pg_dumpall.sgml	5 Jan 2009 16:54:36 -0000	1.74
--- ref/pg_dumpall.sgml	21 Jan 2009 01:15:41 -0000
***************
*** 446,449 ****
--- 446,450 ----
     
      PGHOST
+     PGOPTIONS
      PGPORT
      PGUSER
Index: ref/pg_restore.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql/doc/src/sgml/ref/pg_restore.sgml,v
retrieving revision 1.77
diff -c -2 -r1.77 pg_restore.sgml
*** ref/pg_restore.sgml	5 Jan 2009 16:54:36 -0000	1.77
--- ref/pg_restore.sgml	21 Jan 2009 01:15:41 -0000
***************
*** 538,541 ****
--- 538,542 ----
     
      PGHOST
+     PGOPTIONS
      PGPORT
      PGUSER

Re: New pg_dump patch -- document statistics collector exception

От:
Robert Treat <xzilla@users.sourceforge.net>
Дата:
On Tuesday 20 January 2009 20:22:10 Bryce Nesbitt wrote:
> This is a proposed patch to document disabling the statistics collector
> pg_dump activity, and give a bit more visibility to the PGOPTIONS
> environment variable supported by libpq.
>
> It is an alternative to the prior patch, which supplied a --no-stats flag.
>
> This is a documentation only patch, not tied to a recent code change.

s/varriable/variable/g

also, I forget which way is proper, but you're inconsistent with your closing 
tags for  in that paragraph (using both )  

-- 
Robert Treat
Conjecture: http://www.xzilla.net
Consulting: http://www.omniti.com

Re: New pg_dump patch -- document statistics collector exception

От:
Alvaro Herrera <alvherre@commandprompt.com>
Дата:
Robert Treat wrote:

> also, I forget which way is proper, but you're inconsistent with your closing 
> tags for  in that paragraph (using both )  

They're both acceptable.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

Re: New pg_dump patch -- document statistics collector exception (REVISED PATCH)

От:
Bryce Nesbitt <bryce2@obviously.com>
Дата:
Here's a revision (thanks Robert Treat for the spelling corrextion).
If there are no other objections, how do I nominate it for consideration?
                  -Bryce

Index: pg_dump.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql/doc/src/sgml/ref/pg_dump.sgml,v
retrieving revision 1.106
diff -c -2 -r1.106 pg_dump.sgml
*** pg_dump.sgml	5 Jan 2009 16:54:36 -0000	1.106
--- pg_dump.sgml	23 Jan 2009 20:57:36 -0000
***************
*** 727,733 ****
      PGDATABASE
      PGHOST
      PGPORT
-     PGUSER
  
      
       
--- 727,734 ----
      PGDATABASE
      PGHOST
+     PGOPTIONS
      PGPORT
  
+     PGUSER
      
       
***************
*** 735,738 ****
--- 736,740 ----
       
      
+ 
     
    
***************
*** 758,761 ****
--- 760,772 ----
     library will apply.
    
+   
+    The database activity of pg_dump is normally collected by the
+    statistics collector.  If this is undesirable, you can set parameters
+    stats_block_level and stats_row_level to false
+    via the libpq PGOPTIONS environment variable,
+    or via ALTER USER.
+   
+ 
+ 
   
  
Index: pg_dumpall.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v
retrieving revision 1.74
diff -c -2 -r1.74 pg_dumpall.sgml
*** pg_dumpall.sgml	5 Jan 2009 16:54:36 -0000	1.74
--- pg_dumpall.sgml	23 Jan 2009 20:57:36 -0000
***************
*** 446,449 ****
--- 446,450 ----
     
      PGHOST
+     PGOPTIONS
      PGPORT
      PGUSER
Index: pg_restore.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql/doc/src/sgml/ref/pg_restore.sgml,v
retrieving revision 1.77
diff -c -2 -r1.77 pg_restore.sgml
*** pg_restore.sgml	5 Jan 2009 16:54:36 -0000	1.77
--- pg_restore.sgml	23 Jan 2009 20:57:36 -0000
***************
*** 538,541 ****
--- 538,542 ----
     
      PGHOST
+     PGOPTIONS
      PGPORT
      PGUSER

Re: New pg_dump patch -- document statistics collector exception (REVISED PATCH)

От:
Josh Berkus <josh@agliodbs.com>
Дата:
Bryce Nesbitt wrote:
> Here's a revision (thanks Robert Treat for the spelling corrextion).
> If there are no other objections, how do I nominate it for consideration?
>                  -Bryce

You already have.

Mind you, in the future when you're not continuing a discussion from a 
code patch, you should submit doc patches to pgsql-docs.  But I'm sure 
Peter has seen it here.

--Josh


Re: New pg_dump patch -- document statistics collector exception (REVISED PATCH)

От:
Euler Taveira de Oliveira <euler@timbira.com>
Дата:
Bryce Nesbitt escreveu:
> Here's a revision (thanks Robert Treat for the spelling corrextion).
> If there are no other objections, how do I nominate it for consideration?
> 
Added to next commit fest [1].

[1] http://wiki.postgresql.org/wiki/CommitFest_2009-First


--  Euler Taveira de Oliveira http://www.timbira.com/

Re: New pg_dump patch -- document statistics collector exception (REVISED PATCH)

От:
Josh Berkus <josh@agliodbs.com>
Дата:
Euler Taveira de Oliveira wrote:
> Bryce Nesbitt escreveu:
>> Here's a revision (thanks Robert Treat for the spelling corrextion).
>> If there are no other objections, how do I nominate it for consideration?
>>
> Added to next commit fest [1].

Um, not necessary.  We're still accepting new doc patches, and will 
until the end of beta.

--Josh


Re: New pg_dump patch -- document statistics collector exception

От:
Bruce Momjian <bruce@momjian.us>
Дата:
Bryce Nesbitt wrote:
> This is a proposed patch to document disabling the statistics collector 
> pg_dump activity, and give a bit more visibility to the PGOPTIONS 
> environment variable supported by libpq.
> 
> It is an alternative to the prior patch, which supplied a --no-stats flag.
> 
> This is a documentation only patch, not tied to a recent code change.

Patch applied, with spelling correction already noted.

--  Bruce Momjian          http://momjian.us EnterpriseDB                             http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +

Re: New pg_dump patch -- document statistics collector exception (REVISED PATCH)

От:
Bruce Momjian <bruce@momjian.us>
Дата:
Josh Berkus wrote:
> Euler Taveira de Oliveira wrote:
> > Bryce Nesbitt escreveu:
> >> Here's a revision (thanks Robert Treat for the spelling corrextion).
> >> If there are no other objections, how do I nominate it for consideration?
> >>
> > Added to next commit fest [1].
> 
> Um, not necessary.  We're still accepting new doc patches, and will 
> until the end of beta.

Yep, patch commited, removed from next commit fest.

--  Bruce Momjian          http://momjian.us EnterpriseDB                             http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +

Re: New pg_dump patch -- document statistics collector exception

От:
Bryce Nesbitt <bryce2@obviously.com>
Дата:
Apologies.  Turns out the name of the relevant setting was changed for 8.3! So a revised patch is attached.

For backing, see:
http://www.postgresql.org/docs/8.3/static/release-8-3.html
" Numerous changes in administrative server parameters...
stats_block_level and stats_row_level are merged into track_counts."


Bruce Momjian wrote:
Bryce Nesbitt wrote: 
This is a proposed patch to document disabling the statistics collector 
pg_dump activity, and give a bit more visibility to the PGOPTIONS 
environment variable supported by libpq.

It is an alternative to the prior patch, which supplied a --no-stats flag.

This is a documentation only patch, not tied to a recent code change.   
Patch applied, with spelling correction already noted. 

Re: New pg_dump patch -- document statistics collector exception

От:
Bruce Momjian <bruce@momjian.us>
Дата:
>    Apologies.  Turns out the name of the relevant setting was changed
> for 8.3! So a revised patch is attached.
>    For backing, see:
>    http://www.postgresql.org/docs/8.3/static/release-8-3.html
>    " Numerous changes in administrative server parameters...
>    stats_block_level and stats_row_level are merged into track_counts."
> Bryce Nesbitt wrote:

We don't want a pg_dump flag;  the doc mention is good enough.

--  Bruce Momjian          http://momjian.us EnterpriseDB                             http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +

Re: New pg_dump patch -- document statistics collector exception

От:
Bryce Nesbitt <bryce2@obviously.com>
Дата:
Bruce Momjian wrote:
   Apologies.  Turns out the name of the relevant setting was changed
for 8.3! So a revised patch is attached.  For backing, see:  http://www.postgresql.org/docs/8.3/static/release-8-3.html  " Numerous changes in administrative server parameters...  stats_block_level and stats_row_level are merged into track_counts."
Bryce Nesbitt wrote:   
We don't want a pg_dump flag;  the doc mention is good enough. 
Doh!  Try this one instead.  Postgres 8.3 changed the name of the flag mentioned in the doc.



Re: New pg_dump patch -- document statistics collector exception

От:
Bruce Momjian <bruce@momjian.us>
Дата:
> We don't want a pg_dump flag;  the doc mention is good enough.
> 
> 
>    Doh!  Try this one instead.  Postgres 8.3 changed the name of the
> flag mentioned in the doc.

[  Please avoid html-only email.]

OK, patch applied, but I removed the mention of pre-8.3 because this is
going only in the 8.4 docs.

Thanks.

--  Bruce Momjian          http://momjian.us EnterpriseDB                             http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +

FAQ