<div dir="ltr">Hi Team,<div>Please find second version patches attached with updates suggested. Feel free to comment if more improvements are needed.</div><div><br></div><div>Regards</div><div>Umar Hayat</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 16, 2020 at 1:42 PM Umar Hayat &lt;<a href="mailto:m.umarkiani@gmail.com">m.umarkiani@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 16, 2020 at 1:28 PM Tatsuo Ishii &lt;<a href="mailto:ishii@sraoss.co.jp" target="_blank">ishii@sraoss.co.jp</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Umar,<br>
<br>
&gt;&gt; Replacing to red and green is a little bit confusing to me. What<br>
&gt;&gt; about denylist/allowlist? It&#39;s suggested by Linux.<br>
&gt;&gt;<br>
&gt;&gt; Yes, I read few Linux related articles and few other sources<br>
&gt; too. denylist/allowlist is used for decision where we either allow or deny.<br>
&gt; In our case, based on mutability factor we decide whether we should send<br>
&gt; query to primary or standby. So in-fact we are not blocking queries.<br>
<br>
That makes sense.<br>
<br>
&gt; IMO we can use<br>
&gt; 1. deny/allow ( e.g allow_function_list, deny_function_list,<br>
&gt; allow_query_pattern, allow_memqcache_table_list, deny_memqcache_table_list)<br>
&gt; ?<br>
&gt; 2. or descriptive term like mutable/immutable &amp; safe/unsafe based on pgpool<br>
&gt; usage ( e.g. mutable_function_list, immutable_function_list,<br>
&gt; safe_query_pattern, safe_memqcache_table_list, unsafe_memqcache_table_list<br>
&gt; ) ?<br>
<br>
I like 2. What about:<br>
<br>
black/white_function_list -&gt; write_function_list, read_only_function_list<br>
black_query_pattern -&gt; primay_routing_query_pattern<br>
black/white_memqcache_table_list -&gt; cache_unsafe/cache_safe_table_list<br>
<br></blockquote><div>Sounds good. I will send updated the patch with these terms.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
&gt;&gt; v1-002-Watchdog-master-leader<br>
&gt;&gt; &gt;    Replace master to &#39;leader&#39; for &#39;master&#39; watchdog nodes<br>
&gt;&gt;<br>
&gt;&gt; Sounds reasonable choice to me.<br>
&gt;&gt;<br>
&gt;&gt; &gt; v1-003-ALWAYS_MASTER-to-ALWAYS_PRIMARY<br>
&gt;&gt; &gt;   Replace backend_flagx option &#39;ALWAYS_MASTER&#39; with &#39;ALWAYS_PRIMARY&#39;<br>
&gt;&gt;<br>
&gt;&gt; Sounds good to me.<br>
&gt;&gt;<br>
&gt;&gt; &gt; v1-004-relcache_query_target--master-to-primary<br>
&gt;&gt; &gt;    Replace relcache_query_target option &#39;master&#39; to &#39;primary&#39;<br>
&gt;&gt;<br>
&gt;&gt; Sounds good to me.<br>
&gt;&gt;<br>
&gt;&gt; &gt; v1-005-master-slave-to-primarystandby<br>
&gt;&gt; &gt;    Replace Master/Slave with Primary/Secondary<br>
&gt;&gt;<br>
&gt;&gt; I think we could replace &quot;Master/Slave mode&quot; to &quot;Native replication<br>
&gt;&gt; mode&quot;.<br>
&gt;&gt;<br>
&gt;&gt; Using &quot;Primary&quot; as the replacemnet for &quot;Master&quot; sounds is confusing as<br>
&gt;&gt; there&#39;s &quot;Primary&quot; in the streaming replication mode.<br>
&gt;&gt;<br>
&gt;&gt; I will use Native Replication  mode in next patch.<br>
&gt; <br>
&gt;&gt; &gt; v1-006-masterslave-to-mainreplica<br>
&gt;&gt; &gt;    Replace Master Node with Main node ( node id with 0 or youngest live )<br>
&gt;&gt; &gt;    Couldn&#39;t translate with primary/leader as they were already used in<br>
&gt;&gt; &gt; different context<br>
&gt;&gt;<br>
&gt;&gt; Sounds good to me.<br>
&gt;&gt;<br>
&gt;&gt; &gt; v1-007-follow_master-and-recovery-and-misc<br>
&gt;&gt; &gt;    Replace follow_master with follow_primary with parameters replaced<br>
&gt;&gt; with<br>
&gt;&gt; &gt; new/old master with new/old main.<br>
&gt;&gt; &gt;    Replace some remaining occurrences of master with primary/main/leader<br>
&gt;&gt;<br>
&gt;&gt; Sounds good to me.<br>
&gt;&gt;<br>
&gt;&gt; &gt; In the above patches I didn&#39;t change older releases notes ( except for<br>
&gt;&gt; some<br>
&gt;&gt; &gt; links so they don&#39;t break and point to new terminology), history, TODO<br>
&gt;&gt; and<br>
&gt;&gt; &gt; Japanese Doc string.<br>
&gt;&gt;<br>
&gt;&gt; Sounds good to me. (I will take care of Japanese Doc string).<br>
&gt;&gt;<br>
&gt;&gt; &gt; Postmaster ( It&#39;s used around 150 times ) and very few other occurrences<br>
&gt;&gt; of<br>
&gt;&gt; &gt; &#39;master&#39; are still present.<br>
&gt;&gt;<br>
&gt;&gt; No objection from me.<br>
&gt;&gt;<br>
&gt;&gt; &gt; There are alot of inter-dependent terminologies and so I might have<br>
&gt;&gt; missed<br>
&gt;&gt; &gt; something. Looking at them as a whole makes some sense, changing one term<br>
&gt;&gt; &gt; might lead to inconsistency in some other areas.<br>
&gt;&gt; &gt; I tried to come up with the above terminologies, just to start<br>
&gt;&gt; &gt; conversation. Feel free to share feedback and comments.<br>
&gt;&gt;<br>
&gt;&gt; Thanks.<br>
&gt;&gt;<br>
&gt;&gt; &gt; Regards<br>
&gt;&gt; &gt; Umar Hayat<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Fri, Sep 4, 2020 at 8:03 AM Umar Hayat &lt;<a href="mailto:m.umarkiani@gmail.com" target="_blank">m.umarkiani@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; Hi Tatsuou Ishii,<br>
&gt;&gt; &gt;&gt; Yes I&#39;m planning for 4.2 and work is in progress, I will send patches in<br>
&gt;&gt; &gt;&gt; the upcoming week.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Regards<br>
&gt;&gt; &gt;&gt; Umar Hayat<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Thu, Sep 3, 2020 at 5:59 AM Tatsuo Ishii &lt;<a href="mailto:ishii@sraoss.co.jp" target="_blank">ishii@sraoss.co.jp</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Hi Umar,<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Now that we are getting closer to release Pgpool-II 4.2, I would like<br>
&gt;&gt; &gt;&gt;&gt; to know if you wish to bring your work into 4.2 or not. If you wish,<br>
&gt;&gt; &gt;&gt;&gt; can you please tell us the time line for the patch?<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt; On Fri, Jul 24, 2020 at 4:33 PM Tatsuo Ishii &lt;<a href="mailto:ishii@sraoss.co.jp" target="_blank">ishii@sraoss.co.jp</a>&gt;<br>
&gt;&gt; &gt;&gt;&gt; wrote:<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; Hi Hackers,<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; Recently PG community did a language clean up ( to make it more<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; inclusive )<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; for Server, including docs and code (see here<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; &lt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; <a href="https://www.postgresql.org/message-id/20200615182235.x7lch5n6kcjq4aue@alap3.anarazel.de" rel="noreferrer" target="_blank">https://www.postgresql.org/message-id/20200615182235.x7lch5n6kcjq4aue@alap3.anarazel.de</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;).<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; Most changes were related to renaming &quot;slave&quot; and &quot;master&quot;<br>
&gt;&gt; &gt;&gt;&gt; terminologies.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; Do we have any plans to make such changes to make pgpool<br>
&gt;&gt; consistent<br>
&gt;&gt; &gt;&gt;&gt; with<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; Server as well as in general Pgpool specific things ?<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; If we do have a plan, it would need multiple patches as it would<br>
&gt;&gt; &gt;&gt;&gt; affect<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; docs, code and configuration and samples.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; Let me know suggestions and thoughts and I can work on this.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; It seems the discussion is still on going? I mean it has not been<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; committed yet?<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; <a href="https://www.postgresql.org/message-id/flat/20200615182235.x7lch5n6kcjq4aue%40alap3.anarazel.de" rel="noreferrer" target="_blank">https://www.postgresql.org/message-id/flat/20200615182235.x7lch5n6kcjq4aue%40alap3.anarazel.de</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; Discussion is going on for two pending point which are not part of<br>
&gt;&gt; &gt;&gt;&gt; patches<br>
&gt;&gt; &gt;&gt;&gt; &gt; ( postmaster &amp; master branch) and one WIP patch(multi-master), rest<br>
&gt;&gt; of<br>
&gt;&gt; &gt;&gt;&gt; the<br>
&gt;&gt; &gt;&gt;&gt; &gt; 7 patches for that thread are committed.<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=229f8c219f8fffacc253eca6023eab10a16eb009" rel="noreferrer" target="_blank">https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=229f8c219f8fffacc253eca6023eab10a16eb009</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=5e7bbb528638c0f6d585bab107ec7a19e3a39deb" rel="noreferrer" target="_blank">https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=5e7bbb528638c0f6d585bab107ec7a19e3a39deb</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=e07633646a22734e85d7fc58a66855f747128e6b" rel="noreferrer" target="_blank">https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=e07633646a22734e85d7fc58a66855f747128e6b</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=9e101cf60612f4be4f855d7393531900c2986a55" rel="noreferrer" target="_blank">https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=9e101cf60612f4be4f855d7393531900c2986a55</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=09dfd430118f1fadf52a782db5ee161b1eb16337" rel="noreferrer" target="_blank">https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=09dfd430118f1fadf52a782db5ee161b1eb16337</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=7c89f8a5b810d10dae300ec58ea7d70024e9123e" rel="noreferrer" target="_blank">https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=7c89f8a5b810d10dae300ec58ea7d70024e9123e</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=a9a4a7ad565b136cbee735d4bb505d98d06da522" rel="noreferrer" target="_blank">https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=a9a4a7ad565b136cbee735d4bb505d98d06da522</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; The topic has not been discussed yet in pgpool-hackers, but I<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; personally think we need to do something soon or later anyway. My<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; concern is that that might require user-visible changes like:<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; master<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; slave<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; white_function_list<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; black_function_list<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; black_query_pattern_list<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; white_memqcache_table_list<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; black_memqcache_table_list<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; follow_master_command<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; relcache_query_target = master<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; [maybe more...]<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; Is it possible for you to come with a proposal for this so that<br>
&gt;&gt; pgpool<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; hackers could start discussion?<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; Best regards,<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; Tatsuo Ishii<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; SRA OSS, Inc. Japan<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt; Sure, I will create proposal for different sections and patches to<br>
&gt;&gt; &gt;&gt;&gt; discuss<br>
&gt;&gt; &gt;&gt;&gt; &gt; it further.<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt; Thanks<br>
&gt;&gt; &gt;&gt;&gt; &gt; Umar Hayat<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt;<br>
</blockquote></div></div>
</blockquote></div>