Re: jsonb access operators inefficiency - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Re: jsonb access operators inefficiency
Date
Msg-id 5388B184.205@sigaev.ru
Whole thread Raw
In response to Re: jsonb access operators inefficiency  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
>
> If we're going to construct varlena objects inside a StringInfo, maybe
> we need a proper API for it. Isn't there a danger that data member of
> the StringInfo won't be properly aligned to allow us to do this? In any
> case, we should get most of the benefit of your patch without this
> "optimization".

I believe that StringInfo->data is palloc'ed, it means it's MAXALIGNed.

-- 
Teodor Sigaev                      E-mail: teodor@sigaev.ru                                      WWW:
http://www.sigaev.ru/



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: jsonb access operators inefficiency
Next
From: Teodor Sigaev
Date:
Subject: Re: jsonb access operators inefficiency