Search Postgresql Archives

Deleting orphaned records (not exists is very slow)

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

 



What is the best strategy for deleting orphaned records from a large table.

The usual NOT IN is very slow so there must be a better way in
postgres for dealing with these.

I know it's best not to have the orphans in the first place but in
this case it happened and I need to clean up before I can put in some
referential integrity.

-- 
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