Re: [HACKERS] [Bug fix]If recovery.conf hastarget_session_attrs=read-write, the standby fails to start. - Mailing list pgsql-hackers

From Higuchi, Daisuke
Subject Re: [HACKERS] [Bug fix]If recovery.conf hastarget_session_attrs=read-write, the standby fails to start.
Date
Msg-id 1803D792815FC24D871C00D17AE95905B1A4CA@g01jpexmbkw24
Whole thread Raw
In response to Re: [HACKERS] [Bug fix]If recovery.conf has target_session_attrs=read-write,the standby fails to start.  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: [HACKERS] [Bug fix]If recovery.conf has target_session_attrs=read-write, the standby fails to start.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
From: Michael Paquier [mailto:michael.paquier@gmail.com]
>                     if (!PQsendQuery(conn,
>-                                     "show transaction_read_only"))
>+                                     "SHOW transaction_read_only"))
>Or perhaps the replication command parser could be made more flexible with lower-case characters for replication
commands?
By adding flex option '-i', replication command parser could be more flexible. 

# repl_scanner is compiled as part of repl_gram
 repl_gram.o: repl_scanner.c
+repl_scanner.c: FLEXFLAGS = -CF -p -i

This option is already used for syncrep_scanner.c, so it is not strange to add for repl_scanner.c too. 
Attached patch also fixes this problem. 

Regards, 
Daisuke, Higuchi 


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachment

pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: [HACKERS] Hash Functions
Next
From: Amit Langote
Date:
Subject: [HACKERS] Redundant check of em_is_child