Re: slow delete

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

 




by the way, there is a foreign key on another table that references the primary key col0 on table test.

Is there an index on the referencing field in the other table ? Postgres must find the rows referencing the deleted rows, so if you forget to index the referencing column, this can take forever.


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux