Re: [HACKERS] DROP INDEX CONCURRENTLY is not really concurrency safe & leaves around undroppable indexes

2012-09-25 Thread Andres Freund
On Tuesday, September 25, 2012 01:58:31 AM Andres Freund wrote: > On Monday, September 24, 2012 01:37:59 PM Andres Freund wrote: > > On Monday, September 24, 2012 01:27:54 PM Andres Freund wrote: > > > Problem 2: undroppable indexes: > > > > > > > > > Session 1: > > > CREATE TABLE test_drop_concu

Re: [HACKERS] DROP INDEX CONCURRENTLY is not really concurrency safe & leaves around undroppable indexes

2012-09-24 Thread Andres Freund
On Monday, September 24, 2012 01:37:59 PM Andres Freund wrote: > On Monday, September 24, 2012 01:27:54 PM Andres Freund wrote: > > Problem 2: undroppable indexes: > > > > > > Session 1: > > CREATE TABLE test_drop_concurrently(id serial primary key, data int); > > CREATE INDEX test_drop_concurrent

Re: [HACKERS] DROP INDEX CONCURRENTLY is not really concurrency safe & leaves around undroppable indexes

2012-09-24 Thread Andres Freund
Hi, On Monday, September 24, 2012 01:27:54 PM Andres Freund wrote: > Hi, > > Problem 1: concurrency: > > Testcase: > > Session 1: > CREATE TABLE test_drop_concurrently(id serial primary key, data int); > INSERT INTO test_drop_concurrently(data) SELECT * FROM generate_series(1, > 10); > CREA

Re: [HACKERS] DROP INDEX CONCURRENTLY is not really concurrency safe & leaves around undroppable indexes

2012-09-24 Thread Andres Freund
On Monday, September 24, 2012 01:27:54 PM Andres Freund wrote: > Problem 2: undroppable indexes: > > Session 1: > CREATE TABLE test_drop_concurrently(id serial primary key, data int); > CREATE INDEX test_drop_concurrently_data ON test_drop_concurrently(data); > BEGIN; > EXPLAIN ANALYZE SELECT * FR

[HACKERS] DROP INDEX CONCURRENTLY is not really concurrency safe & leaves around undroppable indexes

2012-09-24 Thread Andres Freund
Hi, Problem 1: concurrency: Testcase: Session 1: CREATE TABLE test_drop_concurrently(id serial primary key, data int); INSERT INTO test_drop_concurrently(data) SELECT * FROM generate_series(1, 10); CREATE INDEX test_drop_concurrently_data ON test_drop_concurrently(data); BEGIN; EXPLAIN ANAL