PgBouncer chạy ở chế độ transaction có thể gây rò rỉ tenant context trong RLS do cách xử lý SET LOCAL. Kết đoán cho thấy khi dùng SET LOCAL ngoài transaction, giá trị vẫn tồn tại đến khi kết thúc session, không chỉ transaction. Điều này gây ra kế hoạch query bị share giữa các tenant, dẫn đến performance issue vì filter condition không được áp dụng đúng. Bài viết đưa ra số liệu cụ thể về impact và giải pháp sử dụng pgbouncerpool thay vì connection pool thông thường để tránh vấn đề này.
AI summaries can be wrong. Read the original before relying on anything important.
Why read it: Bài này giúp hiểu các vấn đề bảo mật và hiệu năng khi RLS hoạt động cùng PgBouncer trong chế độ transaction.
Answer 3 short questions to earn reward points for this article. Only do it if you want the points.
3 questions · under a minute · optional
Source: https://postgr.es/p/9wD. 8 Sync News only summarizes and links out; content copyright belongs to the authors and original sources.
Read the news here, practice coding, follow structured courses and train for IELTS on our sibling products — all connected through one 8 Sync account.
The ecosystem home: product overviews, blog and full pricing.
ExploreLearn along a clear roadmap: videos, auto-graded quizzes, certificates and mentors who ship for a living.
View the roadmap1,000 DSA problems in Vietnamese, auto-graded across 7 languages — many FREE, right in your browser.
Practice for freeAI grading for all four IELTS skills with detailed rubric feedback.
Try it freeA 22 MB AI IDE for Vietnamese devs.
Download freeOrganizational memory for AI agents.
ExploreAI that staffs your Fanpage and qualifies leads for you.
Try itPostgres 18’s new file_copy_method = clone setting lets you give every git worktree its own copy of your database in seconds, without eating up your disk.
This week vector search opened the MySQL Contributor Summit. A plugin started the fire, the M-ecosystem picked it up, the hyperscalers went native, and now the benchmark wars have begun.
json vs jsonb in PostgreSQL 17 and 18, measured on six document shapes: when jsonb is 23% smaller or 41% larger, read speed, GIN, and what it changes.
Two incompatible migrations merge clean, then resolve in the database — as a failed deploy in one environment and a healthy one in another, decided by apply order. The idempotent version is worse: every statement succeeds and the schemas silently diverge.
OccupySaaS is a protest movement in code: laid-off developers building clean-room, open-source, drop-in replacements for the SaaS giants. First up: ZeroAuthy (Auth0) and SalesCompel (Salesforce).
An API can save an order and crash before publishing the message that tells other services about it.
If you have certain lines of code that repeat over and over again in a project, there's a pretty standard solution for it: using a function. But what about when you have the same project file setup th
“” is published by Filipe Motta in ITNEXT.
Loading comments…