Re: Enhancement Request - Mailing list pgsql-admin

From Ron Johnson
Subject Re: Enhancement Request
Date
Msg-id CANzqJaAKMAHvNv9hTW=b8yVS_88WyS6kvOwzxdDgmqa=4M29sQ@mail.gmail.com
Whole thread Raw
In response to RE: Enhancement Request  ("Hajek, Nick" <Nick.Hajek@vishay.com>)
Responses Re: Enhancement Request
List pgsql-admin
On Wed, Jan 31, 2024 at 3:51 PM Hajek, Nick <Nick.Hajek@vishay.com> wrote: 
 [snip]

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


The IN predicate is only efficient for a very small number of elements, supported by an index.  People (including me) who would find DELETE FROM .. LIMIT TO ... useful want to delete a *lot* of rows (but not all in one giant statement).

pgsql-admin by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Enhancement Request
Next
From: Rajesh Kumar
Date:
Subject: Basebackup command