Re: While only running pg_dump, postgresql performs writes inside base/ directory. How can we stop this?

From: Spiros Ioannou <sivann(at)inaccess(dot)com>
To: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: While only running pg_dump, postgresql performs writes inside base/ directory. How can we stop this?
Date: 2013-12-10 08:43:30
Message-ID: CACKh8C_-pupRG4OkmVMM84-qmE0d3OTNnpAM9tgr8oxx1JeChA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Jeff,
autovacuum is off on the DB running on the filesystem snapshot.
What "hint bits" do you suppose it is setting? It's running only one COPY
command for days. Do you have any suggestions to make it more "read only" ?

On 2 December 2013 18:14, Jeff Janes <jeff(dot)janes(at)gmail(dot)com> wrote:

> On Mon, Dec 2, 2013 at 6:22 AM, Spiros Ioannou <sivann(at)inaccess(dot)com>wrote:
>
>> We are dumping a 4TB postgres database using pg_dump. The source is on a
>> copy-on-write snapshot filesystem, and the target is an external drive.
>>
>> While the pg_dump is running we get about 4-5MB/sec writes on the
>> filesystem where postgresql data is (iostat), and specifically inside the
>> base/ directory.
>>
>> Since the only query running on this DB is the COPY initiated from
>> pg_dump which only reads data, who is writing data to postgres datafiles?
>>
>
> It is probably setting "hint bits" on the tuples it is visiting.
>
>
>>
>> We need to find a way to make postgres stop writing because the source
>> copy-on-write filesystem gets filled up before the dump is finished.
>>
>
> Vacuum the system before taking the snapshot.
>
>>
>> Postgresql version is 8.4, vacuum is not running (autovacuum = off), OS
>> is debian 6.
>>
>
> Since autovacuum is off, what are you doing about vacuuming?
>
> Cheers,
>
> Jeff
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2013-12-10 08:50:10 Re: [pgadmin-support] Lost database
Previous Message Yuriy Rusinov 2013-12-10 07:30:56 Return setof values from C-function