Delete Enhancement Request - Mailing list pgsql-admin

From Campbell, Lance
Subject Delete Enhancement Request
Date
Msg-id EE8A78ED-B910-4FC0-BE85-39F74B90A055@illinois.edu
Whole thread Raw
Responses Re: Delete Enhancement Request  (Ron <ronljohnsonjr@gmail.com>)
Re: Delete Enhancement Request  (Paul Carlucci <paul.carlucci@gmail.com>)
Re: Delete Enhancement Request  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-admin

Please consider adding this feature to PostgreSQL.

 

Use Case:

When deleting a large number of records with constraints and triggers PostgreSQL is exceptionally slow.

 

Suggested change:

I believe a way to speed this processes up would be to offer an option a user could “turn on” prior to doing the delete. 

 

Example:  set delete-no-roll-back=true

 

Now as PostgreSQL deletes rows it literally deletes them one at a time as though the user was only deleting a single row.  This means that if cancel were executed on a delete action then it would only roll back the current row that PostgreSQL was in the process of deleting.  Example:  if you had 10 million row to delete and then pressed cancel after three minutes maybe 5 million are deleted.

 

Thanks,

 

Lance Campbell

Web Services

University of Illinois

pgsql-admin by date:

Previous
From: Bharat Telange
Date:
Subject: Re: Monitoring tool
Next
From: Pepe TD Vo
Date:
Subject: create tablespaces and users