Generic building and installation
=================================

For generic build and installation instructions, see autoconf/automake
documentation.

As precondition, library cool must be installed that contains stuff for
networking and multithreading.

Quick instructions:
  $ gunzip -c plproxy-0.1.0.tar.gz | tar xvf -
  $ cd plproxy-0.1.0
  $ ./configure [ --prefix=/root/installation/directory ]
  $ make && make check
  $ su -c "make install"


plproxy-specific installation
=============================

See README for more detailed overview of architecture of plproxy. For
installation, it is enough to know that plproxy contains 2 parts:

1) PL/Proxy language handler (built in db/) as shared library (libplproxy.so)
   In db/lang.sql script modify paths to correct directories where
   libplproxy.so is installed.
   Run this script through psql:
       $ cat db/lang.sql | psql [dbname]
   As a result, now database dbname has installed new language PL/Proxy. It
   uses PostgreSQL connection pooler to send queries to partitions. See (2)

2) PostgreSQL connection pooler daemon (pool/pgcpoold)
   Maintains collection of connections to PostgreSQL database instances.
   Configuration about connections is received from PL/Proxy during first
   query. Local configuration is in pool/pgcpoold.conf
   Daemon should run under some kind of watchdog or guard that starts daemon
   again if something bad happens to it.
