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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Francois-Guillaume Ribreau <postgresql(at)fgribreau(dot)com>
Cc: pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: Re: Best practice: call an internal postgresql function (e.g. raw_parser) from another C/Rust binary
Date: 2020-11-03 21:47:49
Message-ID: 1046595.1604440069@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Francois-Guillaume Ribreau <postgresql(at)fgribreau(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Francois-Guillaume Ribreau 2020-11-03 22:14:27 Re: Best practice: call an internal postgresql function (e.g. raw_parser) from another C/Rust binary
Previous Message Francois-Guillaume Ribreau 2020-11-03 21:38:19 Best practice: call an internal postgresql function (e.g. raw_parser) from another C/Rust binary