Allow subscripting of hstore values.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 0ec5f7e78231a621a1d96c4bfedc4a1849a6c6cc
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2020-12-11T23:58:21Z
Releases: 14.0
Allow subscripting of hstore values.

This is basically a finger exercise to prove that it's possible for
an extension module to add subscripting ability.  Subscripted fetch
from an hstore is not different from the existing "hstore -> text"
operator.  Subscripted update does seem to be a little easier to
use than the traditional update method using hstore concatenation,
but it's not a fundamentally new ability.

However, there may be some value in the code as sample code, since
it shows what's basically the minimum-complexity way to implement
subscripting when one needn't consider nested container objects.

Discussion: https://postgr.es/m/3724341.1607551174@sss.pgh.pa.us

Files

Documentation touched

Discussion