Re: copying databases w/ indexes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Yuji Shinozaki <ys2n(at)virginia(dot)edu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: copying databases w/ indexes
Date: 2003-08-14 19:47:16
Message-ID: 7165.1060890436@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Yuji Shinozaki <ys2n(at)virginia(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message jorge aleman 2003-08-14 21:05:00
Previous Message Yuji Shinozaki 2003-08-14 19:45:30 Re: copying databases w/ indexes