Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

server_settings={'jit': 'off'} for Pool with PgBouncer #836

Answered by FyZzyss
FyZzyss asked this question in Q&A
Discussion options

I noticed that the first request from async pg.pool is slow.
Found a solution here:
#794

But when I execute:

await asyncpg.create_pool(
 max_size=self.max_size,
 min_size=1,
 host=self._host,
 port=self._port,
 user=self._username,
 password=self._password,
 database=self._schema_name,
 init=self._init_connection,
 max_inactive_connection_lifetime=3,
 command_timeout=60,
 server_settings={'jit': 'off'}
 )

it raises Exception:

asyncpg.exceptions.ProtocolViolationError: unsupported startup parameter: jit

Further search showed that the problem may be in pgbouncer. Is it possible to fix it somehow?

You must be logged in to vote

Add jit = off to config

Replies: 1 comment 2 replies

Comment options

Add jit = off to config

You must be logged in to vote
2 replies
Comment options

to config of pgbouncer?

Comment options

Have you found a solution?

Answer selected by FyZzyss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /