Re: Deleting takes days, should I add some index?

From: Alexander Farber <alexander(dot)farber(at)gmail(dot)com>
To:
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Deleting takes days, should I add some index?
Date: 2021-02-25 18:39:31
Message-ID: CAADeyWhXEwaE54zNphm03K1L55MkUu4pFhjpPSgeYRv8xLZRYg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Pavel, thank you for asking!

I have put the anonymized dump of my database at:

http://wordsbyfarber.com/words_dev.sql.gz (beware, it is a 1.3 GB download)

The question is why does the command take days (when I tried last time):

delete from words_games where created < now() - interval '12 month';

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stacey Haysler 2021-02-25 18:53:44 Code of Conduct: Hebrew Translation for Review
Previous Message Jonathan Amsterdam 2021-02-25 17:50:05 serializability and unique constraint violations