Determining if an hstore is empty

Поиск
Список
Период
Сортировка
От Wells Oliver
Тема Determining if an hstore is empty
Дата
Msg-id CAOC+FBXFrSCgq1kN+5oJ=UTpy4yGM=dy7qemNbDedYGRjFB=zQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Determining if an hstore is empty  (Sergey Konoplev <gray.ru@gmail.com>)
Список pgsql-general
What's the canonical way of doing this? Various failed attempts include:

select array_length(%%'a=>1'::hstore -  'a=>1'::hstore, 1)

select array_length(%%('a=>1'::hstore -  'a=>1'::hstore), 1)

select array_length(avals('a=>1'::hstore -  'a=>1'::hstore), 1);

select array_length(akeys('a=>1'::hstore -  'a=>1'::hstore), 1);

select skeys('a=>1'::hstore -  'a=>1'::hstore) is null

select 'a=>1'::hstore -  'a=>1'::hstore is null

Etc.

--
Wells Oliver
wellsoliver@gmail.com

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

Предыдущее
От: Andrew Satori
Дата:
Сообщение: Re: fascinating article on postgresql mailing lists
Следующее
От: Péter Kovács
Дата:
Сообщение: Re: Cache lookup failed for relation