Re: macaddr data type issue

From: Alex Pilosov <alex(at)pilosoft(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: macaddr data type issue
Date: 2001-08-21 19:39:00
Message-ID: Pine.BSO.4.10.10108211537580.25781-100000@spider.pilosoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 21 Aug 2001, Tom Lane wrote:

> SQL-approved way to represent "missing data" is as a NULL; there's no
> rationale I can see for treating an all-zeroes address like this.
>
> There's also a special case in macaddr_in that accepts an empty input
> string as meaning an all-zeroes address. This seems bogus as well.
>
> I'm inclined to rip out both special cases, so that an all-zeroes MAC
> address is handled exactly like any other address. Comments?
Completely agreed. I stepped on this rake once. All zeros is a valid mac
address and is very different from null.

Thanks

--
Alex Pilosov | http://www.acedsl.com/home.html
CTO - Acecape, Inc. | AceDSL:The best ADSL in the world
325 W 38 St. Suite 1005 | (Stealth Marketing Works! :)
New York, NY 10018 |

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew McMillan 2001-08-21 20:03:26 Re: [HACKERS] Postgresql log analyzer
Previous Message Ryan C. Bonham 2001-08-21 19:36:50 RE: UPDATE: ERROR: relation_info: Relation 41069 not fo und