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

From: si24 <smrcoutts24(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: changing port numbers so pgbouncer can read geoserver and postgres
Date: 2013-11-04 09:25:39
Message-ID: 1383557139213-5776821.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>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.
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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message si24 2013-11-04 09:29:38 Re: Explanantion on pgbouncer please
Previous Message Raphael Bauduin 2013-11-04 07:39:52 Re: problem with partitioned table and indexed json field