Re: Delete with subquery deleting all records

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Francisco Reyes <lists(at)stringsutils(dot)com>
Cc: Alban Hertroys <alban(at)magproductions(dot)nl>, PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Delete with subquery deleting all records
Date: 2007-05-25 14:45:05
Message-ID: 4656F671.60004@g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Francisco Reyes wrote:
> Alban Hertroys writes:
>
>> I suppose you run those queries in a transaction block, right?
>
> Correct.
> Also I do a backup before doing the deletions.

Note that if you're in a transaction, you don't technically need the
backup (doesn't hurt though) as if you get it wrong you can just roll it
back.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Erik Jones 2007-05-25 14:47:23 Re: why postgresql over other RDBMS
Previous Message Tom Lane 2007-05-25 13:52:27 Re: ERROR: cache lookup failed for type 0