From: Tom Lane <tgl@sss.pgh.pa.us>
To: Higuchi, Daisuke <higuchi.daisuke@jp.fujitsu.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [Bug fix]If recovery.conf has target_session_attrs=read-write, the standby fails to start.
Date: Fri, 19 May 2017 16:32:11 -0400
Message-ID: <24403.1495225931@sss.pgh.pa.us> (raw)
In-Reply-To: <1803D792815FC24D871C00D17AE95905B1A4CA@g01jpexmbkw24>
References: <1803D792815FC24D871C00D17AE95905B1A34A@g01jpexmbkw24>
<CAB7nPqQafwnsKAZ9sv9D8wE_3HU6gge6L0QuPXp9yK=4-2oC1A@mail.gmail.com>
<1803D792815FC24D871C00D17AE95905B1A4CA@g01jpexmbkw24>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
"Higuchi, Daisuke" <higuchi.daisuke@jp.fujitsu.com> writes:
> By adding flex option '-i', replication command parser could be more flexible.
> This option is already used for syncrep_scanner.c, so it is not strange to add for repl_scanner.c too.
Really? That wasn't an especially bright idea IMO, because it means that
the scanner's behavior will be dependent on the locale flex was run in.
An example here is that Turkish locale is likely to have a different
idea of what "FIRST" matches than other locales do. Indeed, if I run
the flex build in a non-C locale, I get warnings like
$ LANG=en_US /usr/bin/flex -b -CF -p -i -o'syncrep_scanner.c' syncrep_scanner.l
syncrep_scanner.l:91: warning, the character range [\200-\377] is ambiguous in a case-insensitive scanner
syncrep_scanner.l:91: warning, the character range [\200-\377] is ambiguous in a case-insensitive scanner
We'd probably be better off to implement case-insensitivity the hard way.
There is a reason why none of our other flex scanners use this switch.
While I'm whining ... it looks like the other flex options selected here
were cargo-culted in rather than being thought about. Surely we don't
run syncrep_scanner often enough, nor over so much data, that it's a
good tradeoff to use the options for larger tables.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, higuchi.daisuke@jp.fujitsu.com, michael.paquier@gmail.com
Subject: Re: [Bug fix]If recovery.conf has target_session_attrs=read-write, the standby fails to start.
In-Reply-To: <24403.1495225931@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox