Search Postgresql Archives

Re: DELETE running at snail-speed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



gerhard <g.hintermayer@xxxxxxxx> writes:
> oops, should have thought about setting the foreign key constraint
> deferrable, maybe showing this in table definition (\d) would be a
> good idea.

Don't think that'll make any difference.  What *should* help is having
an index on downtime_detail.downtimeid.  As-is it's got to seqscan
downtime_detail to look for rows to be cascade-deleted.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux