pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <rjpeace@earthlink.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-performance@postgresql.org
Subject: Re: 15,000 tables
Date: Fri, 02 Dec 2005 03:15:00 -0500
Message-ID: <6.2.5.6.0.20051202030859.0360c1a8@earthlink.net> (raw)
In-Reply-To: <15739.1133463453@sss.pgh.pa.us>
References: <dmmujf$2rgd$1@news.hub.org>
	<Pine.LNX.4.62.0512010609060.2807@qnivq.ynat.uz>
	<dmn2lh$maj$1@news.hub.org>
	<9A858930-1CA6-4238-92D4-D1E945683653@ehpg.net>
	<1133462407.5734.43.camel@Andrea.peacock.de>
	<6.2.5.6.0.20051201134344.035fed60@earthlink.net>
	<15739.1133463453@sss.pgh.pa.us>

Agreed, and I apologize for the imprecision of my post below.

I should have written:
"Best practice seems to be to use a journaling fs and log metadata 
only and put it on separate dedicated spindles."

I've seen enough HD failures that I tend to be paranoid and log the 
metadata of fs dedicated to WAL as well, but that may very well be overkill.

Ron

At 01:57 PM 12/1/2005, Tom Lane wrote:
>Ron <rjpeace@earthlink.net> writes:
> > Agreed.  Also the odds of fs corruption or data loss are higher in a
> > non journaling fs.  Best practice seems to be to use a journaling fs
> > but to put the fs log on dedicated spindles separate from the actual
> > fs or pg_xlog.
>
>I think we've determined that best practice is to journal metadata only
>(not file contents) on PG data filesystems.  PG does expect the filesystem
>to remember where the files are, so you need metadata protection, but
>journalling file content updates is redundant with PG's own WAL logging.
>
>On a filesystem dedicated to WAL, you probably do not need any
>filesystem journalling at all --- we manage the WAL files in a way
>that avoids changing metadata for a WAL file that's in active use.
>A conservative approach would be to journal metadata here too, though.
>
>                         regards, tom lane






view thread (32+ messages)  latest in thread

Message-ID: <6.2.5.6.0.20051202030859.0360c1a8@earthlink.net>
Permalink:  ../6.2.5.6.0.20051202030859.0360c1a8@earthlink.net/
Also on:    postgresql.org/message-id/6.2.5.6.0.20051202030859.0360c1a8@earthlink.net

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: rjpeace@earthlink.net, tgl@sss.pgh.pa.us
  Subject: Re: 15,000 tables
  In-Reply-To: <6.2.5.6.0.20051202030859.0360c1a8@earthlink.net>
  References: <dmmujf$2rgd$1@news.hub.org> <Pine.LNX.4.62.0512010609060.2807@qnivq.ynat.uz> <dmn2lh$maj$1@news.hub.org> <9A858930-1CA6-4238-92D4-D1E945683653@ehpg.net> <1133462407.5734.43.camel@Andrea.peacock.de> <6.2.5.6.0.20051201134344.035fed60@earthlink.net> <15739.1133463453@sss.pgh.pa.us> <6.2.5.6.0.20051202030859.0360c1a8@earthlink.net>

* 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