Re: PSQL undesired transaction behavior when connection is lost. - Mailing list pgsql-general

From Steven Klassen
Subject Re: PSQL undesired transaction behavior when connection is lost.
Date
Msg-id 20041007195259.GA19692@commandprompt.com
Whole thread Raw
In response to Re: PSQL undesired transaction behavior when connection is lost.  (Steven Klassen <sklassen@commandprompt.com>)
List pgsql-general
* Steven Klassen <sklassen@commandprompt.com> [2004-10-07 12:33:34 -0700]:

> DELETE FROM pay_stub_entry
> JOIN pay_stub ON (pay_stub_entry.pay_stub_id = pay_stub.id)
> WHERE pay_stub.created_date >=1096527603;

After RTFM'ing it appears you can't do actual joins with delete so
we'll just have to daisy-chain the where clause.

DELETE FROM pay_stub_entry
WHERE pay_stub_entry.pay_stub_id = pay_stub.id
AND pay_stub.created_date >=1096527603;

--
Steven Klassen - Lead Programmer
Command Prompt, Inc. - http://www.commandprompt.com/
PostgreSQL Replication & Support Services, (503) 667-4564

pgsql-general by date:

Previous
From: David Fetter
Date:
Subject: DDL triggers [was Re: database constraints]
Next
From: Martijn van Oosterhout
Date:
Subject: Question about timezones