Skip site navigation (1) Skip section navigation (2)

Re: Reduction in WAL for UPDATEs

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Kenneth Marshall" <ktm(at)rice(dot)edu>, <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: Reduction in WAL for UPDATEs
Date: 2007-03-28 15:05:58
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> Yeah, this illustrates my concern that the proposal is too narrowly
> focused on a specific benchmark.

A lot of the recently proposed changes don't really fit in the "optimizations"
category very well at all. I think of them more as "avoiding pitfalls".

Currently Postgres works quite well if your application is designed around its
performance profile. But as soon as you do something "strange" you run the
risk of running into various pitfalls.

If you keep a long-running transaction open you suddenly find your tables
bloating. If your table grows too large vacuum takes too long to complete and
your tables bloat. If you update the same record many times instead of
batching updates and performing a single update your table bloats. 

This one is similar, if you keep a bunch of static data attached to some small
dynamic data your WAL and table bloats. Certainly you could have engineered
your system not to fall into this pitfall, but only if you knew about it and
only if it was worth the effort and other possible costs of doing so.

  Gregory Stark

In response to


pgsql-hackers by date

Next:From: Joshua D. DrakeDate: 2007-03-28 15:14:02
Subject: Re: Reduction in WAL for UPDATEs
Previous:From: Magnus HaganderDate: 2007-03-28 14:56:28
Subject: ECPG threads test

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group