From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simon@2ndquadrant.com <simon@2ndquadrant.com>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Klaus Naumann <kn@mgnet.de>
Cc: markw@osdl.org
Cc: pgsql-patches@postgresql.org
Subject: Re: [HACKERS] Point in Time Recovery
Date: Fri, 13 Aug 2004 22:29:09 -0400
Message-ID: <446.1092450549@sss.pgh.pa.us> (raw)
In-Reply-To: <NOEFLCFHBPDAFHEIPGBOCEHDCCAA.simon@2ndquadrant.com>
References: <NOEFLCFHBPDAFHEIPGBOCEHDCCAA.simon@2ndquadrant.com>
"Simon@2ndquadrant.com" <simon@2ndquadrant.com> writes:
> I would opt to make enabling/disabling archive_command require a postmaster
> restart. That way there would be no capability to take advantage of the
> incentive to turn it on/off.
We're generally not in the habit of making GUC parameters more rigid
than the implementation absolutely requires.
> It would be my intention (in 8.1) to make those available via switches e.g.
> NOT LOGGED options on CREATE INDEX and COPY, to allow users to take
> advantage of the no logging optimization without turning off PITR system
> wide. (Just as this is possible in Oracle and Teradata).
Isn't this in direct conflict with your opinion above? And I cannot say
that I think this one is a good idea. We do not have support for
selective catalog xlogging; if you do something like this then you
*will* have a broken database after recovery, because it will contain
those indexes but with invalid contents.
> I would also aim to make the first Insert Select into an empty table not
> logged (optionally). This is an important optimization for Oracle, teradata
> and DB2 (which uses NOT LOGGED INITIALLY).
This is even worse: not only do you have a broken database, but you have
no way to recover. (At least with an unlogged index you could fix it by
REINDEX.) If you don't care about longevity of the table, then make it
a temp table.
The fact that Oracle does it does not automatically make it a good idea.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, simon@2ndquadrant.com, pgman@candle.pha.pa.us, kn@mgnet.de, markw@osdl.org, pgsql-patches@postgresql.org
Subject: Re: [HACKERS] Point in Time Recovery
In-Reply-To: <446.1092450549@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox