libpg_query icon indicating copy to clipboard operation
libpg_query copied to clipboard

Support configuring the parser w/ relevant server settings?

Open ethanresnick opened this issue 7 years ago • 2 comments

My understanding is that some PG server options can change how parsing works (e.g., allow_nulls and standard_conforming_strings). Does libpg_query support configuring the parser with these settings, to match the server? Can/should it?

ethanresnick avatar Nov 10 '18 18:11 ethanresnick

@ethanresnick Today there is no mechanism to modify these settings, mostly since there are very limited use cases for setting them.

Do you have a reason to want to set them / what's the use case?

lfittl avatar Nov 11 '18 01:11 lfittl

Do you have a reason to want to set them

No, I was mostly just curious; my thought was that a user of this library who did have those settings applied on their server would likely want to match them in libpq_query, as it seems like having a guarantee of consistent parsing between the server and wherever libpq_query is running could be an important security property, and part of the reason people would want to use this library

ethanresnick avatar Nov 11 '18 17:11 ethanresnick