Re: [HACKERS] macaddr stuff !

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] macaddr stuff !
Дата
Msg-id 199903220504.AAA04631@candle.pha.pa.us
обсуждение исходный текст
Ответ на macaddr stuff !  (Pawel Pierscionek <pawel@astercity.net>)
Ответы Re: [HACKERS] macaddr stuff !  ("D'Arcy" "J.M." Cain <darcy@druid.net>)
Список pgsql-hackers
> Hi,
> 
>   I have no one to turn to. I've tried here & there but got no answer.
>   Why is there is a problem creating unique indices on macaddr columns even
>   if there ARE NO (checked by count on distinct,group by) duplicated keys ?
> 
>   And finally :
> 
>   create table tmac (i int4,mac macaddr);
>   insert int table tmac (i) values (1);
>   insert int table tmac (i) values (2);
>   insert int table tmac (i) values (3);
>   select * from tmac where mac='01:02:03:04:05:06';

I have fixed the problem in the current development tree.  The problem
is nulls in that IP field.

I added PointerIsValid() checks to backend/utils/adt/mac.c.

This will be fixed in 6.5 beta.  This was a known problem with the INET
types, but I did not realize how bad it was.

[D'Arcy, I just added PointerIsValid() checks that were similar to other
type routines.]

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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Operator '%'
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] aggregation memory leak and fix