JSON doc example (matchiness) - Mailing list pgsql-hackers

From Erik Rijkers
Subject JSON doc example (matchiness)
Date
Msg-id 13440f8b-4c1f-5875-c8e3-f3f65606af2f@xs4all.nl
Whole thread Raw
Responses Re: JSON doc example (matchiness)
List pgsql-hackers
The JSON doc has this example (to show the need for double backslash):

$ ? (@ like_regex "^\\d+$")


The example is not wrong exactly, and can be cast to jsonpath, but as-is 
can never match anything.

I think it'd be helpful to provide that example so that it more probably 
matches when the user does a quick trial.

Llet's change it to something like:

$.* ? (@ like_regex "^\\d+$")


Patch attached.

thanks,

Erik Rijkers


Attachment

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: plan with result cache is very slow when work_mem is not enough
Next
From: Tom Lane
Date:
Subject: Re: Draft back-branch release notes are up