RE: Enhancement Request

From: "Hajek, Nick" <Nick(dot)Hajek(at)vishay(dot)com>
To: "Campbell, Lance" <lance(at)illinois(dot)edu>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: RE: Enhancement Request
Date: 2024-01-31 19:34:08
Message-ID: CH0PR02MB8106DCF6427AD9045CB5DD77E57C2@CH0PR02MB8106.namprd02.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

// It would be nice if the DELETE FROM supported LIMIT. I can already feel the dislike for this post coming back in my direction.

// I have had numerous times over the years where I need to delete a lot of rows from a table but because each row is linked to so many other tables it will cause // a problem in performance if I don't limit the size of the deletion.

I use a query like this to accomplish a limited deletion -

Delete from table1 where table1.id in (select table1.id from table1 limit yourlimitnumber)

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Andrey Glazunov 2024-01-31 20:29:31 Re: Pam NIS authentication
Previous Message Alex Balashov 2024-01-31 19:32:48 Re: Enhancement Request