Re: Enhancement Request
От | M Sarwar |
---|---|
Тема | Re: Enhancement Request |
Дата | |
Msg-id | DM4PR19MB5978E8D391D422D086632D89D37C2@DM4PR19MB5978.namprd19.prod.outlook.com обсуждение исходный текст |
Ответ на | RE: Enhancement Request ("Hajek, Nick" <Nick.Hajek@vishay.com>) |
Ответы |
RE: Enhancement Request
RE: Enhancement Request |
Список | pgsql-admin |
Nick,
Are you confirming that DELETE FROM - LIMIT is working?
Thanks,
Sarwar
From: Hajek, Nick <Nick.Hajek@vishay.com>
Sent: Wednesday, January 31, 2024 2:34 PM
To: Campbell, Lance <lance@illinois.edu>; pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: RE: Enhancement Request
Sent: Wednesday, January 31, 2024 2:34 PM
To: Campbell, Lance <lance@illinois.edu>; pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: RE: Enhancement Request
// 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)
В списке pgsql-admin по дате отправления: