Re: posix_fadvise() and pg_receivexlog

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: posix_fadvise() and pg_receivexlog
Date: 2014-08-06 18:56:57
Message-ID: CA+TgmoaMamBokCkCLZgsM+3b6eH-9suAGWdHTBM-pwfhdETpzw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Aug 6, 2014 at 1:39 PM, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
> The WAL files that pg_receivexlog writes will not be re-read soon basically,
> so we can advise the OS to release any cached pages when WAL file is
> closed. I feel inclined to change pg_receivexlog that way. Thought?

How do we know that the user doesn't plan to read them soon?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2014-08-06 18:59:31 Re: posix_fadvise() and pg_receivexlog
Previous Message Tomas Vondra 2014-08-06 18:48:53 Re: 9.5: Better memory accounting, towards memory-bounded HashAgg