<div dir="ltr"><div>Hi Tatsuo</div><div><br></div>Thanks for your feedback, I have made the suggested changes and pushed to the github repository.<div><br></div><div>--Usama </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Jul 11, 2013 at 3:39 AM, 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">
Usama,<br>
<br>
Thanks for the proposal. In over all I believe this will greatly help<br>
people who are trying to understand the pgpool-II source code.  After<br>
pgpool-II 3.3 is out (which is expected in this July), we could apply<br>
the changes if there&#39;s no objection from pgpool-II hackers.<br>
<div class="im"><br>
&gt; Since the pgpool-II code base has grown in recent times and the code tree<br>
&gt; is not very much organised into directories i.e There are<br>
&gt; no separate directories for source and include files, and most of the pgpool-II<br>
&gt; source resides in top level pgpool2 directory, This makes it a little hard<br>
&gt; to get the quick understanding of the code for new developers,<br>
&gt; and maintenance of code will become more and more difficult with growth in<br>
&gt; code base.<br>
&gt;<br>
&gt; So me and Tatsuo has been working on the reorganisation of pgpool-II source<br>
&gt; tree and have came up with the directory structure.<br>
&gt; The purposed source tree for the pgpool-II is to contains following<br>
&gt; directories.<br>
<br>
</div>Here are small suggestions.<br>
<br>
I think you missed to create src/include/query_cache and you should<br>
move src/include/utils/pool_memqcache.h there.<br>
<br>
Also I think src/rewrite/parallel_query should not under src/rewrite<br>
because staffs under parallel_query are not for general query<br>
rewriting, but for parallel_query. They look similar in implementation<br>
but their aims are completely different. If you do that way, it will<br>
give enough confusion to those who are studying pgpool-II source code.<br>
--<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>
<div class="HOEnZb"><div class="h5"><br>
&gt; pgpool2<br>
&gt; |  --doc<br>
&gt; |  --m4<br>
&gt; |  --pgpool_adm<br>
&gt; |  --src<br>
&gt; |  |  --auth<br>
&gt; |  |  --config<br>
&gt; |  |  --context<br>
&gt; |  |  --include<br>
&gt; |  |  |  --auth<br>
&gt; |  |  |  --context<br>
&gt; |  |  |  --parser<br>
&gt; |  |  |  --pcp<br>
&gt; |  |  |  --protocol<br>
&gt; |  |  |  --rewrite<br>
&gt; |  |  |  --utils<br>
&gt; |  |  |  --watchdog<br>
&gt; |  |  --libs<br>
&gt; |  |  |  --pcp<br>
&gt; |  |  --main<br>
&gt; |  |  --parser<br>
&gt; |  |  --pcp_con<br>
&gt; |  |  --protocol<br>
&gt; |  |  --query_cache<br>
&gt; |  |  --redhat<br>
&gt; |  |  |  --rpm_installer<br>
&gt; |  |  --rewrite<br>
&gt; |  |  |  --parallel_query<br>
&gt; |  |  --sample<br>
&gt; |  |  --sql<br>
&gt; |  |  |  --pgpool-recovery<br>
&gt; |  |  |  --pgpool-regclass<br>
&gt; |  |  --streaming_replication<br>
&gt; |  |  --system_db<br>
&gt; |  |  --test<br>
&gt; |  |  |  --C<br>
&gt; |  |  |  --jdbc<br>
&gt; |  |  |  |  --expected<br>
&gt; |  |  |  --parser<br>
&gt; |  |  |  |  --expected<br>
&gt; |  |  |  |  --input<br>
&gt; |  |  |  --pdo-test<br>
&gt; |  |  |  |  --mod<br>
&gt; |  |  |  |  --SQLlist<br>
&gt; |  |  |  --regression<br>
&gt; |  |  |  |  --tests<br>
&gt; |  |  |  |  |  --001.load_balance<br>
&gt; |  |  |  |  |  --002.native_replication<br>
&gt; |  |  |  |  |  --003.failover<br>
&gt; |  |  |  |  |  --050.bug58<br>
&gt; |  |  |  |  |  --051.bug60<br>
&gt; |  |  |  |  |  --052.do_query<br>
&gt; |  |  |  |  |  --053.insert_lock_hangs<br>
&gt; |  |  |  --timestamp<br>
&gt; |  |  |  |  --expected<br>
&gt; |  |  |  |  --input<br>
&gt; |  |  --tools<br>
&gt; |  |  |  --pcp<br>
&gt; |  |  |  --pgmd5<br>
&gt; |  |  --utils<br>
&gt; |  |  --watchdog<br>
&gt; |  |  |  --test<br>
&gt;<br>
&gt;<br>
&gt; I have created a git repository on github (<a href="https://github.com/codeforall" target="_blank">https://github.com/codeforall</a><br>
&gt; /pgpool2.git) with the purposed directory structure.<br>
&gt; and the attached (pgpool2_code_tree.txt) file contains the complete list<br>
&gt; directories along with files for the purposed directory structure.<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; Regards<br>
&gt; Muhammad Usama<br>
</div></div></blockquote></div><br></div>