Re: Re: changing port numbers so pgbouncer can read geoserver and postgres

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: si24 <smrcoutts24(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Re: changing port numbers so pgbouncer can read geoserver and postgres
Date: 2013-11-04 14:57:59
Message-ID: 5277B5F7.5050500@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/04/2013 01:25 AM, si24 wrote:
>> show the [databases] section in the pgbouncer.ini
>
> [databases]
> manifold = host=127.0.0.1 port=5432 dbname=manifold user=postgrest
> password=123ert
>
> I have tested now with both the ip address and using localhost in the host
> section
>
> I have also ended up swapping round the 2 port numbers so now postgres is
> 6432 and pgbouncer is 5432 the only thing is when I use the admin command to
> check the databases for the pgbouncer i get this:
>
> pgbouncer=# show databases;
> name | host | port | database | force_user |
> pool_size | reserve_pool
> -----------+--------------+------+-----------+------------+-----------+--------------
> manifold | 127.0.0.1 | 5432 | manifold | postgrest |
> 20 |0
> pgbouncer | | 5432 | pgbouncer | pgbouncer |
> 2 |0
> postgres | 127.0.0.1 | 5432 | postgres | |
> 20 |0
>
> It seems that they are all are using the same port.
>
> I'm at my winds end now and I need to get this working badley.
> Maybe I'm not understanding it at all if some could explaine it to me in
> more lamens terms hopefully that would help otherwise I don't know what to
> do.

Well the first thing would be to work on one thing at a time and also
maintain some consistency. For example in the above you say you have
switched the Postgres port to 6432, yet in your [databases] example you
show a port of 5432. So one of those statements is wrong.

In order to work with this we will need to see a more detailed
description of what you are doing, example:

client application --> 5432 pgBouncer --> 6432 Postgres

and the associated config files

pgbouncer.ini pgBouncer

from postgresql.conf Postgres

listen_addresses
port

pg_hba.conf Postgres

also

Make sure when making any changes to reload the appropriate software
after the changes.

> I can't change to linux which might of made this job a lot easier I have to
> use windows.
>
>
>
> --
> View this message in context: http://postgresql.1045698.n5.nabble.com/changing-port-numbers-so-pgbouncer-can-read-geoserver-and-postgres-tp5776631p5776821.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
>

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2013-11-04 16:12:39 Re: json datatype and table bloat?
Previous Message anjanu 2013-11-04 14:44:40 Re: Postgresql 9.0.13 core dump