pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Yuji Shinozaki <ys2n@virginia.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: copying databases w/ indexes
Date: Thu, 14 Aug 2003 15:47:16 -0400
Message-ID: <7165.1060890436@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.44.0308141536460.11973-100000@atg2000.itc.virginia.edu>
References: <Pine.LNX.4.44.0308141536460.11973-100000@atg2000.itc.virginia.edu>

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



view thread (6+ messages)

Message-ID: <7165.1060890436@sss.pgh.pa.us>
Permalink:  ../7165.1060890436@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7165.1060890436@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ys2n@virginia.edu
  Subject: Re: copying databases w/ indexes
  In-Reply-To: <7165.1060890436@sss.pgh.pa.us>
  References: <Pine.LNX.4.44.0308141536460.11973-100000@atg2000.itc.virginia.edu> <7165.1060890436@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox