pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Get rid of backtracking in jsonpath_scan.l
Date: Tue, 26 Mar 2019 08:31:15 -0400
Message-ID: <5083bd0a-7cc4-fff3-284b-7492a830fa1d@2ndQuadrant.com> (raw)
In-Reply-To: <E1h8OxU-00066d-Ji@gemulon.postgresql.org>
References: <E1h8OxU-00066d-Ji@gemulon.postgresql.org>


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
2019-03-26 00:49:02.208 EDT [5c99ae9e.20cc:7] DETAIL:  Failed process was running: select '$ ? (@ like_regex "pattern" flag "a")'::jsonpath;
2019-03-26 00:49:02.208 EDT [5c99ae9e.20cc:8] HINT:  See C include file "ntstatus.h" for a description of the hexadecimal value.
2019-03-26 00:49:02.208 EDT [5c99ae9e.20cc:9] LOG:  terminating any other active server processes

cheers

andrew

-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (14+ messages)  latest in thread

Message-ID: <5083bd0a-7cc4-fff3-284b-7492a830fa1d@2ndQuadrant.com>
Permalink:  ../5083bd0a-7cc4-fff3-284b-7492a830fa1d@2ndQuadrant.com/
Also on:    postgresql.org/message-id/5083bd0a-7cc4-fff3-284b-7492a830fa1d@2ndQuadrant.com

 · 

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 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, akorotkov@postgresql.org
  Subject: Re: pgsql: Get rid of backtracking in jsonpath_scan.l
  In-Reply-To: <5083bd0a-7cc4-fff3-284b-7492a830fa1d@2ndQuadrant.com>
  References: <E1h8OxU-00066d-Ji@gemulon.postgresql.org> <5083bd0a-7cc4-fff3-284b-7492a830fa1d@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