Re: CREATE INDEX CONCURRENTLY does not index prepared xact's data
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Sandeep Thakkar <sandeep.thakkar@enterprisedb.com>
Cc: Noah Misch <noah@leadboat.com>, Andrey Borodin <x4mmm@yandex-team.ru>, CM Team <cm@enterprisedb.com>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>, Michael Paquier <michael@paquier.xyz>, Tom Lane <tgl@sss.pgh.pa.us>, Peter Geoghegan <pg@bowt.ie>, Semab Tariq <semab.tariq@enterprisedb.com>
Date: 2021-10-31T19:18:01Z
Lists: pgsql-bugs
Hi, On 2021-10-31 13:01:00 +0530, Sandeep Thakkar wrote: > > #1 0x40000000003fdc00:0 in equalTupleDescs (tupdesc1=0x60000000001f65e0, > > > > tupdesc2=0x60000000001fba08) Could you print out *tupdesc1, *tupdesc2? And best also p tupdesc1->attrs[0] p tupdesc1->attrs[1] p tupdesc1->attrs[2] p tupdesc2->attrs[0] p tupdesc2->attrs[1] p tupdesc2->attrs[2] > > #2 0x40000000017f9660:0 in RelationClearRelation ( > > > > relation=0x60000000001f3730, rebuild=true) Hm, too bad that we don't have working line numbers for some reason? > > #3 0x40000000017fa730:0 in RelationFlushRelation > > (relation=0x60000000001f3730) > > > > #4 0x40000000017fabb0:0 in RelationCacheInvalidateEntry > > (relationId=27272) > > > > #5 0x40000000017c8f20:0 in LocalExecuteInvalidationMessage ( > > > > msg=0x60000000001a46b8) > > > > #6 0x40000000017c84e0:0 in ProcessInvalidationMessages ( > > > > group=0x60000000001a43e4, func=0x87ffffffef7b7250) > > > > #7 0x40000000017cb420:0 in CommandEndInvalidationMessages () > > > > #8 0x40000000006b1c50:0 in AtCCI_LocalCache () > > > > #9 0x40000000006b0910:0 in CommandCounterIncrement () > > > > #10 0x4000000000807130:0 in create_toast_table (rel=0x60000000001f3730, > > > > toastOid=0, toastIndexOid=0, reloptions=0, lockmode=8, check=true, > > > > OIDOldToast=0) > > > > #11 0x4000000000805ac0:0 in CheckAndCreateToastTable (relOid=27272, > > > > reloptions=0, lockmode=8, check=true, OIDOldToast=0) at toasting.c:88 > > > > #12 0x4000000000805850:0 in AlterTableCreateToastTable (relOid=27272, > > > > reloptions=0, lockmode=8) at toasting.c:62 > > > > #13 0x4000000000aa9a30:0 in ATRewriteCatalogs (wqueue=0x87ffffffffffc3b0, > > > > lockmode=8, context=0x87ffffffffffc590) This crash could suggest that somehow the catalogs were corrupted and that we're not reading back valid tupledescs from them. Hopefully we'll know more after looking at the tupledescs. Greetings, Andres Freund
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Improve contrib/amcheck's tests for CREATE INDEX CONCURRENTLY.
- b1f943d2aa7e 14.1 landed
- 7f580aa5d88a 15.0 landed
- 5a4b8a8a720c 13.5 landed
- 141cd0ef0b0b 12.9 landed
-
Fix minor memory leaks in pg_dump.
- 70bef494000e 15.0 cited
-
Avoid race in RelationBuildDesc() affecting CREATE INDEX CONCURRENTLY.
- e428699cb3be 9.6.24 landed
- db86746fd11e 10.19 landed
- 5141e471b36a 11.14 landed
- dde966efb286 14.1 landed
- 2e33b43599ad 13.5 landed
- 0869e53d3a07 12.9 landed
- fdd965d074d4 15.0 landed
-
Fix CREATE INDEX CONCURRENTLY for the newest prepared transactions.
- df6158139f64 11.14 landed
- 560124a37c2f 10.19 landed
- 5184932432b4 9.6.24 landed
- fe5d44a1d38f 12.9 landed
- a9d0a5409415 13.5 landed
- a5b9a0000e14 14.1 landed
- 3cd9c3b92197 15.0 landed
-
Add -w back to the flags for pg_ctl (re)start in PostgresNode
- b33259e261ae 15.0 cited
-
Fix CREATE INDEX CONCURRENTLY for simultaneous prepared transactions.
- 77a0e14f0b21 9.5.25 landed
- d683d6528dba 9.6.21 landed
- 179775135b41 10.16 landed
- d1ab4bf6ed2d 11.11 landed
- be843ce29737 12.6 landed
- 86a5b309c933 13.2 landed
- 8a54e12a38d1 14.0 landed