[New Thread 17366] [Thread debugging using libthread_db enabled] Core was generated by `postgres: postgres smart_replenishment_alpha [local] CREAT'. Program terminated with signal 11, Segmentation fault. #0 0x00000000006768c5 in tas (l=0x0, mode=LW_EXCLUSIVE) at ../../../../src/include/storage/s_lock.h:222 222 __asm__ __volatile__( #0 0x00000000006768c5 in tas (l=0x0, mode=LW_EXCLUSIVE) at ../../../../src/include/storage/s_lock.h:222 #1 LWLockAcquireCommon (l=0x0, mode=LW_EXCLUSIVE) at lwlock.c:549 #2 LWLockAcquire (l=0x0, mode=LW_EXCLUSIVE) at lwlock.c:467 #3 0x000000000065dd1e in ReadBuffer_common (smgr=, relpersistence=116 't', forkNum=MAIN_FORKNUM, blockNum=514, mode=RBM_ZERO_AND_LOCK, strategy=0x0, hit=0x7fff53b68c6f "") at bufmgr.c:519 #4 0x000000000065e55e in ReadBufferExtended (reln=0x7f008d914ae0, forkNum=MAIN_FORKNUM, blockNum=514, mode=, strategy=) at bufmgr.c:259 #5 0x0000000000483be2 in _hash_getnewbuf (rel=0x7f008d914ae0, blkno=514, forkNum=MAIN_FORKNUM) at hashpage.c:204 #6 0x00000000004843a0 in _hash_splitbucket (rel=0x7f008d914ae0, metabuf=-750, obucket=0, nbucket=512, start_oblkno=1, start_nblkno=514, maxbucket=512, highmask=1023, lowmask=511) at hashpage.c:768 #7 0x0000000000484a04 in _hash_expandtable (rel=0x7f008d914ae0, metabuf=-750) at hashpage.c:656 #8 0x0000000000482af1 in _hash_doinsert (rel=0x7f008d914ae0, itup=0x26da498) at hashinsert.c:184 #9 0x000000000048221b in hashbuildCallback (index=0x7f008d914ae0, htup=0x26db010, values=, isnull=, tupleIsAlive=, state=0x7fff53b6a290) at hash.c:160 #10 0x00000000004dbccc in IndexBuildHeapScan (heapRelation=0x7f008d912d60, indexRelation=0x7f008d914ae0, indexInfo=0x26d9a00, allow_sync=, callback=0x482180 , callback_state=0x7fff53b6a290) at index.c:2454 #11 0x00000000004820f4 in hashbuild (fcinfo=) at hash.c:97 #12 0x000000000076816c in OidFunctionCall3Coll (functionId=, collation=0, arg1=139640351829344, arg2=139640351836896, arg3=40737280) at fmgr.c:1650 #13 0x00000000004dc3ee in index_build (heapRelation=0x7f008d912d60, indexRelation=0x7f008d914ae0, indexInfo=0x26d9a00, isprimary=0 '\000', isreindex=0 '\000') at index.c:1954 #14 0x00000000004de931 in index_create (heapRelation=0x7f008d912d60, indexRelationName=0x26d9ce0 "idx_item_oh_id", indexRelationId=105274, relFileNode=0, indexInfo=, indexColNames=, accessMethodObjectId=405, tableSpaceId=0, collationObjectId=0x26da3e0, classObjectId=0x26da3f8, coloptions=0x26da410, reloptions=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:1083 #15 0x000000000055cf9f in DefineIndex (relationId=105271, stmt=, indexRelationId=0, is_alter_table=0 '\000', check_rights=1 '\001', skip_build=0 '\000', quiet=0 '\000') at indexcmds.c:601 #16 0x0000000000688da0 in ProcessUtilitySlow (parsetree=0x269d720, queryString=0x269cbe0 "create index idx_item_oh_id on tmp_oh using HASH (item_id) ;", context=PROCESS_UTILITY_TOPLEVEL, params=0x0, dest=, completionTag=0x7fff53b6b0d0 "") at utility.c:1144 #17 0x00000000006893d9 in standard_ProcessUtility (parsetree=0x269d720, queryString=, context=, params=0x0, dest=, completionTag=0x7fff53b6b0d0 "") at utility.c:836 #18 0x00007f008ebd3efe in pgss_ProcessUtility (parsetree=0x269d720, queryString=0x269cbe0 "create index idx_item_oh_id on tmp_oh using HASH (item_id) ;", context=PROCESS_UTILITY_TOPLEVEL, params=0x0, dest=0x269dac0, completionTag=0x7fff53b6b0d0 "") at pg_stat_statements.c:984 #19 0x00000000006863c7 in PortalRunUtility (portal=0x26e2ff0, utilityStmt=0x269d720, isTopLevel=1 '\001', dest=0x269dac0, completionTag=0x7fff53b6b0d0 "") at pquery.c:1187 #20 0x000000000068735d in PortalRunMulti (portal=0x26e2ff0, isTopLevel=1 '\001', dest=0x269dac0, altdest=0x269dac0, completionTag=0x7fff53b6b0d0 "") at pquery.c:1318 #21 0x0000000000687a53 in PortalRun (portal=0x26e2ff0, count=9223372036854775807, isTopLevel=1 '\001', dest=0x269dac0, altdest=0x269dac0, completionTag=0x7fff53b6b0d0 "") at pquery.c:816 #22 0x000000000068404e in exec_simple_query (query_string=0x269cbe0 "create index idx_item_oh_id on tmp_oh using HASH (item_id) ;") at postgres.c:1072 #23 0x00000000006856c8 in PostgresMain (argc=, argv=, dbname=0x2640300 "smart_replenishment_alpha", username=) at postgres.c:4074 #24 0x0000000000632d7d in BackendRun (argc=, argv=) at postmaster.c:4155 #25 BackendStartup (argc=, argv=) at postmaster.c:3829 #26 ServerLoop (argc=, argv=) at postmaster.c:1597 #27 PostmasterMain (argc=, argv=) at postmaster.c:1244 #28 0x00000000005cadb8 in main (argc=3, argv=0x263f4a0) at main.c:228