Re: Installed. Now what?

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Cc: Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com>, pgbouncer-general(at)pgfoundry(dot)org
Subject: Re: Installed. Now what?
Date: 2011-11-19 18:13:22
Message-ID: 201111191013.22699.adrian.klaver@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Saturday, November 19, 2011 12:20:07 am Phoenix Kiula wrote:

>
> service postgres start
> service pgbouncer start
>
>
> When the two "services" are started like the above, are they working
> together? The manual says psql should be restarted with the pgbouncer
> port number, for these to be working together. But what if my server
> does not have a "psql" process, but a service of postgres?

Not all that confusing. Clients talk to pgbouncer, which in turn talks to
server. All the manual is saying is that you need to redirect your requests to
the pgbouncer port from the Postgres port, using psql as an example.

>
> From within my PHP code, if I add the port number of pgbouncer in my
> "pg_connect()" function, it does not work.

Did you take a look at:

http://pgbouncer.projects.postgresql.org/doc/config.html

I have never used pgbouncer, but from above it would seem you need to set up a
[databases] section to tie pgbouncer to the Postgres server.
See:
SECTION [databases]

>
> Thanks for any insight.

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2011-11-19 18:20:21 Re: How to install latest stable postgresql on Debian
Previous Message pawel_kukawski 2011-11-19 17:32:12 invalid byte sequence for encoding "UTF8": 0x00