Re: [GENERAL] Out of Memory Error on Insert

2011-10-18 Thread Tom Lane
Mark Priest writes: > However, I am still curious as to why I am getting an out of memory > error. I can see how the performance might be terrible on such a > query but I am surprised that postgres doesn't start using the disk at > some point to reduce memory usage. Could it be that postgres tr

Re: [GENERAL] Out of Memory Error on Insert

2011-10-18 Thread Mark Priest
Thanks, Craig. There are no triggers on the tables and the only constraints are the primary keys. I am thinking that the problem may be that I have too many full self joins on the simple_group table. I am probably getting a combinatorial explosion when postgres does cross joins on all the deriv

Fwd: [GENERAL] Out of Memory Error on Insert

2011-10-18 Thread Mark Priest
> Thanks, Craig. > > There are no triggers on the tables and the only constraints are the > primary keys. > > I am thinking that the problem may be that I have too many full self > joins on the simple_group table. I am probably getting a > combinatorial explosion when postgres does cross joins

Re: [GENERAL] Out of Memory Error on Insert

2011-10-18 Thread Tom Lane
Mark Priest writes: > I am getting an Out of Memory error in my server connection process > while running a large insert query. > Postgres version: "PostgreSQL 8.2.16 on i686-pc-mingw32, compiled by > GCC gcc.exe (GCC) 3.4.2 (mingw-special)" > OS: Windows 7 Professional (v.6.1, build 7601 service

Re: [GENERAL] Out of Memory Error on Insert

2011-10-18 Thread Craig Ringer
On 10/18/2011 02:52 PM, Mark Priest wrote: I am getting an Out of Memory error in my server connection process while running a large insert query. Postgres version: "PostgreSQL 8.2.16 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) 3.4.2 (mingw-special)" OS: Windows 7 Professional (v.6.1, buil

[GENERAL] Out of Memory Error on Insert

2011-10-17 Thread Mark Priest
I am getting an Out of Memory error in my server connection process while running a large insert query. Postgres version: "PostgreSQL 8.2.16 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) 3.4.2 (mingw-special)" OS: Windows 7 Professional (v.6.1, build 7601 service pack 1) The OS is 64 bit but t