Re: dropping partitions and concurrent reads

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: dropping partitions and concurrent reads
Date: 2009-09-15 20:58:19
Message-ID: 23380.1253048299@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> S1, S2 are concurrent sessions:

> S1: create table test_par (v int);
> S1: create table test_ch1 (check (v > 0 and v <= 2)) inherits (test_par);
> S1: create table test_ch2 (check (v > 2 and v <= 4)) inherits (test_par);
> S1: begin;
> S1: drop table test_ch1 cascade;

> S2: select * from test_par where v = 3;

> S1: commit;

> in S2 I get:

> ERROR: could not open relation with OID 66962

Oh? Are you using 8.4+?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ed Koch 2009-09-15 21:11:18 I need a Postgres Admin $130K + 20K in NYC Any Ideas?
Previous Message Kevin Grittner 2009-09-15 20:20:51 Re: [BUGS] BUG #5053: domain constraints still leak