question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to connect on PostgreSQL via pgbouncer.

See original GitHub issue

Hi, I’m trying to connect commafeed on postgresql via pgbouncer but I’m getting this error in pgbouncer


2014-03-10 21:13:59.385 5773 WARNING C-0x1be8bb0: (nodb)/(nouser)@127.0.0.1:38733 unsupported startup parameter: extra_float_digits=2
2014-03-10 21:13:59.385 5773 LOG C-0x1be8bb0: (nodb)/(nouser)@127.0.0.1:38733 closing because: Unsupported startup parameter: extra_float_digits (age=0)
2014-03-10 21:13:59.385 5773 WARNING C-0x1be8bb0: (nodb)/(nouser)@127.0.0.1:38733 Pooler Error: Unsupported startup parameter: extra_float_digits

Commafeeds logs show this :

https://gist.github.com/moumoul/9473401

My database configuration file is like this:

        <Resource id="PostgreSQL" type="DataSource">
                JdbcDriver org.postgresql.Driver
        JdbcUrl jdbc:postgresql://localhost:6432/commafeed
                UserName xxxxxxxxxxxxx
                Password xxxxxxxxxxxx
                MaxActive 5
        </Resource>

This configuration file is working fine when I’m directly connect to PostgreSQL.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

107reactions
isapircommented, Jan 7, 2016

So to save the next guy from clicking the link above, the “fix” is to add this to the config.ini under the [pgbouncer] section:

ignore_startup_parameters = extra_float_digits
10reactions
JosDeGraevecommented, Apr 17, 2018

To save the next next guy some more clicks:

http://lists.pgfoundry.org/pipermail/pgbouncer-general/2008-November/000307.html

There are few parameters that pgbouncer can keep track of. Like client_encoding. Because postgres reports back chenges of that parameter. The ‘extra_float_digits’ is not one of them. Thus, in transaction pooling mode, there is no way to give consistent picture of that parameter to clients.

Giving hard-error instead of ignoring by default is delierate, so admin can decide if the parameter is actually important for application logic. If it is then you should make if default from postgres config.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PgBouncer Unable to connect to postgres master #1511
I think the problem is PGBouncer does DNS lookup in parallel, and at least one of the query is returning ServerFail , which...
Read more >
can't connect to pgbouncer administration database
Show activity on this post. I installed pgbouncer and I setup the pgbouncer. ini and my application can connect to pgbouncer and make...
Read more >
OperationalError: ERROR: pgbouncer cannot connect to server
It seems the connection is going through, but the user and database name is postgres . Those credentials aren't what I supplied in...
Read more >
unable to connect via pg bouncer - Google Groups
unable to connect to postgres db via pgbouncer. this occurs both if pgbouncer added ... connect through pgbouncer to postgres database and get...
Read more >
PostgreSQL Connection Pooling with PgBouncer - pgDash
PgBouncer is an open-source, lightweight, single-binary connection pooler for PostgreSQL. It can pool connections to one or more databases (on possibly ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found