I'm seeing a segfault on a size TPC-H size 10 database. The patch and code are:
- bitmap patch from 12 Mar
- 8.3 dev from 27 Mar

SELECT count(distinct(o_orderkey))
FROM orders orders_alias
WHERE o_orderpriority IN ('1-URGENT', '3-MEDIUM') AND o_orderstatus='P';

(gdb) bt
#0  0x00000000 in ?? ()
#1  0x08155eb5 in bitmap_stream_free (opaque=0x84e4070) at tidbitmap.c:1336
#2  0x08142914 in ExecEndBitmapHeapScan (node=0x8405548)
    at nodeBitmapHeapscan.c:463
#3  0x0813789a in ExecutorEnd (queryDesc=0x83ed948) at execMain.c:992
#4  0x081134ef in PortalCleanup (portal=0x83ee018) at portalcmds.c:302
#5  0x0823e2d2 in PortalDrop (portal=0x83ee018, isTopCommit=0 '\0')
    at portalmem.c:382
#6  0x081b2182 in exec_simple_query (
query_string=0x83a8018 "SELECT count(distinct(o_orderkey))\nFROM orders orders_alias\nWHERE o_orderpriority IN ('1-URGENT', '3-MEDIUM') AND o_orderstatus='P';") at postgres.c:964
#7  0x081b4350 in PostgresMain (argc=4, argv=0x833a638,
    username=0x833a610 "postgres") at postgres.c:3488
#8  0x0818faab in ServerLoop () at postmaster.c:2985
#9 0x081911b1 in PostmasterMain (argc=1, argv=0xbfbfec30) at postmaster.c:967
#10 0x08153592 in main (argc=1, argv=0xbfbfec30) at main.c:188

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply via email to