Re: [BUGS] Out of memory error during large hashagg

2006-09-25 Thread Tom Lane
Casey Duncan <[EMAIL PROTECTED]> writes: > I haven't tried increasing the stats target. What would be a suitable > value to try? Try 100 (instead of the default 10) ... you can go as high as 1000, though hopefully that's overkill. regards, tom lane -

Re: [BUGS] Out of memory error during large hashagg

2006-09-25 Thread Casey Duncan
On Sep 24, 2006, at 8:59 AM, Tom Lane wrote: Casey Duncan <[EMAIL PROTECTED]> writes: seed | st_id | 164656 I ran analyze after this, but the results were roughly the same. What's the statistics target set to, and did you try increasing it? Can we see the rest of the pg_sta

Re: [BUGS] Out of memory error during large hashagg

2006-09-24 Thread Tom Lane
Casey Duncan <[EMAIL PROTECTED]> writes: > seed | st_id | 164656 > I ran analyze after this, but the results were roughly the same. What's the statistics target set to, and did you try increasing it? Can we see the rest of the pg_stats row for this column (I'm mainly interested in

Re: [BUGS] Out of memory error during large hashagg

2006-09-23 Thread Casey Duncan
I posted that in a subsequent mail, but here it is again: I'm interested in collecting info on the distribution of data. Can you post: select tablename, attname, n_distinct from pg_stats where attname = 'st_id'; tablename | attname | n_distinct --+-+ st

Re: [BUGS] Out of memory error during large hashagg

2006-09-23 Thread Tom Lane
Casey Duncan <[EMAIL PROTECTED]> writes: > select st_id, min(seed_id) as "initial_seed_id", count(*) as > "seed_count" from seed group by st_id; > The query plan and table stats are: >QUERY PLAN > --

Re: [BUGS] Out of memory error during large hashagg

2006-09-19 Thread Casey Duncan
On Sep 19, 2006, at 1:51 AM, Simon Riggs wrote: On Mon, 2006-09-18 at 14:08 -0700, Casey Duncan wrote: I've reported variants of this in the past, but this case is entirely repeatable. Executing this query: select st_id, min(seed_id) as "initial_seed_id", count(*) as "seed_count" from seed g

Re: [BUGS] Out of memory error during large hashagg

2006-09-19 Thread Simon Riggs
On Mon, 2006-09-18 at 14:08 -0700, Casey Duncan wrote: > I've reported variants of this in the past, but this case is entirely > repeatable. > > Executing this query: > > select st_id, min(seed_id) as "initial_seed_id", count(*) as > "seed_count" > from seed group by st_id; > > The query pla

[BUGS] Out of memory error during large hashagg

2006-09-18 Thread Casey Duncan
I've reported variants of this in the past, but this case is entirely repeatable. Executing this query: select st_id, min(seed_id) as "initial_seed_id", count(*) as "seed_count" from seed group by st_id; The query plan and table stats are: QUERY PLAN