#1 0xb7c60dcb in semop () from /lib/tls/i686/cmov/libc.so.6 #2 0x081c98cc in PGSemaphoreLock (sema=0xb78dda58, interruptOK=6 '\006') at pg_sema.c:411 #3 0x081f553e in LWLockAcquire (lockid=BtreeVacuumLock, mode=LW_SHARED) at lwlock.c:455 #4 0x080abee8 in _bt_vacuum_cycleid (rel=0x842c008) at nbtutils.c:956 #5 0x080a5498 in _bt_insertonpg (rel=0x842c008, buf=2793, stack=0x844e528, keysz=3, scankey=0x844e680, itup=0x8446150, afteritem=0, split_only_page=0 '\0') at nbtinsert.c:761 #6 0x080a700d in _bt_doinsert (rel=0x842c008, itup=0x8446150, index_is_unique=0 '\0', heapRel=0x842b6a8) at nbtinsert.c:141 #7 0x080aa32d in btinsert (fcinfo=0xbfc5ab68) at nbtree.c:224 #8 0x0828af27 in FunctionCall6 (flinfo=0x844bcb8, arg1=138592264, arg2=3217403400, arg3=3217403528, arg4=138733052, arg5=138589864, arg6=0) at fmgr.c:1267 #9 0x080a43c6 in index_insert (indexRelation=0x842c008, values=0xbfc5ae08, isnull=0xbfc5ae88 "", heap_t_ctid=0x844e5fc, heapRelation=0x842b6a8, check_uniqueness=0 '\0') at indexam.c:196 #10 0x080deecd in CatalogIndexInsert (indstate=0x8446b80, heapTuple=0x844e5f8) at indexing.c:124 #11 0x080ebf51 in copyTemplateDependencies (templateDbId=16385, newDbId=22086) at pg_shdepend.c:685 #12 0x0812dab0 in createdb (stmt=0x83fae48) at dbcommands.c:398 #13 0x0820316f in ProcessUtility (parsetree=0x83fae48, params=0x0, dest=0x83fae88, completionTag=0xbfc5b428 "") at utility.c:845 #14 0x08200109 in PortalRunUtility (portal=0x843d540, query=0x83fac60, dest=0x83fae88, completionTag=0xbfc5b428 "") at pquery.c:1063 #15 0x08200eac in PortalRunMulti (portal=0x843d540, dest=0x4198006, altdest=0x83fae88, completionTag=0xbfc5b428 "") at pquery.c:1131 #16 0x082016d9 in PortalRun (portal=0x843d540, count=2147483647, dest=0x83fae88, altdest=0x83fae88, completionTag=0xbfc5b428 "") at pquery.c:700 #17 0x081fcc97 in exec_simple_query ( query_string=0x83faa50 "CREATE DATABASE launchpad_ftest TEMPLATE=launchpad_ftest_template ENCODING='UNICODE'") at postgres.c:939 #18 0x081fe457 in PostgresMain (argc=4, argv=0x83983dc, username=0x83983a0 "mark") at postgres.c:3424 #19 0x081d211a in ServerLoop () at postmaster.c:2931 #20 0x081d3034 in PostmasterMain (argc=5, argv=0x83950e0) at postmaster.c:963 #21 0x0818c745 in main (argc=5, argv=0xbfc5ca64) at main.c:188