Re: Enhancement Request

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Enhancement Request
Date: 2024-02-01 01:35:37
Message-ID: CANzqJaAKMAHvNv9hTW=b8yVS_88WyS6kvOwzxdDgmqa=4M29sQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, Jan 31, 2024 at 3:51 PM Hajek, Nick <Nick(dot)Hajek(at)vishay(dot)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).

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Rajesh Kumar 2024-02-01 05:43:38 Basebackup command
Previous Message Ron Johnson 2024-02-01 01:31:30 Re: Enhancement Request