Re: How to build a new grammer for pg? - Mailing list pgsql-hackers

From Julien Rouhaud
Subject Re: How to build a new grammer for pg?
Date
Msg-id 20230801115807.6u5snohi662k5zyp@jrouhaud
Whole thread Raw
Responses Re: How to build a new grammer for pg?
List pgsql-hackers
Hi,

On Tue, Aug 01, 2023 at 07:36:36PM +0800, jacktby wrote:
> <span style="font-family: Helvetica, Helvetica, 微软雅黑, 宋体;">Hi, I’m trying to develop a new grammar for pg, can
+you give me a code example to reference?</span><span>

It's unclear to me whether you want to entirely replace the flex/bison parser
with something else or just add some new bison rule.

If the latter, it really depends on what you change to achieve exactly.  I
guess you could just look at the gram.y git history until you find something
close enough to your use case and get inspiration from that.



pgsql-hackers by date:

Previous
From: shveta malik
Date:
Subject: Re: Synchronizing slots from primary to standby
Next
From: David Rowley
Date:
Subject: Re: Performance degradation on concurrent COPY into a single relation in PG16.