Re: WAL logging volume and CREATE TABLE

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: WAL logging volume and CREATE TABLE
Date: 2011-08-04 16:07:00
Message-ID: 201108041607.p74G70i13662@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Patch applied.

---------------------------------------------------------------------------

Bruce Momjian wrote:
> 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 <blah>). Operations on
> > which this optimization can be applied include:
> > <simplelist>
> > <item>CREATE INDEX</item>
> > <item>CLUSTER</item>
> > <item>CREATE TABLE AS</item>
> > <item>COPY, when tables that were created or truncated in the same
> > transaction
> > </simplelist>
> >
> > Minimal WAL does not contain enough information to reconstruct the data
> > from a base backup and the WAL logs, so either <literal>archive</> or
> > <literal>hot_standby</> level must be used to enable ...
>
> Good idea --- updated patch attached.
>
> --
> Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
> EnterpriseDB http://enterprisedb.com
>
> + It's impossible for everything to be true. +

>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2011-08-04 16:26:02 Re: psql: display of object comments
Previous Message Merlin Moncure 2011-08-04 15:33:07 Re: Postgres / plpgsql equivalent to python's getattr() ?