Re: pgpool - Mailing list pgsql-general

From Scott Marlowe
Subject Re: pgpool
Date
Msg-id AANLkTilu34vEqUKCjPaMppYin9wbYvjXJ0x7SqH_bALU@mail.gmail.com
Whole thread Raw
In response to Re: pgpool  (Geoffrey <lists@serioustechnology.com>)
Responses Re: pgpool  (Geoffrey <lists@serioustechnology.com>)
Re: pgpool  (Geoffrey <lists@serioustechnology.com>)
List pgsql-general
On Mon, Jun 21, 2010 at 2:42 PM, Geoffrey <lists@serioustechnology.com> wrote:
> Scott Marlowe wrote:
>>
>> On Mon, Jun 21, 2010 at 1:45 PM, Geoffrey <lists@serioustechnology.com>
>> wrote:
>>>
>>> John R Pierce wrote:
>>>>
>>>> On 06/21/10 5:37 AM, Geoffrey wrote:
>>>>>
>>>>> So I've got 13 different databases on 13 different postmasters, now
>>>>> does
>>>>> pgpool know which databases I'm trying to connect to?
>>>>
>>>> you would need 13 different connection pools.
>>>
>>> Can this be done?
>>
>> Yes
>
> Can you point me to any docs that explain how this is done?  As there is
> only one pgpool.conf file, I'm wondering how to go about that process.

sudo apt-get install pgpool2
(password, yes, wait...)
pgpool --help
Usage:
  pgpool [ -c] [ -f CONFIG_FILE ] [ -F PCP_CONFIG_FILE ] [ -a HBA_CONFIG_FILE ]
         [ -n ] [ -d ]
  pgpool [ -f CONFIG_FILE ] [ -F PCP_CONFIG_FILE ] [ -a HBA_CONFIG_FILE ]
         [ -m SHUTDOWN-MODE ] stop
  pgpool [ -f CONFIG_FILE ] [ -F PCP_CONFIG_FILE ] [ -a HBA_CONFIG_FILE ] reload

Common options:
  -a HBA_CONFIG_FILE  Sets the path to the pool_hba.conf configuration file
                      (default: /etc/pool_hba.conf)
  -f CONFIG_FILE      Sets the path to the pgpool.conf configuration file
                      (default: /etc/pgpool.conf)
  -F PCP_CONFIG_FILE  Sets the path to the pcp.conf configuration file
                      (default: /etc/pcp.conf)
  -h                  Prints this help

Looks like there's a -f and -F option to use various files.
Admittedly, you might not be starting it up with /etc/init.d/pgpool2
each time now.  But the basics are there.

pgsql-general by date:

Previous
From: Martin
Date:
Subject: Re: How to force select to return exactly one row
Next
From: Geoffrey
Date:
Subject: Re: pgpool