Giter Site home page Giter Site logo

Comments (1)

markphelps avatar markphelps commented on June 12, 2024 1

Hey @Gogoloogu thanks for the request!

I think we'll need to switch Postgres DB libraries from our current lib/pq to something like pgx in order to support this as it looks like lib/pq cannot handle multiple hosts and also looks like its in maintenance mode (so it might be time to switch anyways to another impl)

Looks like hashicorp/vault ran into the same thing and decided to switch to pgx

We'll have to do some investigation to see:

  1. how difficult a lift this would be to switch (Im hoping not too difficult since we don't do anything crazy as far as queries)
  2. how this will affect performance (hopefully it will be an improvement)

So this might take a little bit of time, but I think its doable and likely the right move to switch to a better maintained library like pgx anyways.

It looks like the dburl library that we use to parse db connection strings natively only supports lib/pq, however they do allow us to add our own schema to driver support, so that might be possible to get it to support pgx.

golang migrate which we use for migrations also seems to support pgx.. so we should be good there

But yeah I think this is doable, it just might take a bit of work/time but any help would be appreciated!!

from flipt.

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.