<div dir="ltr">Thanks Ishii. However there is another compile issue with pgpool-walrecrunning that I failed to notice it earlier. Enum WalRcvState has been changed in postgres 9.3 as well and it has removed WALRCV_RUNNING state. Instead added WALRCV_STREAMING state.<div>
<br></div><div style>Please see the attached patch to fix that. This will make it compile-able but I am not sure if its an appropriate change. Because according to WalRcvRunning() function in postgres &quot;if (state != WALRCV_STOPPED)&quot; means its running but since previously only </div>
<div style>WALRCV_RUNNING was being checked, I have tested the WALRCV_STREAMING state only.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">--Asif<br><br><div class="gmail_quote">
On Wed, Apr 3, 2013 at 12:53 PM, Tatsuo Ishii <span dir="ltr">&lt;<a href="mailto:ishii@postgresql.org" target="_blank">ishii@postgresql.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have made slight change to your patch because of compiler<br>
warnings(htup_details.h needed). Also I think we shoudl apply the<br>
patch to V3.0 or higher as well because people might want to use the<br>
pgpool version and PostgreSQL 9.3 together.<br>
<br>
I&#39;m waiting for <a href="http://git.postgresql.org" target="_blank">git.postgresql.org</a> allows to push again...<br>
<div><div class="h5">--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese: <a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
<br>
&gt; Looks good. Thanks.<br>
&gt; --<br>
&gt; Tatsuo Ishii<br>
&gt; SRA OSS, Inc. Japan<br>
&gt; English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
&gt; Japanese: <a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
&gt;<br>
&gt;&gt; Sure. Here is the updated patch.<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt; --Asif<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Apr 2, 2013 at 5:33 PM, Tatsuo Ishii &lt;<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; In this you can put ifdef to adopt different version of PostgreSQL<br>
&gt;&gt;&gt; source codes. Can you please try in that way? Following is the similar<br>
&gt;&gt;&gt; technique used in sql/pgpool-regclass/pgpool-regclass.c.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; #if !defined(PG_VERSION_NUM) || (PG_VERSION_NUM &lt; 90200)<br>
&gt;&gt;&gt;         result = RangeVarGetRelid(rel, true);<br>
&gt;&gt;&gt; #else<br>
&gt;&gt;&gt;         /* RangeVarGetRelid() of PostgreSQL 9.2 or later, has third<br>
&gt;&gt;&gt;          * argument &quot;missing_ok&quot; which suppresses ERROR exception, but<br>
&gt;&gt;&gt;          * returns invlaid_oid. See include/catalog/namespace.h */<br>
&gt;&gt;&gt;         result = RangeVarGetRelid(rel, true, true);<br>
&gt;&gt;&gt; #endif<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Tatsuo Ishii<br>
&gt;&gt;&gt; SRA OSS, Inc. Japan<br>
&gt;&gt;&gt; English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
&gt;&gt;&gt; Japanese: <a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt; Yes its not yet released. I am compiling against latest postgres source<br>
&gt;&gt;&gt; &gt; i.e. 9.3devel master branch.<br>
&gt;&gt;&gt; &gt; Since pgpool-II master branch is also yet under development I thought it<br>
&gt;&gt;&gt; &gt; should be able to compile with it.<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; Regards,<br>
&gt;&gt;&gt; &gt; --Asif<br>
&gt;&gt;&gt; &gt; On Apr 2, 2013 4:50 PM, &quot;Tatsuo Ishii&quot; &lt;<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; Here is the patch to fix a compilation error I faced while compiling<br>
&gt;&gt;&gt; the<br>
&gt;&gt;&gt; &gt;&gt; &gt; pgpool2/sql/pgpool-recovery. I faced the following error:<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; pgpool-recovery.c:201:2: error: too few arguments to function<br>
&gt;&gt;&gt; &gt;&gt; &gt; ‘LookupExplicitNamespace’<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; I looked into it and found out that the signature<br>
&gt;&gt;&gt; &gt;&gt; &gt; of LookupExplicitNamespace function has been changed in the postgres<br>
&gt;&gt;&gt; &gt;&gt; code.<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; What version of PostgreSQL are you compiling pgpool-recovery.c<br>
&gt;&gt;&gt; &gt;&gt; against? I suspect you are compiling it against not-yet-released<br>
&gt;&gt;&gt; &gt;&gt; version of PostgreSQL.<br>
&gt;&gt;&gt; &gt;&gt; --<br>
&gt;&gt;&gt; &gt;&gt; Tatsuo Ishii<br>
&gt;&gt;&gt; &gt;&gt; SRA OSS, Inc. Japan<br>
&gt;&gt;&gt; &gt;&gt; English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
&gt;&gt;&gt; &gt;&gt; Japanese: <a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; pgpool-hackers mailing list<br>
&gt; <a href="mailto:pgpool-hackers@pgpool.net">pgpool-hackers@pgpool.net</a><br>
&gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-hackers" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-hackers</a><br>
</blockquote></div><br></div></div>