Re: WAL logging volume and CREATE TABLE

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: WAL logging volume and CREATE TABLE
Дата
Msg-id
201108031852.p73Iq1h23402@momjian.us
Ответ на
Список
Дерево обсуждения
WAL logging volume and CREATE TABLE Bruce Momjian <bruce@momjian.us>
Re: WAL logging volume and CREATE TABLE Tom Lane <tgl@sss.pgh.pa.us>
Re: WAL logging volume and CREATE TABLE Bruce Momjian <bruce@momjian.us>
Re: WAL logging volume and CREATE TABLE Tom Lane <tgl@sss.pgh.pa.us>
Re: WAL logging volume and CREATE TABLE Robert Haas <robertmhaas@gmail.com>
Re: WAL logging volume and CREATE TABLE Bruce Momjian <bruce@momjian.us>
Re: WAL logging volume and CREATE TABLE Alvaro Herrera <alvherre@commandprompt.com>
Re: WAL logging volume and CREATE TABLE Bruce Momjian <bruce@momjian.us>
Re: WAL logging volume and CREATE TABLE Bruce Momjian <bruce@momjian.us>
Re: WAL logging volume and CREATE TABLE Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WAL logging volume and CREATE TABLE Merlin Moncure <mmoncure@gmail.com>
Re: WAL logging volume and CREATE TABLE Bruce Momjian <bruce@momjian.us>
Alvaro Herrera wrote:
> Excerpts from Bruce Momjian's message of mar ago 02 22:46:55 -0400 2011:
> 
> > I have created a documentation patch to clarify this, and to mention
> > CREATE TABLE AS which also has this optimization.
> 
> It doesn't seem particularly better to me.  How about something like
> 
> In minimal level, WAL-logging of some operations can be safely skipped,
> which can make those operations much faster (see ).  Operations on
> which this optimization can be applied include: 
> 
>  CREATE INDEX
>  CLUSTER
>  CREATE TABLE AS
>  COPY, when tables that were created or truncated in the same
>  transaction
> 
> 
> Minimal WAL does not contain enough information to reconstruct the data
> from a base backup and the WAL logs, so either archive</> or
> hot_standby</> level must be used to enable ...

Good idea --- updated patch attached.

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml
new file mode 100644
index 4fadca9..aac6c3b
*** a/doc/src/sgml/config.sgml
--- b/doc/src/sgml/config.sgml
*************** SET ENABLE_SEQSCAN TO OFF;
*** 1451,1461 ****
          This parameter can only be set at server start.
         
         
!         In minimal</> level, WAL-logging of some bulk operations, like
!         CREATE INDEX</>, CLUSTER</> and COPY</> on
!         a table that was created or truncated in the same transaction can be
!         safely skipped, which can make those operations much faster (see
!         ). But minimal WAL does not contain
          enough information to reconstruct the data from a base backup and the
          WAL logs, so either archive</> or hot_standby</>
          level must be used to enable
--- 1451,1468 ----
          This parameter can only be set at server start.
         
         
!         In minimal</> level, WAL-logging of some bulk
!         operations can be safely skipped, which can make those
!         operations much faster (see ).
!         Operations in which this optimization can be applied include:
!         
!          CREATE INDEX
!          CLUSTER
!          CREATE TABLE AS
!          COPY into tables that were created or truncated in the same
!          transaction
!         
!         But minimal WAL does not contain
          enough information to reconstruct the data from a base backup and the
          WAL logs, so either archive</> or hot_standby</>
          level must be used to enable
В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: mosbench revisited
От: Grzegorz Jaskiewicz
Дата:
FAQ