Re: nested hstore patch - FailedAssertion("!(value->array.nelems == 1)

Поиск
Список
Период
Сортировка
Искать
От
Erik Rijkers
Тема
Re: nested hstore patch - FailedAssertion("!(value->array.nelems == 1)
Дата
Msg-id
0f163e22f9a4ed756b0c560b7bda376c.squirrel@webmail.xs4all.nl
Ответ на
Re: nested hstore patch (Andrew Dunstan)
Список
Дерево обсуждения
nested hstore patch Teodor Sigaev <teodor@sigaev.ru>
Re: nested hstore patch Andres Freund <andres@2ndquadrant.com>
Re: nested hstore patch Oleg Bartunov <obartunov@gmail.com>
Re: nested hstore patch (sgml typo) "Erik Rijkers" <er@xs4all.nl>
Re: nested hstore patch Andrew Dunstan <andrew@dunslane.net>
Re: nested hstore patch Andrew Dunstan <andrew@dunslane.net>
Re: nested hstore patch Hannu Krosing <hannu@2ndQuadrant.com>
Re: nested hstore patch Robert Haas <robertmhaas@gmail.com>
Re: nested hstore patch Bruce Momjian <bruce@momjian.us>
Re: nested hstore patch Robert Haas <robertmhaas@gmail.com>
Re: nested hstore patch Andrew Dunstan <andrew@dunslane.net>
Re: nested hstore patch Andrew Dunstan <andrew@dunslane.net>
Re: nested hstore patch "David E. Wheeler" <david@justatheory.com>
Re: nested hstore patch Hannu Krosing <hannu@2ndQuadrant.com>
Re: nested hstore patch Andrew Dunstan <andrew@dunslane.net>
Re: nested hstore patch Hannu Krosing <hannu@2ndQuadrant.com>
Re: nested hstore patch Bruce Momjian <bruce@momjian.us>
Re: nested hstore patch Peter Eisentraut <peter_e@gmx.net>
Re: nested hstore patch Peter Eisentraut <peter_e@gmx.net>
Re: nested hstore patch "David E. Wheeler" <david@justatheory.com>
On Mon, January 13, 2014 16:36, Andrew Dunstan wrote:
> A new version of the patch is attached. It includes all of Erik's docs

> [ nested_hstore_and_jsonb-2.patch ]


This crashes the server:

testdb=#  select  'x' || ('a=>"1"':: hstore) ;
The connection to the server was lost. Attempting reset: Failed.

logging:
TRAP: FailedAssertion("!(value->array.nelems == 1)", File: "jsonb_support.c", Line: 904)
2014-01-15 00:32:01.854 CET 1206 LOG:  server process (PID 3918) was terminated by signal 6: Aborted
2014-01-15 00:32:01.854 CET 1206 DETAIL:  Failed process was running: select  'x' || ('a=>"1"':: hstore) ;


Btw, I find it strange that:

testdb=#  select  ('a=>""':: hstore) #%> '{a}' ;?column?
----------""
(1 row)

so that:

Time: 0.641 ms
testdb=#  select ( ('a=>""':: hstore) #%> '{a}' ) = '' ;?column?
----------f
(1 row)

testdb=#  select ( ('a=>""':: hstore) #%> '{a}' ) = '""' ;?column?
----------t
(1 row)

Maybe there is a rationale, but it seems to me that  ('a=>""':: hstore) #%> '{a}'
should deliver the empty string '', and not two double quotes.


Thanks,

Erik Rijkers








В списке pgsql-hackers по дате отправления
От: Dave Chinner
Дата:
От: Peter Geoghegan
Дата:
FAQ