DELETE RETURNING

From: Markus Schaber <schabi(at)logix-tt(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: DELETE RETURNING
Date: 2006-09-25 08:31:09
Message-ID: 451793CD.5050506@logix-tt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I just read the docs about DELETE RETURNING in 8.2, and a small idea arised:

INSERT INTO logtable DELETE * FROM lifetable WHERE date<'2006-01-01'
RETURNING *;

Will this work as expected?

It might be a good example to put into the docs then.

If not, it may be worth the effort to make it work in 8.3.

Thanks,
Markus

--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Meskes 2006-09-25 10:57:20 Re: Windows build farm failures
Previous Message Simon Riggs 2006-09-25 08:27:12 Re: 8.3 Development Cycle