Re: Auto creation of Partitions - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: Auto creation of Partitions
Date
Msg-id 200703061044.31936.josh@agliodbs.com
Whole thread Raw
In response to Re: Auto creation of Partitions  ("Florian G. Pflug" <fgp@phlo.org>)
List pgsql-hackers
Florian,

> This sounds like what is really needed is a way to lock a certain
> condition, namely the existance or non-existance of a record with
> certain values in certain fields. This would not only help this case,
> it would also help RI triggers, because those wouldn't have to acquire
> a share lock on the referenced rows anymore.

That's called "predicate locking" and it's very, very hard to do.

-- 
Josh Berkus
PostgreSQL @ Sun
San Francisco


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: PostgreSQL - 'SKYLINE OF' clause added!
Next
From: Tom Lane
Date:
Subject: Re: Auto creation of Partitions