Ricardo Vaz Mannrich <rvm_l1(at)silcom(dot)com(dot)br> writes:
> Is FOREIGN KEY so slow like that?
Not normally. Have you checked that the referencing and referenced
columns are of the same datatype? Have you done ANALYZE on both tables
recently?
regards, tom lane