Re: delete taking long time - Mailing list pgsql-sql

From Andreas Kretschmer
Subject Re: delete taking long time
Date
Msg-id 62238924.9201.1458092092795.JavaMail.open-xchange@oxweb01.ims-firmen.de
Whole thread Raw
In response to Re: delete taking long time  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-sql
> 
> Given the lack of indexes on the one table that is shown I suspect this is
> the most likely cause (FK + indexes)
> 

right, there should be an index on ts. If it is a 9.5 AND the rows are ordered
on ts a BRIN-index would be fine.
If not - a normal index. How many rows contains the table?

-- 
Andreas Kretschmer
http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-sql by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: delete taking long time
Next
From: "Mike Sofen"
Date:
Subject: Re: delete taking long time