Re: pg_stat_statements temporary file

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_stat_statements temporary file
Date: 2012-05-28 11:14:52
Message-ID: 201205281314.53013.andres@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Friday, May 25, 2012 05:19:28 PM Tom Lane wrote:
> Andres Freund <andres(at)2ndquadrant(dot)com> writes:
> > On Friday, May 25, 2012 04:03:49 PM Peter Geoghegan wrote:
> >> Where do you suggest the file be written to?
> >
> > One could argue stats_temp_directory would be the correct place.
>
> No, that would be exactly the *wrong* place, because that directory can
> be on a RAM disk. We need to put this somewhere where it'll survive
> a shutdown.
I had assumed it would do the writeout regularly to survive a database crash.
As it does not do that my argument is clearly bogus, sorry for that.

Andres
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Florian Pflug 2012-05-28 11:16:57 Re: [RFC] Interface of Row Level Security
Previous Message Greg Sabino Mullane 2012-05-28 11:09:51 Re: Backends stalled in 'startup' state: index corruption