Re: cidr & inet types

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tim Conrad <conrad(at)external(dot)timconrad(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: cidr & inet types
Date: 2003-07-20 05:24:10
Message-ID: 20262.1058678650@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tim Conrad <conrad(at)external(dot)timconrad(dot)org> writes:
> While it's possible it's just my viewpoint, it seems that this is kind of weird
> behavior. If the datatype has any notion of networks and that data being
> 'unique' shouldn't it also know about netmasks?

A UNIQUE constraint means there are no two entries in the column that
are *equal*. I understand what you're after, but I don't really see why
you'd expect a UNIQUE constraint to do it for you.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jason Godden 2003-07-20 05:34:26 Re: Horrible pg_restore performance, please help
Previous Message Tom Lane 2003-07-20 05:16:10 Re: Horrible pg_restore performance, please help