Keyword table constness in jsonpath scanner.

From: Mark G <markg735(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Keyword table constness in jsonpath scanner.
Date: 2019-03-16 18:54:18
Message-ID: CAEeOP_a-Pfy=U9-f=gQ0AsB8FrxrC8xCTVq+eO71-2VoWP5cag@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
constify-jsonpath-keywords.patch text/x-patch 796 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2019-03-16 19:51:37 Re: pgsql: Add support for hyperbolic functions, as well as log10().
Previous Message Pavel Stehule 2019-03-16 18:38:22 Re: jsonpath