Keyword table constness in jsonpath scanner.

Started by Mark Gover 7 years ago2 messageshackers
Jump to latest
#1Mark G
markg735@gmail.com

Hello all,

While looking over the new jsonpath stuff I noticed the keyword table
wasn't declared const. Shouldn't the table and the actual keyword
strings both be declared const? Perhaps something like the attached
(untested) patch.

-Mark

Attachments:

constify-jsonpath-keywords.patchtext/x-patch; charset=US-ASCII; name=constify-jsonpath-keywords.patchDownload+3-3
#2Alexander Korotkov
a.korotkov@postgrespro.ru
In reply to: Mark G (#1)
Re: Keyword table constness in jsonpath scanner.

On Sat, Mar 16, 2019 at 10:47 PM Mark G <markg735@gmail.com> wrote:

While looking over the new jsonpath stuff I noticed the keyword table
wasn't declared const. Shouldn't the table and the actual keyword
strings both be declared const? Perhaps something like the attached
(untested) patch.

Looks good to me. Pushed, thanks.

------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company