Re: Best practice: call an internal postgresql function (e.g. raw_parser) from another C/Rust binary - Mailing list pgsql-novice

From Francois-Guillaume Ribreau
Subject Re: Best practice: call an internal postgresql function (e.g. raw_parser) from another C/Rust binary
Date
Msg-id CAOpx104PxGDDLPqzbWAPSUSKkF29NstEcm8myNB47z8ogW69tQ@mail.gmail.com
Whole thread Raw
In response to Re: Best practice: call an internal postgresql function (e.g. raw_parser) from another C/Rust binary  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
wow thanks, found it (I think) https://github.com/lfittl/libpg_query !

On Tue, Nov 3, 2020 at 10:47 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Francois-Guillaume Ribreau <postgresql@fgribreau.com> writes:
> I wonder what is the easiest way to extract and (ab)use the raw_parser
> function out of postgresql codebase, as a library, so I can use it from my
> own code in Rust.

You're not the first to have thought of that.  I'm failing to locate
any relevant threads in our archives, but I distinctly recall having
heard of somebody who'd made a standalone version of our lexer+grammar.
You might try searching on github.

(I make no warranties about how up-to-date any such project may be.)

                        regards, tom lane

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Best practice: call an internal postgresql function (e.g. raw_parser) from another C/Rust binary
Next
From: "Hilbert, Karin"
Date:
Subject: Permission Denied to Regular Read/Write User to Create New Partitioned Table