Re: REINDEX CONCURRENTLY unexpectedly fails
Jeff Janes <jeff.janes@gmail.com>
From: Jeff Janes <jeff.janes@gmail.com>
To: Manuel Rigger <rigger.manuel@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2019-11-13T14:36:37Z
Lists: pgsql-bugs
On Wed, Nov 13, 2019 at 9:30 AM Manuel Rigger <rigger.manuel@gmail.com> wrote: > Hi everyone, > > On the latest trunk version, I get an error "index "t0_pkey_ccnew" > already contains data" when using REINDEX CONCURRENTLY: > > CREATE TEMP TABLE t0(c1 INT PRIMARY KEY) ON COMMIT DELETE ROWS; > REINDEX TABLE CONCURRENTLY t0; -- unexpected: ERROR: index > "t0_pkey_ccnew" already contains data > > Is this expected? I think I did not observe this error on earlier > PostgreSQL versions. > For what it is worth, I get the samer error in 12.0. And the command doesn't exist in 11. The "ON COMMIT DELETE ROWS" is necessary to repodcue the problem, but the index doesn't need to be primary key. Cheers, Jeff
Commits
-
Fix concurrent indexing operations with temporary tables
- d76652edc56f 9.4.26 landed
- c39f45598177 9.5.21 landed
- ef33edeb5835 9.6.17 landed
- 9055344b495f 10.12 landed
- 5b4b07fa9ac3 11.7 landed
- 817a1b88ac66 12.2 landed
- a904abe2e284 13.0 landed