GithubHelp home page GithubHelp logo

Comments (3)

levkk avatar levkk commented on July 28, 2024

They are already case-insensitive. Take a look at the regexes defined in query_router.rs, you'll note the (?i) notation. I think you might be on some old version of pgcat because I remember making them case-insensitive at some point. Try git pull origin main to update to latest version. Feel free to re-open if the bug re-occurs.

I think it's also possible that the issue you're facing is you're running the pooler in session mode and/or you're executing the SET SHARD command inside a transaction that's already assigned to a shard.

from pgcat.

DeoLeung avatar DeoLeung commented on July 28, 2024

I'm building from your #79 branch so it shall be up2date.

you're right, I got this error when I type the sql in my postico query IDE, if i did it from psql terminal, it works.

from pgcat.

levkk avatar levkk commented on July 28, 2024

My guess Postico opens a transaction for you automatically before it executes your SQL. Once you're inside a transaction, you can't select a shard anymore because transactions have to run on a shard as soon as they are started and pgcat picks shard 0 by default in that case.

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.