PG 8 Out of memory issuing queries

From: Werner Bohl <WernerBohl(at)infutor(dot)com>
To: PgSQL ADMIN <pgsql-admin(at)postgresql(dot)org>
Subject: PG 8 Out of memory issuing queries
Date: 2005-02-04 21:39:06
Message-ID: 1107553146.16535.6.camel@sirio
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi!

Hope anybody can help me with this issue. I have a fairly large table
(~75 million rows) that where imported without pk. Tried to create a pk
on a supposed unique field, but failed with duplicates. So i issued:
select oldid from table group by oldid having count(*) > 1
and it fails with Out of memory. Tried to create a new pk using: alter
table <table> add newid serial primary key; and it also fails with out
of memory error.

Are there any settings on postgresql.conf that I may change to prevent
this error?

This is on Windows XP profesional with Postgresql 8.0

TIA,

--
Werner Bohl <WernerBohl(at)infutor(dot)com>
Infutor de Costa Rica S.A.

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2005-02-04 22:11:07 Re: log_duration
Previous Message Chris Hoover 2005-02-04 21:20:28 pg_restore question