public inbox for [email protected]
help / color / mirror / Atom feedFrom: Bzzzz <[email protected]>
To: hubert depesz lubaczewski <[email protected]>
Cc: Laurenz Albe <[email protected]>
Cc: [email protected]
Subject: Re: hstore or jsonb ?
Date: Tue, 15 Nov 2022 19:51:55 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
On Tue, 15 Nov 2022 18:32:24 +0100
hubert depesz lubaczewski <[email protected]> wrote:
> > But is there anything that hstore can that JSON cannot?
>
> It's faster for some things:
> https://www.depesz.com/2021/04/21/getting-value-from-dynamic-column-in-pl-pgsql-triggers/
Thanks for the URL, the difference is indeed quite large.
> And it can be trivially used to check for differences in update
> triggers:
> hstore(NEW) - hstore(OLD)
I didn't knew that (and it's not part of the official doc :/)
> It's "abusability" is lower thanks to lack of nesting.
Yeah, it is a problem as some specs can contain a list, I discovered
that last night - so jsonb it'll be.
Jean-Yves
view thread (9+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: hstore or jsonb ?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox