Re: [HACKERS] [PATCH] Generic type subscripting - Mailing list pgsql-hackers

From Dmitry Dolgov
Subject Re: [HACKERS] [PATCH] Generic type subscripting
Date
Msg-id 20191219142030.uc6en2ci3rx2jc4c@localhost
Whole thread Raw
In response to Re: [HACKERS] [PATCH] Generic type subscripting  (Dmitry Dolgov <9erthalion6@gmail.com>)
Responses Re: [HACKERS] [PATCH] Generic type subscripting
List pgsql-hackers
> On Sun, Nov 10, 2019 at 01:32:08PM +0100, Dmitry Dolgov wrote:
>
> > I had to write new assignment logic reusing only some parts of setPath(),
> > because the loop in setPath() should be broken on every level.  During this
> > process, I decided to implement assignment behavior similar to PostgreSQL's
> > array behavior and added two new features:
> >  - creation of jsonb arrays/objects container from NULL values
> >  - appending/prepending array elements on the specified position, gaps filled
> >    with nulls (JavaScript has similar behavior)
>
> What is the reason for the last one?

I've splitted the last patch into polymorphic itself and jsonb array
behaviour changes, since I'm afraid it could be a questionable part.

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: non-exclusive backup cleanup is mildly broken
Next
From: Robert Haas
Date:
Subject: Re: obsolete comment in ExecBRUpdateTriggers()