Re: copying databases w/ indexes - Mailing list pgsql-admin

From Tom Lane
Subject Re: copying databases w/ indexes
Date
Msg-id 7165.1060890436@sss.pgh.pa.us
Whole thread Raw
In response to copying databases w/ indexes  (Yuji Shinozaki <ys2n@virginia.edu>)
List pgsql-admin
Yuji Shinozaki <ys2n@virginia.edu> writes:
> See my other reply, but the problem was that I had a foreign key
> constraint between an integer and varchar. (The column was a varchar and
> the foreign key was an integer field).  Seems to me postgres shouldn't
> have allowed me to do this at all, but I guess it did a slow automatic
> type conversion.  So, reindexing was deathly slow.

There was some talk recently of spitting out a NOTICE when the
referenced columns aren't the same type as the referencing columns.
It's not done yet, but it's starting to seem like a good idea.

            regards, tom lane

pgsql-admin by date:

Previous
From: Yuji Shinozaki
Date:
Subject: Re: copying databases w/ indexes
Next
From: Yuji Shinozaki
Date:
Subject: Re: copying databases w/ indexes