[pgpool-hackers: 308] reorganisation of pgpool-II source tree

Muhammad Usama m.usama at gmail.com
Wed Jul 10 22:51:29 JST 2013


Hi

Since the pgpool-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 pgpool-II
source resides in top level pgpool2 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.

So me and Tatsuo has been working on the reorganisation of pgpool-II source
tree and have came up with the directory structure.
The purposed source tree for the pgpool-II is to contains following
directories.

pgpool2
|  --doc
|  --m4
|  --pgpool_adm
|  --src
|  |  --auth
|  |  --config
|  |  --context
|  |  --include
|  |  |  --auth
|  |  |  --context
|  |  |  --parser
|  |  |  --pcp
|  |  |  --protocol
|  |  |  --rewrite
|  |  |  --utils
|  |  |  --watchdog
|  |  --libs
|  |  |  --pcp
|  |  --main
|  |  --parser
|  |  --pcp_con
|  |  --protocol
|  |  --query_cache
|  |  --redhat
|  |  |  --rpm_installer
|  |  --rewrite
|  |  |  --parallel_query
|  |  --sample
|  |  --sql
|  |  |  --pgpool-recovery
|  |  |  --pgpool-regclass
|  |  --streaming_replication
|  |  --system_db
|  |  --test
|  |  |  --C
|  |  |  --jdbc
|  |  |  |  --expected
|  |  |  --parser
|  |  |  |  --expected
|  |  |  |  --input
|  |  |  --pdo-test
|  |  |  |  --mod
|  |  |  |  --SQLlist
|  |  |  --regression
|  |  |  |  --tests
|  |  |  |  |  --001.load_balance
|  |  |  |  |  --002.native_replication
|  |  |  |  |  --003.failover
|  |  |  |  |  --050.bug58
|  |  |  |  |  --051.bug60
|  |  |  |  |  --052.do_query
|  |  |  |  |  --053.insert_lock_hangs
|  |  |  --timestamp
|  |  |  |  --expected
|  |  |  |  --input
|  |  --tools
|  |  |  --pcp
|  |  |  --pgmd5
|  |  --utils
|  |  --watchdog
|  |  |  --test


I have created a git repository on github (https://github.com/codeforall
/pgpool2.git) with the purposed directory structure.
and the attached (pgpool2_code_tree.txt) file contains the complete list
directories along with files for the purposed directory structure.

Thanks

