GithubHelp home page GithubHelp logo

Comments (3)

film42 avatar film42 commented on July 28, 2024

I believe this is also true for starting pgcat. I noticed if postgresql is offline, pgcat will not boot because it cannot validate. Imagine you just had a postgresql database blow up and while someone is working on fixing it, you push a configuration change to pgcat which needs a reload or a restart (depending on how you deploy it). Neither can happen because your teammate is still working on getting the db server to boot. I don't think it makes sense to make pgcat wait for postgres to be up before starting.

This issue should solve both of those problems.

As an impl idea: The connection pools cached server info params should be read-through. If they are not currently stored, when a client connects to pgcat, we should attempt to fetch server info params on-demand. If we are unable to do so, reject the client connection. If we are, accept the connection and cache the params for the next client who connects. We should refresh this cache (make an attempt to) when we validate a new config on reload or boot. Thoughts?

from pgcat.

levkk avatar levkk commented on July 28, 2024

That would work!

from pgcat.

levkk avatar levkk commented on July 28, 2024

Should be fixed. Feel free to reopen if any issues arise.

from pgcat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.