Re: Unlinked files in PGDATA/base following unclean shutdown - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Unlinked files in PGDATA/base following unclean shutdown
Date
Msg-id 20080811204434.GD8416@alvh.no-ip.org
Whole thread Raw
In response to Re: Unlinked files in PGDATA/base following unclean shutdown  (Jack Orenstein <jack.orenstein@hds.com>)
List 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

pgsql-general by date:

Previous
From: "Rob Richardson"
Date:
Subject: Can I search for text in a function?
Next
From: Christophe
Date:
Subject: Running a PL/pgSQL function