From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Alexander Korotkov <akorotkov@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Get rid of backtracking in jsonpath_scan.l
Date: Tue, 26 Mar 2019 12:36:05 -0400
Message-ID: <de9f5dee-30ef-439e-dfe9-a02129adbe8f@2ndQuadrant.com> (raw)
In-Reply-To: <20190326152209.GA16374@alvherre.pgsql>
References: <20190326152209.GA16374@alvherre.pgsql>
On 3/26/19 11:22 AM, Alvaro Herrera wrote:
> On 2019-Mar-26, Andrew Dunstan wrote:
>
>> On 3/25/19 8:44 AM, Alexander Korotkov wrote:
>>> Get rid of backtracking in jsonpath_scan.l
>>>
>>> Non-backtracking flex parsers work faster than backtracking ones. So, this
>>> commit gets rid of backtracking in jsonpath_scan.l. That required explicit
>>> handling of some cases as well as manual backtracking for some cases. More
>>> regression tests for numerics are added.
>> jacana appears to be having trouble with this:
>>
>>
>> 2019-03-26 00:49:02.208 EDT [5c99ae9e.20cc:6] LOG: server process (PID 8368) was terminated by exception 0xC0000028
> 0xC0000028 is STATUS_BAD_STACK, per
> https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/596a1078-e883-4972-9bbc-49e60b...
> Not sure how credible/useful a stack trace is going to be.
>
Right, and getting stack traces isn't easy in any case. There is a
gadget from Google that is supposed to trap exceptions and produce a
stack trace on the fly in mingw. I'm going to take a look at it,
although loading it might be ... interesting.
cheers
andrew
--
Andrew Dunstan https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andrew.dunstan@2ndquadrant.com, alvherre@2ndquadrant.com, akorotkov@postgresql.org
Subject: Re: pgsql: Get rid of backtracking in jsonpath_scan.l
In-Reply-To: <de9f5dee-30ef-439e-dfe9-a02129adbe8f@2ndQuadrant.com>
References: <20190326152209.GA16374@alvherre.pgsql> <de9f5dee-30ef-439e-dfe9-a02129adbe8f@2ndQuadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox