pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ron <rjpeace@earthlink.net>
Cc: Tino Wildenhain <tino@wildenhain.de>
Cc: pgsql-performance@postgresql.org
Subject: Re: 15,000 tables
Date: Thu, 01 Dec 2005 13:57:33 -0500
Message-ID: <15739.1133463453@sss.pgh.pa.us> (raw)
In-Reply-To: <6.2.5.6.0.20051201134344.035fed60@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>

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: <15739.1133463453@sss.pgh.pa.us>
Permalink:  ../15739.1133463453@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15739.1133463453@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rjpeace@earthlink.net, tino@wildenhain.de
  Subject: Re: 15,000 tables
  In-Reply-To: <15739.1133463453@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