public inbox for [email protected]  
help / color / mirror / Atom feed
From: Francois-Guillaume Ribreau <[email protected]>
To: Tom Lane <[email protected]>
Cc: [email protected]
Subject: Re: Best practice: call an internal postgresql function (e.g. raw_parser) from another C/Rust binary
Date: Tue, 3 Nov 2020 23:14:27 +0100
Message-ID: <CAOpx104PxGDDLPqzbWAPSUSKkF29NstEcm8myNB47z8ogW69tQ@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CAOpx105CqjtkDLxyT6P0ftyWCHgigm7jhutonbitCg-YUw5eGQ@mail.gmail.com>
	<[email protected]>

wow thanks, found it (I think) https://github.com/lfittl/libpg_query !

On Tue, Nov 3, 2020 at 10:47 PM Tom Lane <[email protected]> wrote:

> Francois-Guillaume Ribreau <[email protected]> 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
>


view thread (4+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Best practice: call an internal postgresql function (e.g. raw_parser) from another C/Rust binary
  In-Reply-To: <CAOpx104PxGDDLPqzbWAPSUSKkF29NstEcm8myNB47z8ogW69tQ@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox