MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
-Status: OR
+Status: RO
On Thu, 20 Jun 2002, Bruce Momjian wrote:
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
-Status: OR
+Status: RO
On Fri, 21 Jun 2002, Tom Lane wrote:
Date: 22 Jun 2002 18:22:58 -0400
Precedence: bulk
-Status: ORr
+Status: ROr
On Thu, 2002-06-20 at 21:58, Bruce Momjian wrote:
> I was wondering, how does knowing the block is corrupt help MS SQL?
MIME-Version: 1.0
Precedence: bulk
-Status: OR
+Status: RO
On Sat, 2002-06-22 at 19:17, Bruce Momjian wrote:
> J. R. Nield wrote:
http://archives.postgresql.org
- by candle.pha.pa.us (8.11.6/8.10.1) with ESMTP id g5NCbRF28741
-Received: from 08-032.024.popsite.net (08-032.024.popsite.net [66.19.4.32])
- by hades.usol.com (8.11.6/8.11.6) with ESMTP id g5NCbNj02111;
- Sun, 23 Jun 2002 08:37:23 -0400
-Subject: Re: [HACKERS] Index Scans become Seq Scans after VACUUM ANALYSE
- mlw
-Content-Type: text/plain
-Content-Transfer-Encoding: 7bit
-X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6)
-Date: 23 Jun 2002 08:37:53 -0400
-MIME-Version: 1.0
-Status: OR
-
-On Sat, 2002-06-22 at 19:17, Bruce Momjian wrote:
-> J. R. Nield wrote:
-> > One other point:
-> >
-> > Page pre-image logging is fundamentally the same as what Jim Grey's
-> > book[1] would call "careful writes". I don't believe they should be in
-> > the XLOG, because we never need to keep the pre-images after we're sure
-> > the buffer has made it to the disk. Instead, we should have the buffer
-> > IO routines implement ping-pong writes of some kind if we want
-> > protection from partial writes.
->
-> Ping-pong writes to where? We have to fsync, and rather than fsync that
-> area and WAL, we just do WAL. Not sure about a win there.
->
-
-The key question is: do we have some method to ensure that the OS
-doesn't do the writes in parallel?
-
-If the OS will ensure that one of the two block writes of a ping-pong
-completes before the other starts, then we don't need to fsync() at
-all.
-
-The only thing we are protecting against is the possibility of both
-writes being partial. If neither is done, that's fine because WAL will
-protect us. If the first write is partial, we will detect that and use
-the old data from the other, then recover from WAL. If the first is
-complete but the second is partial, then we detect that and use the
-newer block from the first write. If the second is complete but the
-first is partial, we detect that and use the newer block from the second
-write.
-
-So does anyone know a way to prevent parallel writes in one of the
-common unix standards? Do they say anything about this?
-
-It would seem to me that if the same process does both ping-pong writes,
-then there should be a cheap way to enforce a serial order. I could be
-wrong though.
-
-As to where the first block of the ping-pong should go, maybe we could
-reserve a file with nBlocks space for them, and write the information
-about which block was being written to the XLOG for use in recovery.
-There are many other ways to do it.
-
-;jrnield
-
---
-J. R. Nield
-
-
-
-
Received: from academic.cynic.net (academic.cynic.net [63.144.177.3])
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
-Status: OR
+Status: RO
On 23 Jun 2002, J. R. Nield wrote:
Precedence: bulk
-Status: OR
+Status: RO
> This should also allow us to disable completely the ping-pong writes
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
-Status: OR
+Status: RO
On Sun, 23 Jun 2002, Tom Lane wrote:
Date: 23 Jun 2002 13:57:19 -0400
MIME-Version: 1.0
-Status: ORr
+Status: ROr
On Sun, 2002-06-23 at 11:19, Tom Lane wrote:
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
-Status: ORr
+Status: ROr
On 23 Jun 2002, J. R. Nield wrote:
Date: 23 Jun 2002 14:15:17 -0400
MIME-Version: 1.0
-Status: OR
+Status: RO
On Sun, 2002-06-23 at 12:10, Curt Sampson wrote:
>
X-Spam-Status: No, hits=-3.4 required=5.0
tests=IN_REP_TO
version=2.30
-Status: OR
+Status: RO
J. R. Nield wrote:
> So since we have all this buffering designed especially to meet our
X-Spam-Status: No, hits=-3.4 required=5.0
tests=IN_REP_TO
version=2.30
-Status: OR
+Status: RO
Curt Sampson wrote:
> On 23 Jun 2002, J. R. Nield wrote:
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
-Status: OR
+Status: RO
On Sun, 23 Jun 2002, Bruce Momjian wrote:
Date: 23 Jun 2002 21:29:23 -0400
MIME-Version: 1.0
-Status: ORr
+Status: ROr
On Sun, 2002-06-23 at 15:36, Bruce Momjian wrote:
> Yes, I don't see writing to two files vs. one to be any win, especially
X-Spam-Status: No, hits=-3.4 required=5.0
tests=IN_REP_TO
version=2.30
-Status: OR
+Status: RO
J. R. Nield wrote:
> On Sun, 2002-06-23 at 15:36, Bruce Momjian wrote:
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
-Status: OR
+Status: RO
On 23 Jun 2002, J. R. Nield wrote:
X-Spam-Status: No, hits=-5.3 required=5.0
tests=IN_REP_TO,X_NOT_PRESENT
version=2.30
-Status: OR
+Status: RO
> On Sun, 23 Jun 2002, Bruce Momjian wrote:
>> Yes, I don't see writing to two files vs. one to be any win, especially
X-Spam-Status: No, hits=-3.4 required=5.0
tests=IN_REP_TO
version=2.30
-Status: OR
+Status: RO
Tom Lane wrote:
> > On Sun, 23 Jun 2002, Bruce Momjian wrote:
X-Spam-Status: No, hits=-5.3 required=5.0
tests=IN_REP_TO,X_NOT_PRESENT
version=2.30
-Status: OR
+Status: RO
>> The only thing I've been able to think of that seems like it might
Date: 24 Jun 2002 16:49:42 -0400
MIME-Version: 1.0
-Status: ORr
+Status: ROr
On Sun, 2002-06-23 at 23:40, Curt Sampson wrote:
> On 23 Jun 2002, J. R. Nield wrote:
Date: Mon, 24 Jun 2002 17:16:01 -0400
-Status: OR
+Status: RO
> Also, postgreSQL can't recover from any other type of block corruption,
X-Spam-Status: No, hits=-3.4 required=5.0
tests=IN_REP_TO
version=2.30
-Status: OR
+Status: RO
J. R. Nield wrote:
> > This I don't quite understand. Assuming you're using a SCSI drive
Date: Mon, 24 Jun 2002 17:31:56 -0400
-Status: ORr
+Status: ROr
>> Does anyone know what the major barriers to infinite log replay are in
regards, tom lane
-Received: from postgresql.org (postgresql.org [64.49.215.8])
- by candle.pha.pa.us (8.11.6/8.10.1) with ESMTP id g5P1F5F15390
-Received: from localhost.localdomain (postgresql.org [64.49.215.8])
- by localhost (Postfix) with ESMTP
- id B76174768CC; Mon, 24 Jun 2002 20:59:56 -0400 (EDT)
-Received: from postgresql.org (postgresql.org [64.49.215.8])
- by postgresql.org (Postfix) with SMTP
- id 8724C47742E; Mon, 24 Jun 2002 20:17:44 -0400 (EDT)
-Received: from localhost.localdomain (postgresql.org [64.49.215.8])
- by localhost (Postfix) with ESMTP id 4E472476875
-Received: from sss.pgh.pa.us (unknown [192.204.191.242])
- by postgresql.org (Postfix) with ESMTP id CFCC9476A7A
-Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1])
- by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g5OLVu121485;
- Mon, 24 Jun 2002 17:31:56 -0400 (EDT)
-Subject: Re: [HACKERS] Index Scans become Seq Scans after VACUUM ANALYSE
- message dated "Mon, 24 Jun 2002 17:25:14 -0400"
-Date: Mon, 24 Jun 2002 17:31:56 -0400
-Precedence: bulk
-X-Spam-Status: No, hits=-5.3 required=5.0
- tests=IN_REP_TO,X_NOT_PRESENT
- version=2.30
-Status: OR
-
->> Does anyone know what the major barriers to infinite log replay are in
->> PostgreSQL? I'm trying to look for everything that might need to be
->> changed outside xlog.c, but surely this has come up before. Searching
->> the archives hasn't revealed much.
-
-> This has been brought up. Could we just save WAL files and get replay?
-> I believe some things have to be added to WAL to allow this, but it
-> seems possible.
-
-The Red Hat group has been looking at this somewhat; so far there seem
-to be some minor tweaks that would be needed, but no showstoppers.
-
-> Somehow you would need a tar-type
-> backup of the database, and with a running db, it is hard to get a valid
-> snapshot of that.
-
-But you don't *need* a "valid snapshot", only a correct copy of
-every block older than the first checkpoint in your WAL log series.
-Any inconsistencies in your tar dump will look like repairable damage;
-replaying the WAL log will fix 'em.
-
- regards, tom lane
-
-
-
----------------------------(end of broadcast)---------------------------
-
-
-
Received: from postgresql.org (postgresql.org [64.49.215.8])
X-Spam-Status: No, hits=-3.4 required=5.0
tests=IN_REP_TO
version=2.30
-Status: OR
+Status: RO
Tom Lane wrote:
-Received: from postgresql.org (postgresql.org [64.49.215.8])
- by candle.pha.pa.us (8.11.6/8.10.1) with ESMTP id g5P40LF00838
-Received: from localhost.localdomain (postgresql.org [64.49.215.8])
- by localhost (Postfix) with ESMTP
- id CBAE8476E94; Mon, 24 Jun 2002 23:44:51 -0400 (EDT)
-Received: from postgresql.org (postgresql.org [64.49.215.8])
- by postgresql.org (Postfix) with SMTP
- id C5076476871; Mon, 24 Jun 2002 22:25:46 -0400 (EDT)
-Received: from localhost.localdomain (postgresql.org [64.49.215.8])
- by localhost (Postfix) with ESMTP id 8DF57476979
-Received: from hades.usol.com (hades.usol.com [208.232.58.41])
- by postgresql.org (Postfix) with ESMTP id 298D2476101
-Received: from 08-159.024.popsite.net (08-159.024.popsite.net [66.19.4.159])
- by hades.usol.com (8.11.6/8.11.6) with ESMTP id g5P0RbV01261;
- Mon, 24 Jun 2002 20:27:37 -0400
-Subject: Re: [HACKERS] Index Scans become Seq Scans after VACUUM ANALYSE
-Content-Type: text/plain
-Content-Transfer-Encoding: 7bit
-X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6)
-Date: 24 Jun 2002 20:28:00 -0400
-MIME-Version: 1.0
-Precedence: bulk
-X-Spam-Status: No, hits=-3.4 required=5.0
- tests=IN_REP_TO
- version=2.30
-Status: OR
-
-On Mon, 2002-06-24 at 17:16, Tom Lane wrote:
-
-> I think you have been missing the point...
-Yes, this appears to be the case. Thanks especially to Curt for clearing
-things up for me.
-
---
-J. R. Nield
-
-
-
-
-
-
----------------------------(end of broadcast)---------------------------
-TIP 5: Have you checked our extensive FAQ?
-
-http://www.postgresql.org/users-lounge/docs/faq.html
-
-
-
Date: 24 Jun 2002 20:28:00 -0400
MIME-Version: 1.0
-Status: OR
+Status: RO
On Mon, 2002-06-24 at 17:16, Tom Lane wrote:
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
-Status: OR
+Status: RO
On 24 Jun 2002, J. R. Nield wrote:
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
-Status: ORr
+Status: ROr
On Mon, 24 Jun 2002, Tom Lane wrote:
X-Spam-Status: No, hits=-3.4 required=5.0
tests=IN_REP_TO
version=2.30
-Status: OR
+Status: RO
Curt Sampson wrote:
> On Mon, 24 Jun 2002, Tom Lane wrote:
Precedence: bulk
X-Virus-Scanned: by AMaViS new-20020517
-Status: ORr
+Status: ROr
I have been experimenting with empirical tests of file system and device
level writes to determine the actual constraints in order to speed up the WAL
Precedence: bulk
X-Virus-Scanned: by amavisd-new at hub.org
-Status: OR
+Status: RO
> One of the things I was thinking about was whether we could use up those