Re: contrib/intarray vs empty arrays

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: contrib/intarray vs empty arrays
Дата
Msg-id 4136ffa0904090629o1aa3f5daw435b7ff58df9fea9@mail.gmail.com
обсуждение исходный текст
Ответ на Re: contrib/intarray vs empty arrays  (Teodor Sigaev <teodor@sigaev.ru>)
Список pgsql-hackers
2009/4/9 Teodor Sigaev <teodor@sigaev.ru>:
> contains - all elements of second array are contained in the first one.
> Empty array has no element, so it can't be contained.

That sounds wrong. A <contains> B should surely always be true if B is
empty. ie "for all x, x in B implies x in A". Or put another way,
"contains" just means "is a superset of" and all sets are supersets of
the empty set (even the empty set).

-- 
greg


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

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: Re: contrib/intarray vs empty arrays
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Translation conventions