Feature request: limited deletions - Mailing list pgadmin-hackers

From Thom Brown
Subject Feature request: limited deletions
Date
Msg-id g2sbddc86151004080306g24e0407dxd55dc9a7c89cd575@mail.gmail.com
Whole thread Raw
Responses Re: Feature request: limited deletions  (Ian Barwick <barwick@gmail.com>)
List pgadmin-hackers
I couldn't find any discussion on this, but the request is quite straightforward.  Implement a LIMIT on DELETE statements like SELECT statements.

So you could write:

DELETE FROM massive_table WHERE id < 40000000 LIMIT 10000;

This would allow deletions in smaller batches rather than waiting potentially hours for the server to mark all those rows as deleted and commit it as one massive transaction.

... although I suspect there will be reasons against this.

Thom

pgadmin-hackers by date:

Previous
From: Erwin Brandstetter
Date:
Subject: Missing RULEs from VIEWs and their format
Next
From: Ian Barwick
Date:
Subject: Re: Feature request: limited deletions