Re: Unlinked files in PGDATA/base following unclean shutdown

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Jack Orenstein <jack(dot)orenstein(at)hds(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Unlinked files in PGDATA/base following unclean shutdown
Date: 2008-08-11 20:44:34
Message-ID: 20080811204434.GD8416@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jack Orenstein wrote:
> Tom Lane wrote:

>> All segments before the last one should be exactly 1GB, but the last
>> one can be anything up to that. Consult the comments in md.c for
>> more details. (I think 7.4 may treat some corner cases differently
>> from 8.3 anyway.)
>
> Just to be clear, you mean 2**30 (1,073,741,824) bytes, not 10**9?

It's RELSEG_SIZE * BLCKSZ, where

#define RELSEG_SIZE 131072
#define BLCKSZ 8192

(both from pg_config.h)

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christophe 2008-08-11 23:24:17 Running a PL/pgSQL function
Previous Message Rob Richardson 2008-08-11 20:01:57 Can I search for text in a function?