pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sam Mason <sam@samason.me.uk>
To: pgsql-general@postgresql.org
Subject: Re: PostgreSQL Cache
Date: Tue, 30 Sep 2008 13:04:29 +0100
Message-ID: <20080930120429.GN7271@frubble.xen.chris-lamb.co.uk> (raw)
In-Reply-To: <Pine.GSO.4.64.0809291750190.16949@westnet.com>
References: <f88da7150809282143w71c0920avb51f7809eb398ef7@mail.gmail.com>
	<Pine.GSO.4.64.0809290237330.18983@westnet.com>
	<20080929112634.GM7271@frubble.xen.chris-lamb.co.uk>
	<Pine.GSO.4.64.0809291750190.16949@westnet.com>

On Mon, Sep 29, 2008 at 05:53:02PM -0400, Greg Smith wrote:
> On Mon, 29 Sep 2008, Sam Mason wrote:
> > echo 3 | sudo tee /proc/sys/vm/drop_caches
> >As an aside, it would be nicer if there was a more appropriate program 
> >than tee but I've yet to find one.
> 
> What are you trying to accomplish here that tee isn't quite right for?

tee works for how it's being used for here; it's just wired into my
brain for tasks other than writing to files with different privileges.
I ended up with a similar invocation when I was solving a similar
problem a couple of months ago (not sure how I'd not hit it before then)
and kept searching for something more natural.

I've just done a search and using tee here appears to be somewhat
standard, so I guess that answers my question.  Sorry for the noise!


  Sam



view thread (7+ messages)

Message-ID: <20080930120429.GN7271@frubble.xen.chris-lamb.co.uk>
Permalink:  ../20080930120429.GN7271@frubble.xen.chris-lamb.co.uk/
Also on:    postgresql.org/message-id/20080930120429.GN7271@frubble.xen.chris-lamb.co.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: sam@samason.me.uk, pgsql-general@postgresql.org
  Subject: Re: PostgreSQL Cache
  In-Reply-To: <20080930120429.GN7271@frubble.xen.chris-lamb.co.uk>
  References: <f88da7150809282143w71c0920avb51f7809eb398ef7@mail.gmail.com> <Pine.GSO.4.64.0809290237330.18983@westnet.com> <20080929112634.GM7271@frubble.xen.chris-lamb.co.uk> <Pine.GSO.4.64.0809291750190.16949@westnet.com> <20080930120429.GN7271@frubble.xen.chris-lamb.co.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox