"Jim C. Nasby" <decibel@xxxxxxxxxxx> writes: > Well, neither of those should take very long at all. What's EXPLAIN > ANALYZE show? Indeed ... now I'm wondering about foreign key checks. Are there any tables with foreign keys linking to usuario? If so, the problem is likely unindexed foreign key columns, or maybe a datatype mismatch between foreign key and referenced column. regards, tom lane