(gdb) bt #0 0x00007fa3d8f0b475 in *__GI_raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00007fa3d8f0e6f0 in *__GI_abort () at abort.c:92 #2 0x000000000076d6ac in errfinish (dummy=dummy@entry=0) at elog.c:546 #3 0x000000000076fdca in elog_finish (elevel=elevel@entry=22, fmt=fmt@entry=0x7d2aa7 "invalid xlog record length %u") at elog.c:1304 #4 0x00000000004e1eba in XLogInsert (rmid=rmid@entry=17 '\021', info=info@entry=48 '0', rdata=rdata@entry=0x7ffff162fc40) at xlog.c:966 #5 0x00000000004a9bb9 in mmSetHeapBlockItemptr (rmAccess=rmAccess@entry=0x16729a0, heapBlk=heapBlk@entry=0, blkno=blkno@entry=1, offno=offno@entry=1) at mmrevmap.c:169 #6 0x00000000004a73e8 in mm_doinsert (idxrel=0x7fa3d974d7d8, rmAccess=0x16729a0, buffer=buffer@entry=0x1666754, heapblkno=0, tup=tup@entry=0x1672068, itemsz=16) at minmax.c:1410 #7 0x00000000004a7b85 in mmbuildCallback (index=index@entry=0x7fa3d974d7d8, htup=htup@entry=0x1671a40, values=values@entry=0x7ffff162fe30, isnull=isnull@entry=0x7ffff162fe10 "", tupleIsAlive=tupleIsAlive@entry=1 '\001', state=state@entry=0x1666748) at minmax.c:595 #8 0x00000000004f8216 in IndexBuildHeapRangeScan (heapRelation=heapRelation@entry=0x7fa3d974bc60, indexRelation=indexRelation@entry=0x7fa3d974d7d8, indexInfo=indexInfo@entry=0x166eb08, allow_sync=allow_sync@entry=0 '\000', start_blockno=start_blockno@entry=0, numblocks=numblocks@entry=4294967295, callback=callback@entry=0x4a78d0 , callback_state=callback_state@entry=0x1666748) at index.c:2497 #9 0x00000000004f860e in IndexBuildHeapScan (heapRelation=heapRelation@entry=0x7fa3d974bc60, indexRelation=indexRelation@entry=0x7fa3d974d7d8, indexInfo=indexInfo@entry=0x166eb08, allow_sync=allow_sync@entry=0 '\000', callback=callback@entry=0x4a78d0 , callback_state=callback_state@entry=0x1666748) at index.c:2119 #10 0x00000000004a89b5 in mmbuild (fcinfo=) at minmax.c:830 #11 0x0000000000774158 in OidFunctionCall3Coll (functionId=functionId@entry=3185, collation=collation@entry=0, arg1=arg1@entry=140341704703072, arg2=arg2@entry=140341704710104, arg3=arg3@entry=23522056) at fmgr.c:1652 #12 0x00000000004f6966 in index_build (heapRelation=heapRelation@entry=0x7fa3d974bc60, indexRelation=indexRelation@entry=0x7fa3d974d7d8, indexInfo=indexInfo@entry=0x166eb08, isprimary=isprimary@entry=0 '\000', isreindex=isreindex@entry=0 '\000') at index.c:1982 #13 0x00000000004f79e0 in index_create (heapRelation=heapRelation@entry=0x7fa3d974bc60, indexRelationName=indexRelationName@entry=0x1642fe0 "idx_t1_i", indexRelationId=40963, indexRelationId@entry=0, relFileNode=0, indexInfo=indexInfo@entry=0x166eb08, indexColNames=indexColNames@entry=0x166e860, accessMethodObjectId=accessMethodObjectId@entry=3847, tableSpaceId=tableSpaceId@entry=0, collationObjectId=collationObjectId@entry=0x1671e30, classObjectId=classObjectId@entry=0x1671e50, coloptions=coloptions@entry=0x1671e70, reloptions=reloptions@entry=0, isprimary=0 '\000', isconstraint=0 '\000', deferrable=0 '\000', initdeferred=0 '\000', allow_system_table_mods=0 '\000', skip_build=0 '\000', concurrent=0 '\000', is_internal=0 '\000') at index.c:1081 #14 0x00000000005797af in DefineIndex (stmt=0x1642f48, indexRelationId=indexRelationId@entry=0, is_alter_table=is_alter_table@entry=0 '\000', check_rights=check_rights@entry=1 '\001', skip_build=skip_build@entry=0 '\000', quiet=quiet@entry=0 '\000') at indexcmds.c:595 #15 0x000000000069fe38 in ProcessUtilitySlow (parsetree=parsetree@entry=0x15def28, queryString=0x15de378 "create index idx_t1_i on t1 using minmax(i);", context=, params=params@entry=0x0, completionTag=0x7ffff1630e80 "", dest=) at utility.c:1162 #16 0x000000000069f07c in standard_ProcessUtility (parsetree=0x15def28, queryString=, context=, params=0x0, dest=, completionTag=) at utility.c:872 #17 0x000000000069c587 in PortalRunUtility (portal=0x16684e8, utilityStmt=0x15def28, isTopLevel=1 '\001', dest=0x15df310, completionTag=0x7ffff1630e80 "") at pquery.c:1187 #18 0x000000000069d299 in PortalRunMulti (portal=portal@entry=0x16684e8, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x15df310, altdest=altdest@entry=0x15df310, completionTag=completionTag@entry=0x7ffff1630e80 "") at pquery.c:1318 #19 0x000000000069df32 in PortalRun (portal=portal@entry=0x16684e8, count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x15df310, altdest=altdest@entry=0x15df310, completionTag=completionTag@entry=0x7ffff1630e80 "") at pquery.c:816 #20 0x000000000069afdb in exec_simple_query (query_string=0x15de378 "create index idx_t1_i on t1 using minmax(i);") at postgres.c:1048 #21 PostgresMain (argc=, argv=argv@entry=0x15c6e08, dbname=0x15c6c68 "postgres", username=) at postgres.c:3992 #22 0x000000000046559e in BackendRun (port=0x15e5740) at postmaster.c:4083 #23 BackendStartup (port=0x15e5740) at postmaster.c:3772 #24 ServerLoop () at postmaster.c:1583 #25 0x000000000065230e in PostmasterMain (argc=argc@entry=3, argv=argv@entry=0x15c2ee0) at postmaster.c:1239 #26 0x0000000000465ec5 in main (argc=3, argv=0x15c2ee0) at main.c:196