Patch for catching incompatible types in fk constraints

Started by Stephan Szaboover 25 years ago5 messagespatches
Jump to latest
#1Stephan Szabo
sszabo@megazone23.bigpanda.com

This patch should catch cases where the types
in referencing and referenced columns of an fk constraint
aren't comparable using '=' at constraint definition time
rather than insert/update time.

Attachments:

typecheck71.patchtext/plain; charset=US-ASCII; name=typecheck71.patchDownload+682-105
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Stephan Szabo (#1)
Re: Patch for catching incompatible types in fk constraints

Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:

This patch should catch cases where the types
in referencing and referenced columns of an fk constraint
aren't comparable using '=' at constraint definition time
rather than insert/update time.

Are you intending this to go into 7.1.1 or 7.2?

It seems a bit large for a 7.1.1 patch, given the lack of testing
that we're likely to get for 7.1.1.

regards, tom lane

#3Stephan Szabo
sszabo@megazone23.bigpanda.com
In reply to: Tom Lane (#2)
Re: Patch for catching incompatible types in fk constraints

I was assuming 7.2, but I've been afraid
of losing it again (already had one computer
lose power supply eating my last version of
the patch) so I figured I'd send it.

On Sun, 15 Apr 2001, Tom Lane wrote:

Show quoted text

Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:

This patch should catch cases where the types
in referencing and referenced columns of an fk constraint
aren't comparable using '=' at constraint definition time
rather than insert/update time.

Are you intending this to go into 7.1.1 or 7.2?

It seems a bit large for a 7.1.1 patch, given the lack of testing
that we're likely to get for 7.1.1.

#4Bruce Momjian
bruce@momjian.us
In reply to: Stephan Szabo (#3)
Re: Patch for catching incompatible types in fk constraints

I was assuming 7.2, but I've been afraid
of losing it again (already had one computer
lose power supply eating my last version of
the patch) so I figured I'd send it.

I will put it on the outstanding patches page. Can't get lost there.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#5Bruce Momjian
bruce@momjian.us
In reply to: Stephan Szabo (#1)
Re: Patch for catching incompatible types in fk constraints

Applied. Thanks.

This patch should catch cases where the types
in referencing and referenced columns of an fk constraint
aren't comparable using '=' at constraint definition time
rather than insert/update time.

Content-Description:

[ Attachment, skipping... ]

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://www.postgresql.org/search.mpl

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026