Re: PostgreSQL Cache - Mailing list pgsql-general

From Sam Mason
Subject Re: PostgreSQL Cache
Date
Msg-id 20080930120429.GN7271@frubble.xen.chris-lamb.co.uk
Whole thread Raw
In response to Re: PostgreSQL Cache  (Greg Smith <gsmith@gregsmith.com>)
List pgsql-general
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

pgsql-general by date:

Previous
From: "Jonah H. Harris"
Date:
Subject: Re: Free Cache Memory (Linux) and Postgresql
Next
From: Tom Lane
Date:
Subject: Re: Free Cache Memory (Linux) and Postgresql