Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction level pooling #39

Closed
knizhnik opened this issue Jan 31, 2020 · 2 comments
Closed

Transaction level pooling #39

knizhnik opened this issue Jan 31, 2020 · 2 comments

Comments

@knizhnik
Copy link

As far as I understand pgagroal implements session level pooling, i.e. number of sessions is equal to number of Postgres backends.
So pgagroal can not be used to restrict number of Postgres backends (as pgbouncer/Odyssey can do). It can only help when clients do not establish permanent connections with database but perform connect/disconnect on each operation. But it seems to be quite exotic use case now, doesn't it?

Are there any plans to support transaction level pooling?

@jesperpedersen
Copy link
Collaborator

Yes, currently pgagroal is session based.

I don't see any reason why there shouldn't be a transaction based model though, so I have created [#40] for this. I have left it a community issue for now, as I got other stuff I need to look at first.

See the pool-less mode of https://agroal.github.io/ to see an example of where a connection is released on a transaction boundary.

If you are happy with this answer feel free close this issue.

Thanks for your feedback Konstantin !

@jesperpedersen
Copy link
Collaborator

I'm going to close this issue as [#40] have been created. Feel free to reopen if you have additional feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants