Re: Again, sorry, caching. - Mailing list pgsql-hackers

From mlw
Subject Re: Again, sorry, caching.
Date
Msg-id 3C95F67C.9AC1772@mohawksoft.com
Whole thread Raw
In response to Again, sorry, caching.  (mlw <markw@mohawksoft.com>)
Responses Re: Again, sorry, caching.  (Greg Copeland <greg@CopelandConsulting.Net>)
List pgsql-hackers
"Mattew T. O'Connor" wrote:
> 
> > My big problem with putting the cache outside of the database is that it is
> > now incumbent on the applications programmer to write a cache. A database
> > should manage the data, the application should handle how the data is
> > presented. Forcing the application to implement a cache feels wrong.
> 
> I believe someone suggested a possible solution that was in the pg client
> using NOTICE and triggers.  The argument given against it, was that
> it would not be ACID compliant.  I say, who cares.  I would think that the
> "select cachable" would only be allowed for simple selects, it would not be
> used for select for update or anything else.  Anytime you are given the
> result of a simple select, you are not guaranteed that the data won't change
> underneath you.  

Not true, if you begin a transaction, you can be isolated of changes made to
the database.

>The primary use that you have suggested is for web sites,
> and they certainly won't mind of the cache is 0.3seconds out of date.

Again, if they don't care about accuracy, then they will use MySQL. PostgreSQL
is a far better system. Making PostgreSQL less accurate, less "correct" takes
away, IMHO, the very reasons to use it.


pgsql-hackers by date:

Previous
From: mlw
Date:
Subject: Re: Again, sorry, caching.
Next
From: Tom Lane
Date:
Subject: Re: postgres is not using tas