Re: [Bug fix]If recovery.conf has target_session_attrs=read-write, the standby fails to start.
Michael Paquier <michael.paquier@gmail.com>
From: Michael Paquier <michael.paquier@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: "Higuchi, Daisuke" <higuchi.daisuke@jp.fujitsu.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2017-05-20T00:27:54Z
Lists: pgsql-hackers
On Sat, May 20, 2017 at 5:32 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 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.
Do you think that it would be better to list the letter list for each
keyword in repl_scanner.l or have something more generic? As not that
many commands are added in the replication protocol, I would think
that this is more than enough for each command, say:
[Ss][Ll][Oo][Tt] { return K_SLOT; }
etc.
> 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.
Indeed, good catch.
--
Michael
Commits
-
Rethink flex flags for syncrep_scanner.l.
- 5c837ddd7092 10.0 landed
-
Capitalize SHOW when testing whether target_session_attrs=read-write.
- aa41bc794c51 10.0 landed