From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tsirkin Evgeny <tsurkin@mail.jct.ac.il>
Cc: Michael Fuhr <mike@fuhr.org>
Cc: Tsirkin Evgeny <tsurkin@jct.ac.il>
Cc: pgsql-admin@postgresql.org
Subject: Re: caching table/query
Date: Sun, 17 Jul 2005 11:53:27 -0400
Message-ID: <28088.1121615607@sss.pgh.pa.us> (raw)
In-Reply-To: <42DA7226.5070808@mail.jct.ac.il>
References: <42DA3A4C.3080009@mail.jct.ac.il>
<20050717140655.GA9637@winnie.fuhr.org>
<42DA7226.5070808@mail.jct.ac.il>
Tsirkin Evgeny <tsurkin@mail.jct.ac.il> writes:
> What i realy want is to say to postgres that the particular
> table should be cached .
Adopting the position that you are smarter than an automatic
optimization algorithm is generally a good way to achieve less
performance, not more. Especially so if you are willing to override
the automatic algorithm on the strength of guesses that you make
when you haven't even seen the system in operation yet. The truth
of the matter is that you haven't got the foggiest idea yet where
the system bottlenecks will be, and so you should certainly not be
thinking about how to override the cache manager.
If you've not heard the phrase "premature optimization is the root of
all evil", I suggest you read up on it. It's generally good advice.
regards, tom lane
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: tgl@sss.pgh.pa.us, tsurkin@mail.jct.ac.il, mike@fuhr.org, tsurkin@jct.ac.il
Subject: Re: caching table/query
In-Reply-To: <28088.1121615607@sss.pgh.pa.us>
References: <42DA3A4C.3080009@mail.jct.ac.il> <20050717140655.GA9637@winnie.fuhr.org> <42DA7226.5070808@mail.jct.ac.il> <28088.1121615607@sss.pgh.pa.us>
* 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