<div dir="ltr"><div><div style>Hi</div><div style><br></div><div style>Since the <span class="" style="background-color:yellow"><span class="" style>pgpool</span></span>-II code base has grown in recent times and the code tree is not very much organised into directories i.e There are no separate directories for source and include files, and most of the <span class="" style="background-color:yellow"><span class="" style>pgpool</span></span>-II source resides in top level <span class="" style="background-color:yellow">pgpool2</span> directory, This makes it a little hard to get the quick understanding of the code for new developers, and maintenance of code will become more and more difficult with growth in code base.</div>
<div style><br></div><div style>So me and <span class="" style="background-color:yellow"><span class="" style>Tatsuo</span></span> has been working on the reorganisation of <span class="" style="background-color:yellow"><span class="" style>pgpool</span></span>-II source tree and have came up with the directory structure.</div>
<div style>The purposed source tree for the <span class="" style="background-color:yellow"><span class="" style>pgpool</span></span>-II is to contains following directories.</div><div style><br></div><div style><font face="courier new, monospace">pgpool2</font></div>
<div><font face="courier new, monospace">|  --doc</font></div><div><font face="courier new, monospace">|  --m4</font></div><div><font face="courier new, monospace">|  --<span class="" style="background-color:yellow"><span class="" style>pgpool</span></span>_<span class="" style="background-color:yellow"><span class="" style>adm</span></span></font></div>
<div><font face="courier new, monospace">|  --<span class="" style="background-color:yellow"><span class="" style>src</span></span></font></div><div><font face="courier new, monospace">|  |  --<span class="" style="background-color:yellow"><span class="" style>auth</span></span></font></div>
<div><font face="courier new, monospace">|  |  --<span class="" style="background-color:yellow"><span class="" style>config</span></span></font></div><div><font face="courier new, monospace">|  |  --context</font></div><div>
<font face="courier new, monospace">|  |  --include</font></div><div><font face="courier new, monospace">|  |  |  --<span class="" style="background-color:yellow"><span class="" style>auth</span></span></font></div><div><font face="courier new, monospace">|  |  |  --context</font></div>
<div><font face="courier new, monospace">|  |  |  --parser</font></div><div><font face="courier new, monospace">|  |  |  --<span class="" style="background-color:yellow"><span class="" style>pcp</span></span></font></div>
<div><font face="courier new, monospace">|  |  |  --protocol</font></div><div><font face="courier new, monospace">|  |  |  --rewrite</font></div><div><font face="courier new, monospace">|  |  |  --<span class="" style="background-color:yellow"><span class="" style>utils</span></span></font></div>
<div><font face="courier new, monospace">|  |  |  --watchdog</font></div><div><font face="courier new, monospace">|  |  --libs</font></div><div><font face="courier new, monospace">|  |  |  --<span class="" style="background-color:yellow"><span class="" style>pcp</span></span></font></div>
<div><font face="courier new, monospace">|  |  --main</font></div><div><font face="courier new, monospace">|  |  --parser</font></div><div><font face="courier new, monospace">|  |  --<span class="" style="background-color:yellow"><span class="" style>pcp</span></span>_con</font></div>
<div><font face="courier new, monospace">|  |  --protocol</font></div><div><font face="courier new, monospace">|  |  --query_cache</font></div><div><font face="courier new, monospace">|  |  --<span class="" style="background-color:yellow"><span class="" style>redhat</span></span></font></div>
<div><font face="courier new, monospace">|  |  |  --rpm_installer</font></div><div><font face="courier new, monospace">|  |  --rewrite</font></div><div><font face="courier new, monospace">|  |  |  --parallel_query</font></div>
<div><font face="courier new, monospace">|  |  --sample</font></div><div><font face="courier new, monospace">|  |  --<span class="" style="background-color:yellow"><span class="" style>sql</span></span></font></div><div><font face="courier new, monospace">|  |  |  --<span class="" style="background-color:yellow"><span class="" style>pgpool</span></span>-recovery</font></div>
<div><font face="courier new, monospace">|  |  |  --<span class="" style="background-color:yellow"><span class="" style>pgpool</span></span>-<span class="" style="background-color:yellow"><span class="" style>regclass</span></span></font></div>
<div><font face="courier new, monospace">|  |  --streaming_replication</font></div><div><font face="courier new, monospace">|  |  --system_db</font></div><div><font face="courier new, monospace">|  |  --test</font></div><div>
<font face="courier new, monospace">|  |  |  --C</font></div><div><font face="courier new, monospace">|  |  |  --<span class="" style="background-color:yellow"><span class="" style>jdbc</span></span></font></div><div><font face="courier new, monospace">|  |  |  |  --expected</font></div>
<div><font face="courier new, monospace">|  |  |  --parser</font></div><div><font face="courier new, monospace">|  |  |  |  --expected</font></div><div><font face="courier new, monospace">|  |  |  |  --input</font></div><div>
<font face="courier new, monospace">|  |  |  --<span class="" style="background-color:yellow"><span class="" style>pdo</span></span>-test</font></div><div><font face="courier new, monospace">|  |  |  |  --mod</font></div>
<div><font face="courier new, monospace">|  |  |  |  --<span class="" style="background-color:yellow"><span class="" style>SQLlist</span></span></font></div><div><font face="courier new, monospace">|  |  |  --regression</font></div>
<div><font face="courier new, monospace">|  |  |  |  --tests</font></div><div><font face="courier new, monospace">|  |  |  |  |  --001.load_balance</font></div><div><font face="courier new, monospace">|  |  |  |  |  --002.native_replication</font></div>
<div><font face="courier new, monospace">|  |  |  |  |  --003.<span class="" style="background-color:yellow"><span class="" style>failover</span></span></font></div><div><font face="courier new, monospace">|  |  |  |  |  --050.bug58</font></div>
<div><font face="courier new, monospace">|  |  |  |  |  --051.bug60</font></div><div><font face="courier new, monospace">|  |  |  |  |  --052.do_query</font></div><div><font face="courier new, monospace">|  |  |  |  |  --053.insert_lock_hangs</font></div>
<div><font face="courier new, monospace">|  |  |  --timestamp</font></div><div><font face="courier new, monospace">|  |  |  |  --expected</font></div><div><font face="courier new, monospace">|  |  |  |  --input</font></div>
<div><font face="courier new, monospace">|  |  --tools</font></div><div><font face="courier new, monospace">|  |  |  --<span class="" style="background-color:yellow"><span class="" style>pcp</span></span></font></div><div>
<font face="courier new, monospace">|  |  |  --pgmd5</font></div><div><font face="courier new, monospace">|  |  --<span class="" style="background-color:yellow"><span class="" style>utils</span></span></font></div><div><font face="courier new, monospace">|  |  --watchdog</font></div>
<div><font face="courier new, monospace">|  |  |  --test</font></div></div><div><br></div><div style><br></div><div style>I have created a git repository on <span class="" style>github</span> (<a href="https://github.com/codeforall/pgpool2.git">https://<span class="" style>github</span>.com/<span class="" style>codeforall</span>/pgpool2.git</a>) with the purposed directory structure.</div>
<div style>and the attached (pgpool2_code_tree.<span class="" style>txt</span>) file contains the complete list directories along with files for the purposed directory structure.</div><div><br></div><div style>Thanks</div>
<div style><br></div><div style>Regards</div><div style>Muhammad <span class="" style>Usama</span></div><div style><br></div></div>