From: | Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com> |
---|---|
To: | Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru>, Nikita Glukhov <n(dot)gluhov(at)postgrespro(dot)ru> |
Cc: | Oleg Bartunov <obartunov(at)postgrespro(dot)ru>, Michael Paquier <michael(at)paquier(dot)xyz>, Stas Kelvich <s(dot)kelvich(at)postgrespro(dot)ru>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>, David Steele <david(at)pgmasters(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Subject: | Re: jsonpath |
Date: | 2019-01-28 13:50:14 |
Message-ID: | eebc218c-7aaa-c425-6ba0-78b28c751830@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 1/28/19 1:22 AM, Alexander Korotkov wrote:
> On Sun, Jan 27, 2019 at 1:50 PM Alexander Korotkov
> <a(dot)korotkov(at)postgrespro(dot)ru> wrote:
>> On Sat, Jan 26, 2019 at 4:27 AM Alexander Korotkov
>> <a(dot)korotkov(at)postgrespro(dot)ru> wrote:
>>>
>>> On Wed, Jan 23, 2019 at 8:01 AM Alexander Korotkov
>>> <a(dot)korotkov(at)postgrespro(dot)ru> wrote:
>>>> Finally, I'm going to commit this if no objections.
>>>
>>> BTW, I decided to postpone commit for few days. Nikita and me are
>>> still working on better error messages.
>>
>> Updated patchset is attached. This patchset includes:
>>
>> * Improved error handling by Nikita, revised by me,
>> * Code beautification.
>>
>> So, I'm going to commit this again. This time seriously :)
>
> I'm really sorry for confusing people, but I've one more revision.
> This is my first time attempting to commit such a large patch.
>
I'm not sure what you're apologizing for, it simply shows how careful
you are when polishing such a large patch.
> Major changes are following:
> * We find it ridiculous to save ErrorData for possible latter throw.
> Now, we either throw an error immediately or return jperError. That
> also allows to get rid of unwanted changes in elog.c/elog.h.
OK.
> * I decided to change behavior of jsonb_path_match() to throw as less
> errors as possible. The reason is that it's used to implement
> potentially (patch is pending) indexable operator. Index scan is not
> always capable to throw as many errors and sequential scan. So, it's
> better to not introduce extra possible index scan and sequential scan
> results divergence.
>
Hmmm, can you elaborate a bit more? Which errors were thrown before and
are not thrown with the current patch version?
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Arne Roland | 2019-01-28 13:50:50 | RE: dsa_allocate() faliure |
Previous Message | Andrew Gierth | 2019-01-28 13:09:42 | Re: WIP: Avoid creation of the free space map for small tables |