Re: Tuning single row operations - Mailing list pgsql-hackers

From Richard Huxton
Subject Re: Tuning single row operations
Date
Msg-id 458A9540.3080100@archonet.com
Whole thread Raw
In response to Tuning single row operations  ("Simon Riggs" <simon@2ndquadrant.com>)
Responses Re: Tuning single row operations  (Matthew O'Connor <matthew@zeut.net>)
List pgsql-hackers
Simon Riggs wrote:
> For 8.3 my goal is to improve the performance of single row operations,

Great. That's something that's useful across the board.

> Currently, I'm aware of these possibilities, some fairly vague
...
> - avoid RI checks for update of a column not mentioned in SET

Linked at least logically - conditional triggers ("where 
old.status<>new.status" or similar) could save on IF statements early in 
trigger functions.

...
> - improve RI check perf by caching small, static tables in each backend
> - apply index filter conditions on index scan to avoid heap lookup

For fkey checks against a basically static table could you get away with 
just checking the index and not the table?

--   Richard Huxton  Archonet Ltd


pgsql-hackers by date:

Previous
From: "Zeugswetter Andreas ADI SD"
Date:
Subject: Re: Load distributed checkpoint
Next
From: Matthew O'Connor
Date:
Subject: Re: Interface for pg_autovacuum