Re: Searching for Duplicates and Hosed the System

From: Decibel! <decibel(at)decibel(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bill Thoen <bthoen(at)gisnet(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Searching for Duplicates and Hosed the System
Date: 2007-08-23 19:11:48
Message-ID: B5CF91CA-750A-4DC9-ACEF-505F1C841CC1@decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Aug 21, 2007, at 12:04 AM, Tom Lane wrote:
> If you need to deal with very large result sets, the standard advice
> is to use a cursor so you can pull a few hundred or thousand rows
> at a time via FETCH.

In case it's not obvious... in this case you might want to dump the
output of that query into another table; perhaps a temp table...

CREATE TEMP TABLE dupe_check AS SELECT ...
--
Decibel!, aka Jim Nasby decibel(at)decibel(dot)org
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2007-08-23 19:14:22 Re: PostgreSQL vs Firebird feature comparison finished
Previous Message Decibel! 2007-08-23 19:07:15 Re: Seeking datacenter PITR backup procedures [RESENDING]