Re: @ versus ~, redux

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: @ versus ~, redux
Дата
Msg-id 87wt8khrpt.fsf@enterprisedb.com
обсуждение исходный текст
Ответ на Re: @ versus ~, redux  (Matteo Beccati <php@beccati.com>)
Ответы Re: @ versus ~, redux  (Gregory Stark <gsstark@mit.edu>)
Список pgsql-hackers
Matteo Beccati <php@beccati.com> writes:

> Tom Lane ha scritto:
>> OK, so if everyone is leaning to #3, the name game remains to be played.
>> Do we all agree on this:
>>
>>     "x @> y" means "x contains y"
>>     "x @< y" means "x is contained in y"
>>
>> Are we all prepared to sign a solemn oath to commit hara-kiri if we
>> invent a new datatype that gets this wrong?  No?  Maybe these still
>> aren't obvious enough.
>
> Does this mean that also contrib/ltree operators will likely change for
> consistency?
>
> ltree @> ltree
>     - returns TRUE if left argument is an ancestor of right argument (or
> equal).
> ltree <@ ltree
>     - returns TRUE if left argument is a descendant of right argument (or
> equal).

If you consider ltree entries to be sets containing all their children then
those sound consistent.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Optimizing prepared statements
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: GRANT role docs inconsistency