Re: Auto creation of Partitions

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, Shane Ambler <pgsql(at)sheeky(dot)biz>, NikhilS <nikkhils(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: Auto creation of Partitions
Date: 2007-03-06 18:44:31
Message-ID: 200703061044.31936.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Cramer 2007-03-06 18:45:10 Re: [JDBC] Plan invalidation vs. unnamed prepared statements
Previous Message Tom Lane 2007-03-06 18:44:25 Re: Auto creation of Partitions

Browse pgsql-patches by date

  From Date Subject
Next Message Josh Berkus 2007-03-06 19:04:41 Re: Auto creation of Partitions
Previous Message Tom Lane 2007-03-06 18:44:25 Re: Auto creation of Partitions