Regards
Muhammad Usama
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.sraoss.jp/pipermail/pgpool-hackers/attachments/20130710/39d3d8db/attachment-0001.html>
-------------- next part --------------
.
|---pgpool2
|---|---ac_func_accept_argtypes.m4
|---|---aclocal.m4
|---|---AUTHORS
|---|---c-compiler.m4
|---|---ChangeLog
|---|---c-library.m4
|---|---compile
|---|---config.guess
|---|---config.sub
|---|---configure
|---|---configure.in
|---|---COPYING
|---|---depcomp
|---|---doc
|---|---|---basebackup.sh
|---|---|---Makefile.am
|---|---|---Makefile.in
|---|---|---pgpool.8.in
|---|---|---pgpool.css
|---|---|---pgpool-de.html
|---|---|---pgpool-en.html
|---|---|---pgpool-fr.html
|---|---|---pgpool-ja.css
|---|---|---pgpool-ja.html
|---|---|---pgpool_remote_start
|---|---|---pgpool-zh_cn.html
|---|---|---recovery.conf.sample
|---|---|---tutorial-en.html
|---|---|---tutorial-ja.html
|---|---|---tutorial-memqcache-en.html
|---|---|---tutorial-memqcache-ja.html
|---|---|---tutorial-memqcache-zh_cn.html
|---|---|---tutorial-watchdog-en.html
|---|---|---tutorial-watchdog-ja.html
|---|---|---tutorial-watchdog-zh_cn.html
|---|---|---tutorial-zh_cn.html
|---|---|---watchdog.png
|---|---|---wd-en.html
|---|---|---wd-en.jpg
|---|---|---wd-ja.html
|---|---|---wd-ja.jpg
|---|---|---wd-zh_cn.html
|---|---|---where_to_send_queries.odg
|---|---|---where_to_send_queries.pdf
|---|---general.m4
|---|---.git
|---|---|---branches
|---|---|---config
|---|---|---description
|---|---|---HEAD
|---|---|---hooks
|---|---|---|---applypatch-msg.sample
|---|---|---|---commit-msg.sample
|---|---|---|---post-update.sample
|---|---|---|---pre-applypatch.sample
|---|---|---|---pre-commit.sample
|---|---|---|---prepare-commit-msg.sample
|---|---|---|---pre-rebase.sample
|---|---|---|---update.sample
|---|---.gitignore
|---|---|---index
|---|---|---info
|---|---|---|---exclude
|---|---|---logs
|---|---|---|---HEAD
|---|---|---|---refs
|---|---|---|---|---heads
|---|---|---|---|---|---master
|---|---|---objects
|---|---|---|---info
|---|---|---|---pack
|---|---|---|---|---pack-979016d011a73c4988bc4974a17986471f0fe6c8.idx
|---|---|---|---|---pack-979016d011a73c4988bc4974a17986471f0fe6c8.pack
|---|---|---packed-refs
|---|---|---refs
|---|---|---|---heads
|---|---|---|---|---master
|---|---|---|---remotes
|---|---|---|---|---origin
|---|---|---|---|---|---HEAD
|---|---|---|---tags
|---|---INSTALL
|---|---install-sh
|---|---ltmain.sh
|---|---m4
|---|---|---libtool.m4
|---|---|---lt~obsolete.m4
|---|---|---ltoptions.m4
|---|---|---ltsugar.m4
|---|---|---ltversion.m4
|---|---Makefile.am
|---|---Makefile.in
|---|---missing
|---|---mkinstalldirs
|---|---NEWS
|---|---pgpool_adm
|---|---|---Makefile
|---|---|---pgpool_adm--1.0.sql
|---|---|---pgpool_adm.c
|---|---|---pgpool_adm.control
|---|---|---pgpool_adm.h
|---|---|---pgpool_adm.sql.in
|---|---|---TODO
|---|---pgpool.spec
|---|---README
|---|---README.euc_jp
|---|---README.online-recovery
|---|---src
|---|---|---auth
|---|---|---|---md5.c
|---|---|---|---pool_auth.c
|---|---|---|---pool_hba.c
|---|---|---|---pool_passwd.c
|---|---|---config
|---|---|---|---pool_config.c
|---|---|---|---pool_config.l
|---|---|---|---pool_config_md5.c
|---|---|---context
|---|---|---|---pool_process_context.c
|---|---|---|---pool_query_context.c
|---|---|---|---pool_session_context.c
|---|---|---include
|---|---|---|---auth
|---|---|---|---|---md5.h
|---|---|---|---|---pool_passwd.h
|---|---|---|---config.h.in
|---|---|---|---context
|---|---|---|---|---pool_process_context.h
|---|---|---|---|---pool_query_context.h
|---|---|---|---|---pool_session_context.h
|---|---|---|---Makefile.am
|---|---|---|---Makefile.in
|---|---|---|---parser
|---|---|---|---|---gram.h
|---|---|---|---|---gramparse.h
|---|---|---|---|---keywords.h
|---|---|---|---|---kwlist.h
|---|---|---|---|---makefuncs.h
|---|---|---|---|---memnodes.h
|---|---|---|---|---nodes.h
|---|---|---|---|---parsenodes.h
|---|---|---|---|---parser.h
|---|---|---|---|---pg_class.h
|---|---|---|---|---pg_config_manual.h
|---|---|---|---|---pg_list.h
|---|---|---|---|---pg_trigger.h
|---|---|---|---|---pg_wchar.h
|---|---|---|---|---pool_memory.h
|---|---|---|---|---pool_parser.h
|---|---|---|---|---pool_string.h
|---|---|---|---|---primnodes.h
|---|---|---|---|---scanner.h
|---|---|---|---|---scansup.h
|---|---|---|---|---stringinfo.h
|---|---|---|---|---value.h
|---|---|---|---pcp
|---|---|---|---|---libpcp_ext.h
|---|---|---|---|---pcp.h
|---|---|---|---|---pcp_stream.h
|---|---|---|---pool_config.h
|---|---|---|---pool.h
|---|---|---|---pool_type.h
|---|---|---|---protocol
|---|---|---|---|---pool_proto_modules.h
|---|---|---|---rewrite
|---|---|---|---|---pool_lobj.h
|---|---|---|---|---pool_rewrite_query.h
|---|---|---|---|---pool_timestamp.h
|---|---|---|---utils
|---|---|---|---|---getopt_long.h
|---|---|---|---|---pool_ipc.h
|---|---|---|---|---pool_ip.h
|---|---|---|---|---pool_memqcache.h
|---|---|---|---|---pool_path.h
|---|---|---|---|---pool_process_reporting.h
|---|---|---|---|---pool_relcache.h
|---|---|---|---|---pool_select_walker.h
|---|---|---|---|---pool_signal.h
|---|---|---|---|---pool_stream.h
|---|---|---|---version.h
|---|---|---|---watchdog
|---|---|---|---|---watchdog.h
|---|---|---|---|---wd_ext.h
|---|---|---libs
|---|---|---|---Makefile.am
|---|---|---|---Makefile.in
|---|---|---|---pcp
|---|---|---|---|---Makefile.am
|---|---|---|---|---Makefile.in
|---|---|---|---|---pcp.c
|---|---|---|---|---pcp_error.c
|---|---|---|---|---pcp_stream.c
|---|---|---main
|---|---|---|---main.c
|---|---|---|---pool_globals.c
|---|---|---Makefile.am
|---|---|---Makefile.in
|---|---|---parser
|---|---|---|---copyfuncs.c
|---|---|---|---gram.c
|---|---|---|---gram.y
|---|---|---|---keywords.c
|---|---|---|---kwlookup.c
|---|---|---|---list.c
|---|---|---|---Makefile.am
|---|---|---|---Makefile.in
|---|---|---|---makefuncs.c
|---|---|---|---nodes.c
|---|---|---|---outfuncs.c
|---|---|---|---parser.c
|---|---|---|---pool_memory.c
|---|---|---|---pool_string.c
|---|---|---|---scan.c
|---|---|---|---scan.l
|---|---|---|---scansup.c
|---|---|---|---snprintf.c
|---|---|---|---stringinfo.c
|---|---|---|---value.c
|---|---|---|---wchar.c
|---|---|---pcp_con
|---|---|---|---pcp_child.c
|---|---|---|---recovery.c
|---|---|---protocol
|---|---|---|---child.c
|---|---|---|---pool_connection_pool.c
|---|---|---|---pool_process_query.c
|---|---|---|---pool_proto2.c
|---|---|---|---pool_proto_modules.c
|---|---|---query_cache
|---|---|---|---pool_memqcache.c
|---|---|---|---pool_query_cache.c
|---|---|---redhat
|---|---|---|---pgpool.conf.sample.patch
|---|---|---|---pgpool.init
|---|---|---|---pgpool.sysconfig
|---|---|---|---rpm_installer
|---|---|---|---|---basebackup-replication.sh
|---|---|---|---|---basebackup-stream.sh
|---|---|---|---|---config_for_script
|---|---|---|---|---failover.sh
|---|---|---|---|---getsources.sh
|---|---|---|---|---install.sh
|---|---|---|---|---pgpool_recovery_pitr
|---|---|---|---|---pgpool_remote_start
|---|---|---|---|---recovery.conf
|---|---|---|---|---uninstall.sh
|---|---|---rewrite
|---|---|---|---parallel_query
|---|---|---|---|---pool_rewrite_outfuncs.c
|---|---|---|---|---pool_rewrite_query.c
|---|---|---|---pool_lobj.c
|---|---|---|---pool_timestamp.c
|---|---|---sample
|---|---|---|---dist_def_pgbench.sql
|---|---|---|---pcp.conf.sample
|---|---|---|---pgpool.conf
|---|---|---|---pgpool.conf.sample
|---|---|---|---pgpool.conf.sample-master-slave
|---|---|---|---pgpool.conf.sample-replication
|---|---|---|---pgpool.conf.sample-stream
|---|---|---|---pgpool.pam
|---|---|---|---pgpool_recovery
|---|---|---|---pgpool_recovery_pitr
|---|---|---|---pgpool_remote_start
|---|---|---|---pool_hba.conf.sample
|---|---|---|---replicate_def_pgbench.sql
|---|---|---sql
|---|---|---|---insert_lock.sql
|---|---|---|---Makefile
|---|---|---|---pgpool-recovery
|---|---|---|---|---Makefile
|---|---|---|---|---pgpool_recovery--1.0.sql
|---|---|---|---|---pgpool-recovery.c
|---|---|---|---|---pgpool_recovery.control
|---|---|---|---|---pgpool-recovery.sql.in
|---|---|---|---|---uninstall_pgpool-recovery.sql
|---|---|---|---pgpool-regclass
|---|---|---|---|---Makefile
|---|---|---|---|---pgpool_regclass--1.0.sql
|---|---|---|---|---pgpool-regclass.c
|---|---|---|---|---pgpool_regclass.control
|---|---|---|---|---pgpool-regclass.sql.in
|---|---|---|---|---uninstall_pgpool-regclass.sql
|---|---|---|---system_db.sql
|---|---|---streaming_replication
|---|---|---|---pool_worker_child.c
|---|---|---system_db
|---|---|---|---pool_system.c
|---|---|---test
|---|---|---|---C
|---|---|---|---|---Makefile
|---|---|---|---|---test_extended.c
|---|---|---|---jdbc
|---|---|---|---|---AutoCommitTest.java
|---|---|---|---|---BatchTest.java
|---|---|---|---|---ColumnTest.java
|---|---|---|---|---CreateTempTableTest.java
|---|---|---|---|---.cvsignore
|---|---|---|---|---expected
|---|---|---|---|---|---autocommit
|---|---|---|---|---|---batch
|---|---|---|---|---|---column
|---|---|---|---|---|---CreateTempTable
|---|---|---|---|---|---insert
|---|---|---|---|---|---lock
|---|---|---|---|---|---select
|---|---|---|---|---|---update
|---|---|---|---|---InsertTest.java
|---|---|---|---|---LockTest.java
|---|---|---|---|---pgpool.properties
|---|---|---|---|---PgpoolTest.java
|---|---|---|---|---prepare.sql
|---|---|---|---|---README.euc_jp
|---|---|---|---|---run.sh
|---|---|---|---|---RunTest.java
|---|---|---|---|---SelectTest.java
|---|---|---|---|---UpdateTest.java
|---|---|---|---parser
|---|---|---|---|---.cvsignore
|---|---|---|---|---expected
|---|---|---|---|---|---copy.out
|---|---|---|---|---|---create.out
|---|---|---|---|---|---cursor.out
|---|---|---|---|---|---delete.out
|---|---|---|---|---|---drop.out
|---|---|---|---|---|---insert.out
|---|---|---|---|---|---misc.out
|---|---|---|---|---|---prepare.out
|---|---|---|---|---|---privileges.out
|---|---|---|---|---|---scanner.out
|---|---|---|---|---|---select.out
|---|---|---|---|---|---transaction.out
|---|---|---|---|---|---update.out
|---|---|---|---|---|---v84.out
|---|---|---|---|---|---v90.out
|---|---|---|---|---|---var.out
|---|---|---|---|---input
|---|---|---|---|---|---alter.sql
|---|---|---|---|---|---copy.sql
|---|---|---|---|---|---create.sql
|---|---|---|---|---|---cursor.sql
|---|---|---|---|---|---delete.sql
|---|---|---|---|---|---drop.sql
|---|---|---|---|---|---insert.sql
|---|---|---|---|---|---misc.sql
|---|---|---|---|---|---prepare.sql
|---|---|---|---|---|---privileges.sql
|---|---|---|---|---|---scanner.sql
|---|---|---|---|---|---select.sql
|---|---|---|---|---|---transaction.sql
|---|---|---|---|---|---update.sql
|---|---|---|---|---|---v84.sql
|---|---|---|---|---|---v90.sql
|---|---|---|---|---|---var.sql
|---|---|---|---|---main.c
|---|---|---|---|---Makefile
|---|---|---|---|---parse_schedule
|---|---|---|---|---pool.h
|---|---|---|---|---README
|---|---|---|---|---run-test
|---|---|---|---pdo-test
|---|---|---|---|---collections.inc
|---|---|---|---|---def.inc
|---|---|---|---|---log.txt
|---|---|---|---|---mod
|---|---|---|---|---|---database.inc
|---|---|---|---|---|---def.inc
|---|---|---|---|---|---errorhandler.inc
|---|---|---|---|---pdotest.php
|---|---|---|---|---README.euc_jp
|---|---|---|---|---regsql.inc
|---|---|---|---|---SQLlist
|---|---|---|---|---|---test1.sql
|---|---|---|---|---|---test2.sql
|---|---|---|---pgpool_setup
|---|---|---|---regression
|---|---|---|---|---clean.sh
|---|---|---|---|---libs.sh
|---|---|---|---|---README
|---|---|---|---|---regress.sh
|---|---|---|---|---tests
|---|---|---|---|---|---001.load_balance
|---|---|---|---|---|---|---test.sh
|---|---|---|---|---|---002.native_replication
|---|---|---|---|---|---|---test.sh
|---|---|---|---|---|---003.failover
|---|---|---|---|---|---|---expected.r
|---|---|---|---|---|---|---expected.s
|---|---|---|---|---|---|---test.sh
|---|---|---|---|---|---050.bug58
|---|---|---|---|---|---|---test.sh
|---|---|---|---|---|---051.bug60
|---|---|---|---|---|---|---bug.sql
|---|---|---|---|---|---|---database-clean.sql
|---|---|---|---|---|---|---database-setup.sql
|---|---|---|---|---|---|---test.sh
|---|---|---|---|---|---052.do_query
|---|---|---|---|---|---|---test.sh
|---|---|---|---|---|---053.insert_lock_hangs
|---|---|---|---|---|---|---test.sh
|---|---|---|---timestamp
|---|---|---|---|---expected
|---|---|---|---|---|---insert.out
|---|---|---|---|---|---misc.out
|---|---|---|---|---|---update.out
|---|---|---|---|---input
|---|---|---|---|---|---insert.sql
|---|---|---|---|---|---misc.sql
|---|---|---|---|---|---update.sql
|---|---|---|---|---main.c
|---|---|---|---|---Makefile
|---|---|---|---|---parse_schedule
|---|---|---|---|---run-test
|---|---|---tools
|---|---|---|---Makefile.am
|---|---|---|---Makefile.in
|---|---|---|---pcp
|---|---|---|---|---Makefile.am
|---|---|---|---|---Makefile.in
|---|---|---|---|---pcp_attach_node.c
|---|---|---|---|---pcp_detach_node.c
|---|---|---|---|---pcp_node_count.c
|---|---|---|---|---pcp_node_info.c
|---|---|---|---|---pcp_pool_status.c
|---|---|---|---|---pcp_proc_count.c
|---|---|---|---|---pcp_proc_info.c
|---|---|---|---|---pcp_promote_node.c
|---|---|---|---|---pcp_recovery_node.c
|---|---|---|---|---pcp_stop_pgpool.c
|---|---|---|---|---pcp_systemdb_info.c
|---|---|---|---pgmd5
|---|---|---|---|---Makefile.am
|---|---|---|---|---Makefile.in
|---|---|---|---|---pg_md5.c
|---|---|---utils
|---|---|---|---getopt_long.c
|---|---|---|---pool_error.c
|---|---|---|---pool_ip.c
|---|---|---|---pool_params.c
|---|---|---|---pool_path.c
|---|---|---|---pool_process_reporting.c
|---|---|---|---pool_relcache.c
|---|---|---|---pool_select_walker.c
|---|---|---|---pool_sema.c
|---|---|---|---pool_shmem.c
|---|---|---|---pool_signal.c
|---|---|---|---pool_ssl.c
|---|---|---|---pool_stream.c
|---|---|---|---ps_status.c
|---|---|---|---strlcpy.c
|---|---|---watchdog
|---|---|---|---Makefile.am
|---|---|---|---Makefile.in
|---|---|---|---test
|---|---|---|---|---stab.c
|---|---|---|---|---test.c
|---|---|---|---|---wd_child_t.c
|---|---|---|---|---wd_lifecheck_t.c
|---|---|---|---|---wd_packet_t.c
|---|---|---|---|---wd_ping_t.c
|---|---|---|---watchdog.c
|---|---|---|---wd_child.c
|---|---|---|---wd_heartbeat.c
|---|---|---|---wd_if.c
|---|---|---|---wd_init.c
|---|---|---|---wd_interlock.c
|---|---|---|---wd_lifecheck.c
|---|---|---|---wd_list.c
|---|---|---|---wd_packet.c
|---|---|---|---wd_ping.c
|---|---TODO
|---|---ylwrap


More information about the pgpool-hackers mailing list