Re: Foreign key type checking patch

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Foreign key type checking patch
Date: 2004-03-01 16:54:07
Message-ID: 296.1078160047@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> writes:
> Here is a proposed patch against 7.4.1 to check exact match
> of foreign key types wrt the referenced keys, and to show
> a warning if this is not the case.

I think that this concern may be obsolete in CVS tip, at least for the
cases where we have indexable cross-type operators. The correct way
to do this would be to look at the operator found by oper() and see
whether it's indexable.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rob Fielding 2004-03-01 17:30:41 Re: WAL Optimisation - configuration and usage
Previous Message Dana Hudes 2004-03-01 16:54:01 Re: User defined types -- Social Security number...

Browse pgsql-patches by date

  From Date Subject
Next Message Fabien COELHO 2004-03-01 17:58:43 Re: Foreign key type checking patch
Previous Message Fabien COELHO 2004-03-01 15:35:58 Foreign key type checking patch