Re: Queries containing ORDER BY and LIMIT started to work slowly

From: Rondat Flyag <rondatflyag(at)yandex(dot)ru>
To: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Cc: "pgsql-performance(at)lists(dot)postgresql(dot)org" <pgsql-performance(at)lists(dot)postgresql(dot)org>
Subject: Re: Queries containing ORDER BY and LIMIT started to work slowly
Date: 2023-08-29 18:55:56
Message-ID: 2854111693335271@mail.yandex.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

<div>I took the dump just to store it on another storage (external HDD). I didn't do anything with it.</div><div> </div><div>29.08.2023, 21:42, "Jeff Janes" &lt;jeff(dot)janes(at)gmail(dot)com&gt;:</div><blockquote><div><div> </div> <div><div>On Tue, Aug 29, 2023 at 1:47 PM Rondat Flyag &lt;<a href="mailto:rondatflyag(at)yandex(dot)ru" rel="noopener noreferrer">rondatflyag(at)yandex(dot)ru</a>&gt; wrote:</div><blockquote style="border-left-color:rgb( 204 , 204 , 204 );border-left-style:solid;border-left-width:1px;margin:0px 0px 0px 0.8ex;padding-left:1ex"><div>I have a legacy system that uses `Posgresql 9.6` and `Ubuntu 16.04`. Everything was fine several days ago even with standard Postgresql settings. I dumped a database with the compression option (maximum compression level -Z 9) in order to have a smaller size (`pg_dump --compress=9 database_name &gt; database_name.sql`). After that I got a lot of problems.</div></blockquote><div> </div><div>You describe taking a dump of the database, but don't describe doing anything with it.  Did you replace your system with one restored from that dump?  If so, did vacuum and analyze afterwards?</div><div> </div><div>Cheers,</div><div> </div><div>Jeff</div></div></div></blockquote>

Attachment Content-Type Size
unknown_filename text/html 1.2 KB

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Jeff Janes 2023-08-29 19:43:05 Re: Index bloat and REINDEX/VACUUM optimization for partial index
Previous Message Jeff Janes 2023-08-29 18:42:27 Re: Queries containing ORDER BY and LIMIT started to work slowly