Re: small hstore bugfixes for 9.0 (w/patch)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: small hstore bugfixes for 9.0 (w/patch)
Дата
Msg-id 29458.1284602095@sss.pgh.pa.us
обсуждение исходный текст
Ответ на small hstore bugfixes for 9.0 (w/patch)  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Ответы Re: small hstore bugfixes for 9.0 (w/patch)  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список pgsql-bugs
Andrew Gierth <andrew@tao11.riddles.org.uk> writes:
> The gist one is just that the old code was abusing DatumGetHStoreP by
> applying it to something that wasn't an hstore. This didn't matter
> before the format upgrade code was put in, and it didn't show up in
> tests because you need to index a very large number of hstores before
> any problem shows up.

Actually, since ghstore is not marked toastable (and hardly needs to
be, since its max length is 24 bytes), that function seems completely
useless.  Why isn't it just

    PG_RETURN_POINTER(PG_GETARG_POINTER(0));

(compare gbt_decompress in btree_gist, for instance).

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: small hstore bugfixes for 9.0 (w/patch)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: small hstore bugfixes for 9.0 (w/patch)