Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBob2-0008Gr-BF for pgsql-hackers@arkaria.postgresql.org; Fri, 19 May 2017 20:34:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dBob1-0001P2-UK for pgsql-hackers@arkaria.postgresql.org; Fri, 19 May 2017 20:33:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dBoZS-0004hT-Uw for pgsql-hackers@postgresql.org; Fri, 19 May 2017 20:32:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dBoZP-0007Lc-7B for pgsql-hackers@postgresql.org; Fri, 19 May 2017 20:32:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v4JKWBS2024404; Fri, 19 May 2017 16:32:11 -0400 From: Tom Lane To: "Higuchi, Daisuke" cc: Michael Paquier , "pgsql-hackers@postgresql.org" Subject: Re: [Bug fix]If recovery.conf has target_session_attrs=read-write, the standby fails to start. In-reply-to: <1803D792815FC24D871C00D17AE95905B1A4CA@g01jpexmbkw24> References: <1803D792815FC24D871C00D17AE95905B1A34A@g01jpexmbkw24> <1803D792815FC24D871C00D17AE95905B1A4CA@g01jpexmbkw24> Comments: In-reply-to "Higuchi, Daisuke" message dated "Fri, 19 May 2017 07:05:30 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24402.1495225931.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 19 May 2017 16:32:11 -0400 Message-ID: <24403.1495225931@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org "Higuchi, Daisuke" writes: > By adding flex option '-i', replication command parser could be more flex= ible.=20 > This option is already used for syncrep_scanner.c, so it is not strange t= o add for repl_scanner.c too.=20 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=3Den_US /usr/bin/flex -b -CF -p -i -o'syncrep_scanner.c' syncrep_sca= nner.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 --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers