Re: Different execution plans in PG17 and pgBouncer...

2025-05-05 Thread Achilleas Mantzios
planner to not use this kind of join which results in different plans when using this tainted pgbouncer connection instead of the clean one from pg17. The problem is that server_reset_query is not used when the pool is in transaction mode. Now, we have to see how to fix this problem. But you&#x

Re: Different execution plans in PG17 and pgBouncer...

2025-05-05 Thread Álvaro Herrera
On 2025-May-05, Mladen Marinović wrote: > Hi, > > Mystery not solved...but identified. The pool is in transaction mode and > some connections use set enable_mergejoin=off, but they do not set it back > to on. Maybe instead of "SET enable_mergejoin=off" these connections could be changed to use S

Re: Different execution plans in PG17 and pgBouncer...

2025-05-05 Thread SERHAD ERDEM
Hi , wish you good lock with the "transaction mode" 🙂 if pgbouncer is not really needed , remove and use plain connections.i have experienced pgbouncer in session mode over 2 years with situation like "pain in the ass" , finaly removed t

Re: Different execution plans in PG17 and pgBouncer...

2025-05-05 Thread Mladen Marinović
in different plans when using this tainted pgbouncer connection instead of the clean one from pg17. The problem is that server_reset_query is not used when the pool is in transaction mode. Now, we have to see how to fix this problem. Regards, Mladen Marinović On Mon, May 5, 2025 at 3:10 PM

Re: Different execution plans in PG17 and pgBouncer...

2025-05-05 Thread Efrain J. Berdecia
ry  vacuum  analyze for the whole db ,   pgbouncer  connection layer can not causeslow queries. I did that already. But the slow query is the consequence of the different plan, not the statistics.  From: Mladen Marinović Sent: Monday, May 5, 2025 12:27 PM To: Achilleas Mantzios Cc: pgs

Re: Different execution plans in PG17 and pgBouncer...

2025-05-05 Thread SERHAD ERDEM
: Monday, May 5, 2025 12:52 PM To: SERHAD ERDEM Cc: Achilleas Mantzios ; pgsql-general@lists.postgresql.org Subject: Re: Different execution plans in PG17 and pgBouncer... On Mon, May 5, 2025 at 2:38 PM SERHAD ERDEM mailto:serh...@hotmail.com>> wrote: Hi , you had better try vacuum analy

Re: Different execution plans in PG17 and pgBouncer...

2025-05-05 Thread Mladen Marinović
On Mon, May 5, 2025 at 2:38 PM SERHAD ERDEM wrote: > Hi , you had better try vacuum analyze for the whole db , pgbouncer > connection layer can not causeslow queries. > I did that already. But the slow query is the consequence of the different plan, not the s

Re: Different execution plans in PG17 and pgBouncer...

2025-05-05 Thread Mladen Marinović
>> On 5/5/25 11:00, Mladen Marinović wrote: >> >> >> >> On Mon, May 5, 2025 at 11:24 AM Achilleas Mantzios < >> a.mantz...@cloud.gatewaynet.com> wrote: >> >>> >>> On 5/5/25 09:52, Mladen Marinović wrote: >>> >>> Hi, >&g

Re: Different execution plans in PG17 and pgBouncer...

2025-05-05 Thread SERHAD ERDEM
Hi , you had better try vacuum analyze for the whole db , pgbouncer connection layer can not causeslow queries. From: Mladen Marinović Sent: Monday, May 5, 2025 12:27 PM To: Achilleas Mantzios Cc: pgsql-general@lists.postgresql.org Subject: Re: Different

Re: Different execution plans in PG17 and pgBouncer...

2025-05-05 Thread Achilleas Mantzios
, We recently migrated our production instances from PG11 to PG17. While doing so we upgraded our pgBouncer instances from 1.12 to 1.24. As everything worked on the test servers we pushed this to production a few weeks ago. We did not notice any problems until a few days

Re: Different execution plans in PG17 and pgBouncer...

2025-05-05 Thread Achilleas Mantzios
Mon, May 5, 2025 at 11:24 AM Achilleas Mantzios wrote: On 5/5/25 09:52, Mladen Marinović wrote: Hi, We recently migrated our production instances from PG11 to PG17. While doing so we upgraded our pgBouncer instances from 1.12 to 1.24. As everything wor

Re: Different execution plans in PG17 and pgBouncer...

2025-05-05 Thread Mladen Marinović
>> On 5/5/25 09:52, Mladen Marinović wrote: >> >> Hi, >> >> We recently migrated our production instances from PG11 to PG17. While >> doing so we upgraded our pgBouncer instances from 1.12 to 1.24. As >> everything worked on the test servers we pushed this to product

Re: Different execution plans in PG17 and pgBouncer...

2025-05-05 Thread Achilleas Mantzios
On 5/5/25 11:00, Mladen Marinović wrote: On Mon, May 5, 2025 at 11:24 AM Achilleas Mantzios wrote: On 5/5/25 09:52, Mladen Marinović wrote: Hi, We recently migrated our production instances from PG11 to PG17. While doing so we upgraded our pgBouncer instances from 1.12

Re: Different execution plans in PG17 and pgBouncer...

2025-05-05 Thread Achilleas Mantzios
On 5/5/25 09:52, Mladen Marinović wrote: Hi, We recently migrated our production instances from PG11 to PG17. While doing so we upgraded our pgBouncer instances from 1.12 to 1.24. As everything worked on the test servers we pushed this to production a few weeks ago. We did not notice any

Different execution plans in PG17 and pgBouncer...

2025-05-05 Thread Mladen Marinović
Hi, We recently migrated our production instances from PG11 to PG17. While doing so we upgraded our pgBouncer instances from 1.12 to 1.24. As everything worked on the test servers we pushed this to production a few weeks ago. We did not notice any problems until a few days ago (but the problems

Re: PGBouncer - Load balancing options

2024-10-11 Thread Christophe Pettus
Hello, > On Oct 10, 2024, at 03:02, Ravi Varma Addala wrote: > > Hello Team,I wanted to reach out to provide some insight into a request from > my customer regarding their multiple PostgreSQL Flex instances with > PGbouncer. Currently, they are utilizing an Azure Load

PGBouncer - Load balancing options

2024-10-11 Thread Ravi Varma Addala
Hello Team, I wanted to reach out to provide some insight into a request from my customer regarding their multiple PostgreSQL Flex instances with PGbouncer. Currently, they are utilizing an Azure Load Balancer which distributes connections using the Round-robin mechanism. However, they are now

Re: pgbouncer best practices

2023-07-10 Thread Gurjeet Singh
On Sun, Jul 9, 2023 at 6:28 AM Rita wrote: > > Is there a way to see how many queued connections there are? Looking at the > stats I can't seem to figure that out. pgbouncer exposes quite a few statistics via the SHOW commands [1]. See if any of those help. [1]: https://www

Re: pgbouncer best practices

2023-07-09 Thread Rita
Thanks for the tips. So far, I am very happy with PGbouncer. Just increased number of db connections. Great piece of software! Is there a way to see how many queued connections there are? Looking at the stats I can't seem to figure that out. On Sat, Jul 8, 2023 at 9:46 AM Ben Chobot

Re: pgbouncer best practices

2023-07-08 Thread Ben Chobot
pgbouncer and is quite happy with ~30 server connections (roughly the core count of the db server). If we couldn't use transaction pooling we'd be fighting with how to keep those thousands of connections from wasting a bunch of resources on our db. https://www.pgbouncer.org/features.html

Re: pgbouncer best practices

2023-07-08 Thread Rita
ver > accordingly. However, I still get can't connect to postgresql some times. I > installed pgbouncer on few servers in the farm. I pointed the traffic to > pgbouncer and things helped dramatically. My question are: is there a ratio > of max connections and pool i should use in my

Re: pgbouncer best practices

2023-07-07 Thread Gurjeet Singh
On Fri, Jul 7, 2023 at 9:24 AM Rita wrote: > > My question are: is there a ratio of max connections and pool i should use in > my pgbouncer config? Short answer: No, there's no recommended ratio for PG max_connections and pgbouncer pool size. In pgbouncer, a client connect

Re: pgbouncer best practices

2023-07-07 Thread Ben Chobot
Rita wrote on 7/7/23 9:23 AM: I have an  application that does many db calls  from a server farm. I've increased my max connections on postgresql to 1000 and tuned the server accordingly. However, I still get can't connect to postgresql some times. I installed pgbouncer on few serv

pgbouncer best practices

2023-07-07 Thread Rita
I have an application that does many db calls from a server farm. I've increased my max connections on postgresql to 1000 and tuned the server accordingly. However, I still get can't connect to postgresql some times. I installed pgbouncer on few servers in the farm. I pointed the

Re: pgbouncer

2023-06-28 Thread Ben Chobot
Laurenz Albe wrote on 6/28/23 5:27 AM: On Wed, 2023-06-28 at 07:19 -0400, Rita wrote: seems like I may need to deploy pgbouncer for my webapp. should i deploy it on the db server or on the webserver? On the database server. You don't want network latency between pgbouncer and PostgreSQ

Re: pgbouncer

2023-06-28 Thread Rita
so) during that time. On Wed, Jun 28, 2023 at 8:23 AM Sebastiaan Mannem wrote: > It greatly depends on what you want to achieve. Both have pro’s and con’s. > What do you need pgbouncer for? > > Verstuurd vanaf mijn iPhone > > > Op 28 jun. 2023 om 13:19 heeft Rita het

Re: pgbouncer

2023-06-28 Thread Giovanni Biscontini
ou'll direct to pgbouncer. A couple more: be careful to choose the right pool_mode and tune the right server_connect_timeout value. all the best, Giovanni Il giorno mer 28 giu 2023 alle ore 13:19 Rita ha scritto: > > seems like I may need to deploy pgbouncer for my webapp. should i deplo

Re: pgbouncer

2023-06-28 Thread Laurenz Albe
On Wed, 2023-06-28 at 07:19 -0400, Rita wrote: > seems like I may need to deploy pgbouncer for my webapp. should i deploy it > on the db server or on the webserver? On the database server. You don't want network latency between pgbouncer and PostgreSQL, so that the connections can b

Re: pgbouncer

2023-06-28 Thread Sebastiaan Mannem
It greatly depends on what you want to achieve. Both have pro’s and con’s. What do you need pgbouncer for? Verstuurd vanaf mijn iPhone > Op 28 jun. 2023 om 13:19 heeft Rita het volgende > geschreven: > >  > > seems like I may need to deploy pgbouncer for my webapp. should

pgbouncer

2023-06-28 Thread Rita
seems like I may need to deploy pgbouncer for my webapp. should i deploy it on the db server or on the webserver? -- --- Get your facts first, then you can distort them as you please.--

pgbouncer: Warning xbuf_connect failed: no such or file directory

2022-02-17 Thread Vikas Sharma
Hi There, Could someone shed some light on this error please? I am trying to set up pgbouncer on a postgres Paas instance. Regards Vikas

Re: PGBouncer logs explanation required

2021-12-20 Thread Peter Eisentraut
On 19.12.21 12:50, Shubham Mittal wrote: 2021-11-25 14:45:45.244 IST [18307] LOG C-0x6ae270: sit/postgres@abcdlogin attempt: db=sit user=postgres tls=no 2021-11-25 14:45:45.299 IST [18307] LOG S-0x6b4f48: sit/postgres@abcd new connection to server (from abcd) 2021-11-25 14:46:17.843 IST [18307]

PGBouncer logs explanation required

2021-12-19 Thread Shubham Mittal
Hi Team, I get below logs in pgbouncer.. when I configure query timeout in spring boot application as below: SessionImplementor session = entityManager.unwrap(SessionImplementor.class); Connection connection = session.connection(); connection.createStatement().execute("SET

AW: error connecting to pgbouncer admin console

2021-12-08 Thread Zwettler Markus (OIZ)
Simply a bug. https://github.com/pgbouncer/pgbouncer/issues/568 Cheers, Markus > -Ursprüngliche Nachricht- > Von: Zwettler Markus (OIZ) > Gesendet: Dienstag, 7. Dezember 2021 17:10 > An: pgsql-general@lists.postgresql.org > Betreff: error connecting to pgbouncer admin

Re: error connecting to pgbouncer admin console

2021-12-08 Thread Peter Eisentraut
On 07.12.21 17:10, Zwettler Markus (OIZ) wrote: I did a pgbouncer configuration using the following ini file: [databases] * = host=localhost port=5433 auth_user=pgbouncer Using the name "pgbouncer" for auth_user is buggy. Try using a different name.

error connecting to pgbouncer admin console

2021-12-07 Thread Zwettler Markus (OIZ)
I did a pgbouncer configuration using the following ini file: [databases] * = host=localhost port=5433 auth_user=pgbouncer [users] [pgbouncer] logfile = /pgdata/pcl_l002/pgbouncer/pgbouncer_pcl_l002.log pidfile = /pgdata/pcl_l002/pgbouncer/pgbouncer_pcl_l002.pid listen_addr = * listen_port

How to Implement DR for a Production PostgreSQL v12.8 database cluster with repmgr & PgBouncer?

2021-11-12 Thread Hilbert, Karin
I manage PostgreSQL v12.8 database clusters. Our database clusters are on Linux VMs, with OS: Flavor: redhat_7 Release: 3.10.0-1160.45.1.el7.x86_64 We have repmgr clusters of 1 Primary & 2 Standby servers & use another server with PgBouncer to direct the connections to the current

Re: Doubt in pgbouncer

2021-11-03 Thread Ninad Shah
There is no equation to determine the best value. It depends on your environment. Regards, Ninad Shah On Wed, 3 Nov 2021 at 19:18, Rama Krishnan wrote: > > Hi All, > > What is the limit value for fixing connection timeout issues? > > As i searched in google and verified

Doubt in pgbouncer

2021-11-03 Thread Rama Krishnan
Hi All, What is the limit value for fixing connection timeout issues? As i searched in google and verified pgbouncer document client_login_timeout If a client connects but does not manage to log in in this amount of time, it will be disconnected. Mainly needed to avoid dead connections stalling

Re: Doubt on pgbouncer

2021-07-22 Thread Rama Krishnan
Ok, thank you sir On Thu, 22 Jul, 2021, 20:23 Ninad Shah, wrote: > Pgbouncer doesn't provide such a functionality. Kindly consider using > pgpool. > > On Thu, 22 Jul 2021 at 15:58, Ganesh Korde wrote: > >> Try using HAProxy. >> >> Regards, >> Gan

Re: Doubt on pgbouncer

2021-07-22 Thread Ninad Shah
Pgbouncer doesn't provide such a functionality. Kindly consider using pgpool. On Thu, 22 Jul 2021 at 15:58, Ganesh Korde wrote: > Try using HAProxy. > > Regards, > Ganesh Korde. > > On Sat, 3 Jul 2021, 9:06 pm Rama Krishnan, wrote: > >> >> Hi Team, >&g

Re: Doubt on pgbouncer

2021-07-22 Thread Ganesh Korde
Try using HAProxy. Regards, Ganesh Korde. On Sat, 3 Jul 2021, 9:06 pm Rama Krishnan, wrote: > > Hi Team, > > How can I split read and write queries using pgbouncer > > Regards > > A.Rama Krishnan > > > <https://www.avast.com/sig-email?utm_medium=email&am

Re: Doubt on pgbouncer

2021-07-07 Thread Merlin Moncure
On Sat, Jul 3, 2021 at 10:36 AM Rama Krishnan wrote: > > > Hi Team, > > How can I split read and write queries using pgbouncer Check out pgbouncer-rr. I haven't used it, but it may do what you need. merlin

Re: Doubt on pgbouncer

2021-07-04 Thread Rama Krishnan
Thank you for the clarification. On Sat, 3 Jul, 2021, 23:20 Ben Chobot, wrote: > Rama Krishnan wrote on 7/3/21 8:35 AM: > > > Hi Team, > > How can I split read and write queries using pgbouncer > > > You do it with your application. Make a pgbouncer database for rea

Re: Doubt on pgbouncer

2021-07-03 Thread Ben Chobot
Rama Krishnan wrote on 7/3/21 8:35 AM: Hi Team, How can I split read and write queries using pgbouncer You do it with your application. Make a pgbouncer database for read/write queries and point it at your postgresql primary, and then make a second pgbouncer database for read-only queries

Re: Doubt on pgbouncer

2021-07-03 Thread Rama Krishnan
; > > How can I split read and write queries using pgbouncer > > No. I think only PgPool can do that because it parses the SQL. > > -- > Bruce Momjian https://momjian.us > EDB https://enterprisedb.com > > If only the physical world exists, free will is an illusion. > >

Re: Doubt on pgbouncer

2021-07-03 Thread Bruce Momjian
On Sat, Jul 3, 2021 at 09:05:58PM +0530, Rama Krishnan wrote: > > Hi Team, > > How can I split read and write queries using pgbouncer No. I think only PgPool can do that because it parses the SQL. -- Bruce Momjian https://momj

Doubt on pgbouncer

2021-07-03 Thread Rama Krishnan
Hi Team, How can I split read and write queries using pgbouncer Regards A.Rama Krishnan <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=

Re: pgbouncer configuration

2021-04-28 Thread Chris Stephens
I had to install pam-devel before reinstalling pgbouncer. appears to be working now. thanks for pointing me in the right direction Laurenz! On Wed, Apr 28, 2021 at 7:09 AM Chris Stephens wrote: > huh. you are right. i originally installed pgbouncer with yum but removed > with just "

Re: pgbouncer configuration

2021-04-28 Thread Chris Stephens
huh. you are right. i originally installed pgbouncer with yum but removed with just "yum remove pgbouncer" before following "Building from Git" section at http://www.pgbouncer.org/install.html. i just ran "make uninstall" -> reinstalled with 403 21-04-28 06:5

Re: pgbouncer configuration

2021-04-27 Thread Laurenz Albe
On Tue, 2021-04-27 at 19:46 -0500, Chris Stephens wrote: > I'm trying to run pgbouncer but am having trouble with what looks like a very > simple configuration. > > centos 7 > postgres 12 > pgbouncer 1.15 > > we are already using pam for database auth. pgbouncer wa

pgbouncer configuration

2021-04-27 Thread Chris Stephens
I'm trying to run pgbouncer but am having trouble with what looks like a very simple configuration. centos 7 postgres 12 pgbouncer 1.15 we are already using pam for database auth. pgbouncer was compiled with --with-pam. there is a /etc/pam.d/pgbouncer config file copied from the one curr

Re: pgbouncer installation example (Step by step)

2020-10-14 Thread Michael Lewis
On Wed, Oct 14, 2020 at 11:08 AM Atul Kumar wrote: > Hi Team, > > Please share a clean example of installing, https://www.pgbouncer.org/install.html > configuring https://www.pgbouncer.org/config.html > and testing pgBouncer. > https://www.pgbouncer.org/usage.html Wha

Re: pgbouncer installation example (Step by step)

2020-10-14 Thread David G. Johnston
On Wed, Oct 14, 2020 at 10:08 AM Atul Kumar wrote: > Please share a clean example of installing, configuring and testing > pgBouncer. > > Your official links are not organized so I need an example of > PgBouncer with organized steps. > As I said on your exact same posting

pgbouncer installation example (Step by step)

2020-10-14 Thread Atul Kumar
Hi Team, Please share a clean example of installing, configuring and testing pgBouncer. Your official links are not organized so I need an example of PgBouncer with organized steps. Regards, Atul

Re: Doubt in pgbouncer

2020-10-02 Thread Achilleas Mantzios
On 2/10/20 9:50 π.μ., Fabio Pardi wrote: Hi Rama, On 02/10/2020 01:42, Rama Krishnan wrote: Hi Friends, By using pg bouncer can we split read and queries pgbouncer is just a connection pooler. The logic where to send the reads and where the writes, should be in our application. yeah

Re: Doubt in pgbouncer

2020-10-02 Thread David G. Johnston
On Thursday, October 1, 2020, Fabio Pardi wrote: > Hi Rama, > > On 02/10/2020 01:42, Rama Krishnan wrote: > > Hi Friends, > > By using pg bouncer can we split read and queries > > > pgbouncer is just a connection pooler. > > The logic where to send the read

Re: Doubt in pgbouncer

2020-10-01 Thread Fabio Pardi
Hi Rama, On 02/10/2020 01:42, Rama Krishnan wrote: > Hi Friends,  > > By using pg bouncer can we split read and queries > pgbouncer is just a connection pooler. The logic where to send the reads and where the writes, should be in our application. regards, fabio pardi

Re: Doubt in pgbouncer

2020-10-01 Thread Rama Krishnan
Yeah. Rob On Fri, 2 Oct, 2020, 05:14 Rob Sargent, wrote: > > > > On Oct 1, 2020, at 5:42 PM, Rama Krishnan wrote: > > > > Hi Friends, > > > > By using pg bouncer can we split read and queries > > > > Thank > > Rk > > Did you mean reads vs writes? >

Re: Doubt in pgbouncer

2020-10-01 Thread Rama Krishnan
Yeah rob can we spilt read/write queries using pgbouncer On Fri, 2 Oct, 2020, 08:43 Rama Krishnan, wrote: > Yeah. Rob > > On Fri, 2 Oct, 2020, 05:14 Rob Sargent, wrote: > >> >> >> > On Oct 1, 2020, at 5:42 PM, Rama Krishnan wrote: >> > >> &g

Re: Doubt in pgbouncer

2020-10-01 Thread Rob Sargent
> On Oct 1, 2020, at 5:42 PM, Rama Krishnan wrote: > > Hi Friends, > > By using pg bouncer can we split read and queries > > Thank > Rk Did you mean reads vs writes?

Doubt in pgbouncer

2020-10-01 Thread Rama Krishnan
Hi Friends, By using pg bouncer can we split read and queries Thank Rk

Re: pgbouncer bug?

2020-08-25 Thread Peter Eisentraut
On 2020-08-21 19:49, Achilleas Mantzios wrote: On 21/8/20 7:56 μ.μ., greigwise wrote: Not sure if this is the right place to post this, but if not someone please point me in the right direction. My issue is with pgbouncer 1.14. This does not seem to happen on 1.13. If I do a service

Re: pgbouncer bug?

2020-08-21 Thread Achilleas Mantzios
On 21/8/20 7:56 μ.μ., greigwise wrote: Not sure if this is the right place to post this, but if not someone please point me in the right direction. My issue is with pgbouncer 1.14. This does not seem to happen on 1.13. If I do a service pgbouncer restart, then anytime I try to connect to

pgbouncer bug?

2020-08-21 Thread greigwise
Not sure if this is the right place to post this, but if not someone please point me in the right direction. My issue is with pgbouncer 1.14. This does not seem to happen on 1.13. If I do a service pgbouncer restart, then anytime I try to connect to my databases via pgbouncer, I get ERROR: no

Re: pgbouncer logrotate found error, skipping

2020-06-11 Thread Adrian Klaver
On 6/11/20 1:47 AM, pgdba pgdba wrote: Hello , When I want to create a logrotate in postgresql, I get this error when I want to work later. Does anyone have any idea about this error? logrotate -f /etc/logrotate.conf error after error: pgbouncer: 1 unknown option 'var' - ignoring

pgbouncer logrotate found error, skipping

2020-06-11 Thread pgdba pgdba
Hello , When I want to create a logrotate in postgresql, I get this error when I want to work later. Does anyone have any idea about this error? logrotate -f /etc/logrotate.conf error after error: pgbouncer: 1 unknown option 'var' - ignoring line error: pgbouncer: 11 unknown unit

Re: pgbouncer with ldap

2019-09-22 Thread Achilleas Mantzios
I could help! pgbouncer and LDAP is a PITA! It could be nice if you replied to the list thread just to have an update on how it goes. On 18/9/19 11:23 π.μ., Ayub M wrote: Hi Achilleas, yes got the pam authentication working. I had to create pgbouncer file in pam directo

Re: pgbouncer with ldap

2019-09-16 Thread Achilleas Mantzios
Please dont top-post. On 14/9/19 9:41 π.μ., Ayub M wrote: Yes I did set that, here is how pgbouncer looks like --- -rwsrwsr-x. 1 root root 2087504 Sep 13 00:45 pgbouncer If you had set the same password in the postgresql server for the user and in the pgbouncer local unix user it should

Re: pgbouncer with ldap

2019-09-13 Thread Ayub M
Yes I did set that, here is how pgbouncer looks like --- -rwsrwsr-x. 1 root root 2087504 Sep 13 00:45 pgbouncer On Fri, Sep 13, 2019 at 6:50 AM Achilleas Mantzios < ach...@matrix.gatewaynet.com> wrote: > On 13/9/19 10:19 π.μ., Ayub M wrote: > > Stumbled in the f

Re: pgbouncer with ldap

2019-09-13 Thread Achilleas Mantzios
On 13/9/19 10:19 π.μ., Ayub M wrote: Stumbled in the first step - PAM authentication via pgbouncer. After compiling pgbouncer with the pam plug-in, I am unable to login into the db - throws PAM error message. Please help. User created with the same password as linux user -- localhost:~$ psql

Re: pgbouncer with ldap

2019-09-13 Thread Ayub M
Stumbled in the first step - PAM authentication via pgbouncer. After compiling pgbouncer with the pam plug-in, I am unable to login into the db - throws PAM error message. Please help. User created with the same password as linux user -- localhost:~$ psql -h dbhost -p 3306 -U admin -W db1 db1

Re: pgbouncer with ldap

2019-09-12 Thread Ayub M
;> "Auth-method field: Only methods supported by PgBouncer’s auth_type >> >> are supported", and "ldap" is not supported. >> >> When there's no ldap support in pgbouncer, there's no ldap support >> >> in pgbouncer. >> >

Re: pgbouncer with ldap

2019-09-11 Thread Achilleas Mantzios
t; are supported", and "ldap" is not supported. >> When there's no ldap support in pgbouncer, there's no ldap support >> in pgbouncer. > To throw in something less tautological: > > PgBouncer supports PAM authentication, so if you are on

Re: pgbouncer with ldap

2019-09-11 Thread Ayub M
le-format > >> "Auth-method field: Only methods supported by PgBouncer’s auth_type > >> are supported", and "ldap" is not supported. > >> When there's no ldap support in pgbouncer, there's no ldap support > >> in pgbouncer. > > To

Re: pgbouncer with ldap

2019-09-09 Thread Ayub M
; are supported", and "ldap" is not supported. > >> When there's no ldap support in pgbouncer, there's no ldap support > >> in pgbouncer. > > To throw in something less tautological: > > > > PgBouncer supports PAM authentication, so if you are

Re: pgbouncer with ldap

2019-09-09 Thread Achilleas Mantzios
orted by PgBouncer’s auth_type are supported", and "ldap" is not supported. When there's no ldap support in pgbouncer, there's no ldap support in pgbouncer. To throw in something less tautological: PgBouncer supports PAM authentication, so if you are on UNIX, you could us

Re: pgbouncer with ldap

2019-09-09 Thread Laurenz Albe
pported by PgBouncer’s auth_type > are supported", and "ldap" is not supported. > When there's no ldap support in pgbouncer, there's no ldap support > in pgbouncer. To throw in something less tautological: PgBouncer supports PAM authentication, so if you are on

Re: pgbouncer with ldap

2019-09-09 Thread Ayub M
It has hba and via hba file one can specify ldap connections https://www.postgresql.org/docs/9.3/auth-pg-hba-conf.html On Mon, Sep 9, 2019, 3:40 AM Christoph Moench-Tegeder wrote: > ## Ayub M (hia...@gmail.com): > > > Hello, I am trying to setup pgbouncer with ldap to conn

Re: pgbouncer with ldap

2019-09-09 Thread Christoph Moench-Tegeder
are supported", and "ldap" is not supported. When there's no ldap support in pgbouncer, there's no ldap support in pgbouncer. Regards, Christoph -- Spare Space

Re: pgbouncer with ldap

2019-09-09 Thread Christoph Moench-Tegeder
## Ayub M (hia...@gmail.com): > Hello, I am trying to setup pgbouncer with ldap to connect with rds > postgres. Downloaded latest version of pbbouncer (1.11) and using hba > auth_type. Getting below error when starting pgbouncer daemon. Am I > missing something? There's no

pgbouncer with ldap

2019-09-09 Thread Ayub M
Hello, I am trying to setup pgbouncer with ldap to connect with rds postgres. Downloaded latest version of pbbouncer (1.11) and using hba auth_type. Getting below error when starting pgbouncer daemon. Am I missing something? [centos@ip-x.x.x.x etc]$ pgbouncer -V PgBouncer version 1.11.0 [centos

Re: Azure Database for PostgreSQL - how to add pgbouncer or similar?

2019-06-29 Thread Adrian Klaver
helmed by the Azure, too many options there... You are correct - I could easily create a Linux VM and install Postgres and pgbouncer there :-) But how to create the "cloudliness" then? I.e. how to automatically launch additional VM instances automatically when the load is increasing?

Re: Azure Database for PostgreSQL - how to add pgbouncer or similar?

2019-06-29 Thread Alexander Farber
You are correct - I could easily create a Linux VM and install Postgres and pgbouncer there :-) But how to create the "cloudliness" then? I.e. how to automatically launch additional VM instances automatically when the load is increasing? (and still keep the database "in sync") Regards Alex

Re: Azure Database for PostgreSQL - how to add pgbouncer or similar?

2019-06-29 Thread Adrian Klaver
On 6/29/19 12:34 AM, Alexander Farber wrote: Good morning, in Microsoft Azure how to add pgbouncer or a similar software enabling multiple simultaneous connections? Not from within. Supported extensions: https://docs.microsoft.com/en-us/azure/postgresql/concepts-extensions Using search

Azure Database for PostgreSQL - how to add pgbouncer or similar?

2019-06-29 Thread Alexander Farber
Good morning, in Microsoft Azure how to add pgbouncer or a similar software enabling multiple simultaneous connections? After reading https://docs.microsoft.com/en-us/azure/postgresql/overview I could not find such options... Thank you Alex

Re: Getting error while running the pg_basebackup through PGBOUNCER

2019-04-08 Thread Adrian Klaver
On 4/8/19 7:19 AM, Raghavendra Rao J S V wrote: Thank you very much for your prompt response. Could you explain other admin type operations, which are not supported by pgbouncer? I would say anything you could not run through psql. Regards, Raghavendra Rao. -- Adrian Klaver adrian.kla

Re: Getting error while running the pg_basebackup through PGBOUNCER

2019-04-08 Thread Raghavendra Rao J S V
Thank you very much for your prompt response. Could you explain other admin type operations, which are not supported by pgbouncer? Regards, Raghavendra Rao. On Mon, 8 Apr 2019 at 19:16, Scot Kreienkamp wrote: > Replication and several other admin type operations must connect directly >

RE: Getting error while running the pg_basebackup through PGBOUNCER

2019-04-08 Thread Scot Kreienkamp
Basically anything that is not written as a sql query should be connected directly to PG. PGBouncer is really only meant for SQL query type connections. From: Raghavendra Rao J S V [mailto:raghavendra...@gmail.com] Sent: Monday, April 8, 2019 10:19 AM To: Scot Kreienkamp Cc: pgsql-general

Re: Getting error while running the pg_basebackup through PGBOUNCER

2019-04-08 Thread Pavel Stehule
po 8. 4. 2019 v 15:42 odesílatel Raghavendra Rao J S V < raghavendra...@gmail.com> napsal: > Hi All, > > We are using PGBOUNCER(connection pool mechanisam). PGBOUNCER uses port > 5433. > > Postgres database port number is 6433. By using port 5433 PGBOUNCER is > conne

RE: Getting error while running the pg_basebackup through PGBOUNCER

2019-04-08 Thread Scot Kreienkamp
Replication and several other admin type operations must connect directly to PG. They are not supported through PGBouncer. From: Raghavendra Rao J S V [mailto:raghavendra...@gmail.com] Sent: Monday, April 8, 2019 9:21 AM To: pgsql-general@lists.postgresql.org Subject: Getting error while

Getting error while running the pg_basebackup through PGBOUNCER

2019-04-08 Thread Raghavendra Rao J S V
Hi All, We are using PGBOUNCER(connection pool mechanisam). PGBOUNCER uses port 5433. Postgres database port number is 6433. By using port 5433 PGBOUNCER is connecting to postgres port 6433 database. Now PGBOUNCER is establishing the connections properly but when I try to run the pg_basebackup

Re: pgbouncer

2019-01-18 Thread Fabio Pardi
and a new pgbouncer connection is spawn to the database. Alternatively, the client cannot be served and has to wait. I hope my example reported here below will clarify the situation: --- pgbouncer setting: test_db = host=... dbname=... user=... pool_size=2 [pgbouncer] pool_mode

Re: pgbouncer

2019-01-17 Thread David G. Johnston
> Hello, > >> I am a bit confused about the settings in pgbouncer > >> > >> What's exactly the pool_size? > > > > Roughly, the number of open connections pgbouncer will keep to PostgreSQL. > > > >> If I set 3, and I tried to connect from 4 s

Re: pgbouncer

2019-01-17 Thread Nicola Contu
> If I set 3, and I tried to connect from 4 shells, I am still able to connect. That would be the point - pgbouncer is sharing the 3 connections it keeps with PostgreSQL between the 4 client connections made to it. Mmh, my pool_mode is per session. The 4 sessions were active, not doing any qu

Re: pgbouncer

2019-01-17 Thread Fabio Pardi
David, Are you sure? The behaviour I experienced is different from what you described. On 17/01/2019 16:32, David G. Johnston wrote: > On Thu, Jan 17, 2019 at 8:18 AM Nicola Contu wrote: >> >> Hello, >> I am a bit confused about the settings in pgbouncer >> >

Re: pgbouncer

2019-01-17 Thread David G. Johnston
On Thu, Jan 17, 2019 at 8:18 AM Nicola Contu wrote: > > Hello, > I am a bit confused about the settings in pgbouncer > > What's exactly the pool_size? Roughly, the number of open connections pgbouncer will keep to PostgreSQL. > If I set 3, and I tried to connect from 4

pgbouncer

2019-01-17 Thread Nicola Contu
Hello, I am a bit confused about the settings in pgbouncer What's exactly the pool_size? If I set 3, and I tried to connect from 4 shells, I am still able to connect. Same thing for max_db_connections. I set this to 1 and I am able to connect from 2 shells. This is kind of confusing and I&

Re: Pgbouncer discard all

2018-10-18 Thread Fabio Pardi
Contu wrote: > Hello, > is this normal? can anyone help? > > Thanks a lot for your help in advance. > > Nicola > > Il giorno mer 10 ott 2018 alle ore 17:03 Nicola Contu <mailto:nicola.co...@gmail.com>> ha scritto: > > Hello, > we are run

RE: Pgbouncer discard all

2018-10-16 Thread Scot Kreienkamp
If they are visible in pg_stat_activity then yes. Likewise, if they are only visible in pgbouncer, then no. The last query being discard all means that PGBouncer has returned the connection to the pool to make it available to the next client that needs it. So what you’re seeing sounds to me

  1   2   >