Re: pgpool

From: Geoffrey <lists(at)serioustechnology(dot)com>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: John R Pierce <pierce(at)hogranch(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: pgpool
Date: 2010-06-21 22:30:22
Message-ID: 4C1FE7FE.6050303@serioustechnology.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scott Marlowe wrote:
> On Mon, Jun 21, 2010 at 2:42 PM, Geoffrey <lists(at)serioustechnology(dot)com> wrote:
>> Scott Marlowe wrote:
>>> On Mon, Jun 21, 2010 at 1:45 PM, Geoffrey <lists(at)serioustechnology(dot)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.

Thanks muchly, that should give me a good kick start.

--
Until later, Geoffrey

"I predict future happiness for America if they can prevent
the government from wasting the labors of the people under
the pretense of taking care of them."
- Thomas Jefferson

In response to

  • Re: pgpool at 2010-06-21 21:23:20 from Scott Marlowe

Browse pgsql-general by date

  From Date Subject
Next Message Brent Wood 2010-06-21 22:38:04 Re: How to force select to return exactly one row
Previous Message Scott Marlowe 2010-06-21 21:23:20 Re: pgpool