Comments (3)
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.
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.
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)
- Error with unclear message HOT 2
- support sql hint just execute query to primary node
- errors on insert with prepared statements HOT 2
- Health check command HOT 2
- request:release plan for pgcat in PostgreSQL 16 HOT 1
- Support Service annotations in the helm chart HOT 1
- Add support for negotiating the protocol version with the client
- Errors in some libraries when using PreparedStatements
- Fails to compile with space in path
- The docs don't link to the APT Repository for pgcat HOT 2
- PGCat not using idle connections, instead spawns new ones. HOT 3
- ERROR pgcat::server: Unknown code: N HOT 1
- PGcat detection from code HOT 1
- Feature request: per-statement-type counters
- Error when prepared Statement in transaction mode
- Ubuntu 24.04 Packages
- support sql admin pool and server
- Invalid SQL Statement in rust integrration test
- "No pool configured for database" when trying to connect to pgcat instance HOT 2
- SELECT ... FOR UPDATE is routed to REPLICA HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgcat.