Re: Row pattern recognition

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: shinsj4653(at)gmail(dot)com
Cc: assam258(at)gmail(dot)com, ishii(at)postgresql(dot)org, jian(dot)universality(at)gmail(dot)com, vik(at)postgresfriends(dot)org, pgsql-hackers(at)postgresql(dot)org, zsolt(dot)parragi(at)percona(dot)com, sjjang112233(at)gmail(dot)com, er(at)xs4all(dot)nl, jacob(dot)champion(at)enterprisedb(dot)com, david(dot)g(dot)johnston(at)gmail(dot)com, peter(at)eisentraut(dot)org, li(dot)evan(dot)chao(at)gmail(dot)com
Subject: Re: Row pattern recognition
Date: 2026-07-19 05:11:19
Message-ID: 20260719.141119.584043139707763253.ishii@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

> Hi Henson, and hackers,
>
> Henson has been mentoring me and suggested I try building and running
> this patch, so this is a first-timer's build-and-use note, not a real
> review.

Thanks for the testing.

> I built cf/4460 (v49) on macOS 15 / Apple Silicon (arm64), meson with
> cassert and debug. It built without errors. One small thing worth
> flagging: it emits two -Wmacro-redefined warnings for INITIAL, in the
> generated scanners (backend scan.c and ecpg pgc.c). The new INITIAL
> keyword ends up as a token macro (#define INITIAL in gram.h) that
> collides with flex's built-in INITIAL start condition (#define INITIAL 0
> in the scanner). A plain master build here is warning-clean (no INITIAL
> keyword there), so this looks specific to the patch. Seen on clang; not
> sure if it's known or turns up on other compilers.

Here (Ubuntu 24.0 LTS + bison 3.8.2) I only see enum in gram.h,

# define YYTOKENTYPE
enum yytokentype
{
:
:
INITIAL = 472, /* INITIAL */

In addition you see #define INITIAL in gram.h?

If yes, probably we should consider change "INITIAL" to something like
"INITIAL_P" to avoid the collision?

Regards,
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2026-07-19 06:32:27 Re: Row pattern recognition
Previous Message Julien Rouhaud 2026-07-19 04:48:05 DROP TABLE of table marked as dumpable in extension