{"schema": "pgtrue.report/1", "url": "https://pgtrue.postgres.ai/shared/brief/db9af505-830b-41da-b083-dcba80fc009c", "published": "2026-10-21T05:22:04Z", "publisher": "PostgresAI", "article": {"title": "Deploying the Multigres Operator", "url": "https://multigres.com/blog/deploying-the-multigres-operator", "date_published": "2026-05-29T00:00:00Z", "author": "Joe Sciarrino", "publisher": "Multigres"}, "grade": "B", "axes": [{"axis": "Factual", "summary": "B \u00b7 1 wrong of 15 checked \u00b7 0 caveats"}, {"axis": "Applicable", "summary": "B+ \u00b7 1 wrong of 6 checked \u00b7 1 caveat"}, {"axis": "Consistent", "summary": "A \u00b7 0 wrong of 15 checked \u00b7 0 caveats"}, {"axis": "Transparent", "summary": "0 wrong \u00b7 0 caveats \u00b7 1 checked"}, {"axis": "Safe", "summary": "not applicable"}], "findings": [{"anchor": "F1", "url": "https://pgtrue.postgres.ai/shared/brief/db9af505-830b-41da-b083-dcba80fc009c#F1", "claim": "\u2026guarantees safe operations without interrupting writes on the primary.", "title": "Primary-last maintenance does not guarantee uninterrupted writes", "explanation": "Leader changes interrupt primary writes. go/services/multipooler/manager/rpc_consensus.go:239-250 specifies primary demotion and restart as a standby. The operator requests that transition during primary updates. Gateway buffering waits and retries eligible requests against the new primary.", "verdict": "False", "sources": [{"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/services/multipooler/manager/rpc_consensus.go#L286-L294", "label": "multigres@main@f247de0fe4 \u00b7 go/services/multipooler/manager/rpc_consensus.go:286-294"}, {"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/services/multipooler/manager/rpc_consensus.go#L239-L250", "label": "multigres@main@f247de0fe4 \u00b7 go/services/multipooler/manager/rpc_consensus.go:239-250"}, {"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/services/multigateway/poolergateway/pooler_gateway.go#L99-L108", "label": "multigres@main@f247de0fe4 \u00b7 go/services/multigateway/poolergateway/pooler_gateway.go:99-108"}, {"url": "https://github.com/multigres/multigres-operator/blob/e66b2e6c3457469129c2840c14dab19a8a97645c/pkg/resource-handler/controller/shard/reconcile_pool_pods.go#L582-L584", "label": "multigres-operator@v0.10.3 \u00b7 pkg/resource-handler/controller/shard/reconcile_pool_pods.go:582-584"}]}, {"anchor": "F10", "url": "https://pgtrue.postgres.ai/shared/brief/db9af505-830b-41da-b083-dcba80fc009c#F10", "claim": "\u2026the other two keep operating without interruption.", "explanation": "The gateway does not mask every query error during failover. pooler_gateway.go:64-71 classifies MTF01 and 25006 for buffering. Lines 172-177 return other execution errors. Proactive buffering also exists at lines 133-154. These paths support possible query interruptions, but do not establish mandatory client reconnection or measure zone-failure interruptions.", "verdict": "Misleading", "sources": [{"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/services/multigateway/poolergateway/pooler_gateway.go#L45-L105", "label": "multigres@main@f247de0fe4 \u00b7 go/services/multigateway/poolergateway/pooler_gateway.go:45-105"}, {"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/services/multigateway/poolergateway/pooler_gateway.go#L110-L192", "label": "multigres@main@f247de0fe4 \u00b7 go/services/multigateway/poolergateway/pooler_gateway.go:110-192"}]}, {"anchor": "F3", "url": "https://pgtrue.postgres.ai/shared/brief/db9af505-830b-41da-b083-dcba80fc009c#F3", "claim": "\u2026pgctld which owns the local Postgres process and Multipooler.", "title": "Kubernetes controls Multipooler as a separate sidecar", "explanation": "Kubernetes manages Multipooler as a native sidecar. pkg/resource-handler/controller/shard/containers.go:260-262 describes an init container with restartPolicy Always. Lines 303-308 construct its separate container specification. pgctld manages PostgreSQL.", "verdict": "Mostly accurate", "sources": [{"url": "https://github.com/multigres/multigres-operator/blob/e66b2e6c3457469129c2840c14dab19a8a97645c/pkg/resource-handler/controller/shard/containers.go#L260-L262", "label": "multigres-operator@v0.10.3 \u00b7 pkg/resource-handler/controller/shard/containers.go:260-262"}, {"url": "https://github.com/multigres/multigres-operator/blob/e66b2e6c3457469129c2840c14dab19a8a97645c/pkg/resource-handler/controller/shard/containers.go#L302-L309", "label": "multigres-operator@v0.10.3 \u00b7 pkg/resource-handler/controller/shard/containers.go:302-309"}]}, {"anchor": "F4", "url": "https://pgtrue.postgres.ai/shared/brief/db9af505-830b-41da-b083-dcba80fc009c#F4", "claim": "\u2026every committed write is acknowledged by one standby\u2026", "title": "AT_LEAST_2 requires one synchronous standby acknowledgment", "explanation": "AT_LEAST_2 maps to AtLeastN(2). go/common/consensus/policy_at_least_n.go:115-116 subtracts the primary acknowledgment. The resulting configuration requires one standby and enables synchronous commit.", "verdict": "Accurate", "sources": [{"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/common/consensus/durability.go#L30-L35", "label": "multigres@main@f247de0fe4 \u00b7 go/common/consensus/durability.go:30-35"}, {"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/common/consensus/policy_at_least_n.go#L112-L135", "label": "multigres@main@f247de0fe4 \u00b7 go/common/consensus/policy_at_least_n.go:112-135"}, {"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/common/consensus/policy_at_least_n.go#L112-L135", "label": "multigres@main@f247de0fe4 \u00b7 go/common/consensus/policy_at_least_n.go:112-135"}]}, {"anchor": "F5", "url": "https://pgtrue.postgres.ai/shared/brief/db9af505-830b-41da-b083-dcba80fc009c#F5", "claim": "This is the same code path as every later failover\u2026", "title": "Bootstrap and failover share the leader-appointment workflow", "explanation": "coordinatorLedRuleChange serves bootstrap and normal failover in go/services/multiorch/consensus/rule_change.go:38-40. Initial cohort establishment also claims an exclusive initialization right before proceeding. Bootstrap-specific preparation does not contradict the shared election path.", "verdict": "Accurate", "sources": [{"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/services/multiorch/consensus/rule_change.go#L112-L117", "label": "multigres@main@f247de0fe4 \u00b7 go/services/multiorch/consensus/rule_change.go:112-117"}, {"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/services/multiorch/consensus/rule_change.go#L38-L40", "label": "multigres@main@f247de0fe4 \u00b7 go/services/multiorch/consensus/rule_change.go:38-40"}, {"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/services/multiorch/recovery/actions/shard_init_action.go#L78-L135", "label": "multigres@main@f247de0fe4 \u00b7 go/services/multiorch/recovery/actions/shard_init_action.go:78-135"}]}, {"anchor": "F6", "url": "https://pgtrue.postgres.ai/shared/brief/db9af505-830b-41da-b083-dcba80fc009c#F6", "claim": "\u2026drains standbys out of the replication set before terminating their pods.", "title": "Normal scale-down removes the standby before pod deletion", "explanation": "The operator sends STANDBY_UPDATE_OPERATION_REMOVE before advancing the drain state. pkg/data-handler/drain/drain.go:165-170 performs that request. The state machine later marks the pod ReadyForDeletion at line 250.", "verdict": "Accurate", "sources": [{"url": "https://github.com/multigres/multigres-operator/blob/e66b2e6c3457469129c2840c14dab19a8a97645c/pkg/data-handler/drain/drain.go#L165-L170", "label": "multigres-operator@v0.10.3 \u00b7 pkg/data-handler/drain/drain.go:165-170"}, {"url": "https://github.com/multigres/multigres-operator/blob/e66b2e6c3457469129c2840c14dab19a8a97645c/pkg/data-handler/drain/drain.go#L240-L250", "label": "multigres-operator@v0.10.3 \u00b7 pkg/data-handler/drain/drain.go:240-250"}]}, {"anchor": "F7", "url": "https://pgtrue.postgres.ai/shared/brief/db9af505-830b-41da-b083-dcba80fc009c#F7", "claim": "\u2026which forwards queries to the right Multipooler over gRPC.", "title": "The gateway communicates with poolers over gRPC", "explanation": "The gateway creates its pooler connection with grpccommon.NewClient in go/services/multigateway/poolergateway/pooler_connection.go:171-175. The same function constructs the QueryService wrapper.", "verdict": "Accurate", "sources": [{"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/services/multigateway/poolergateway/pooler_connection.go#L165-L185", "label": "multigres@main@f247de0fe4 \u00b7 go/services/multigateway/poolergateway/pooler_connection.go:165-185"}]}, {"anchor": "F8", "url": "https://pgtrue.postgres.ai/shared/brief/db9af505-830b-41da-b083-dcba80fc009c#F8", "claim": "\u2026postgresql://postgres:<password>@demo-multi-az-multigateway:5432/postgres\u2026", "title": "The example URI matches the generated gateway endpoint", "explanation": "The operator names the service <cluster>-multigateway and exposes TCP port 5432. pkg/cluster-handler/controller/multigrescluster/builders_global.go:430-467 constructs it. The linked EKS guide connects as postgres to the postgres database.", "verdict": "Accurate", "sources": [{"url": "https://github.com/multigres/multigres-operator/blob/e66b2e6c3457469129c2840c14dab19a8a97645c/pkg/cluster-handler/controller/multigrescluster/builders_global.go#L430-L467", "label": "multigres-operator@v0.10.3 \u00b7 pkg/cluster-handler/controller/multigrescluster/builders_global.go:430-467"}, {"url": "https://github.com/multigres/multigres-operator/blob/e66b2e6c3457469129c2840c14dab19a8a97645c/pkg/cluster-handler/controller/multigrescluster/builders_global.go#L430-L467", "label": "multigres-operator@v0.10.3 \u00b7 pkg/cluster-handler/controller/multigrescluster/builders_global.go:430-467"}, {"url": "https://github.com/multigres/multigres/blob/9fcd28b847810612601f5cacd5b3d0689834f912/docs/kubernetes/eks.md", "label": "https://github.com/multigres/multigres/blob/9fcd28b847810612601f5cacd5b3d0689834f912/docs/kubernetes/eks.md"}]}, {"anchor": "F9", "url": "https://pgtrue.postgres.ai/shared/brief/db9af505-830b-41da-b083-dcba80fc009c#F9", "claim": "The gateway routes writes to the primary's pooler\u2026", "title": "PRIMARY routing selects the observed leader's pooler", "explanation": "PRIMARY targets use the observed leader ID to select a pooler connection. go/services/multigateway/poolergateway/load_balancer.go:235-272 implements that selection. Missing leader observations or connections return UNAVAILABLE.", "verdict": "Accurate", "sources": [{"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/services/multigateway/poolergateway/load_balancer.go#L235-L272", "label": "multigres@main@f247de0fe4 \u00b7 go/services/multigateway/poolergateway/load_balancer.go:235-272"}]}, {"anchor": "F11", "url": "https://pgtrue.postgres.ai/shared/brief/db9af505-830b-41da-b083-dcba80fc009c#F11", "claim": "Multigateway speaks the Postgres wire protocol.", "title": "Multigateway accepts PostgreSQL protocol connections", "explanation": "Multigateway creates a PostgreSQL protocol listener in go/services/multigateway/init.go:509. The listener accepts PostgreSQL client connections.", "verdict": "Accurate", "sources": [{"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/services/multigateway/init.go#L490-L550", "label": "multigres@main@f247de0fe4 \u00b7 go/services/multigateway/init.go:490-550"}, {"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/common/pgprotocol/server/listener.go#L1-L80", "label": "multigres@main@f247de0fe4 \u00b7 go/common/pgprotocol/server/listener.go:1-80"}]}, {"anchor": "F12", "url": "https://pgtrue.postgres.ai/shared/brief/db9af505-830b-41da-b083-dcba80fc009c#F12", "claim": "It watches replication health\u2026", "title": "Multiorch checks replication health", "explanation": "Multiorch checks WAL receipt and WAL receiver streaming state in go/services/multiorch/recovery/analysis/generator.go:384.", "verdict": "Accurate", "sources": [{"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/services/multiorch/recovery/analysis/generator.go#L350-L400", "label": "multigres@main@f247de0fe4 \u00b7 go/services/multiorch/recovery/analysis/generator.go:350-400"}]}, {"anchor": "F13", "url": "https://pgtrue.postgres.ai/shared/brief/db9af505-830b-41da-b083-dcba80fc009c#F13", "claim": "\u2026runs failovers\u2026", "title": "Multiorch orchestrates primary replacement", "explanation": "Multiorch invokes consensus leader appointment from go/services/multiorch/recovery/actions/appoint_leader.go:118.", "verdict": "Accurate", "sources": [{"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/services/multiorch/recovery/actions/appoint_leader.go#L37-L125", "label": "multigres@main@f247de0fe4 \u00b7 go/services/multiorch/recovery/actions/appoint_leader.go:37-125"}]}, {"anchor": "F14", "url": "https://pgtrue.postgres.ai/shared/brief/db9af505-830b-41da-b083-dcba80fc009c#F14", "claim": "\u2026if the application opts in, routes reads to replicas.", "title": "Replica reads require an optional replica endpoint", "explanation": "Multigateway creates an optional replica listener in go/services/multigateway/init.go:526. Its handler selects replica targets.", "verdict": "Accurate", "sources": [{"url": "https://github.com/multigres/multigres/blob/f247de0fe41d49332ab787eb0a600c5ac5eb0964/go/services/multigateway/init.go#L490-L550", "label": "multigres@main@f247de0fe4 \u00b7 go/services/multigateway/init.go:490-550"}]}, {"anchor": "F15", "url": "https://pgtrue.postgres.ai/shared/brief/db9af505-830b-41da-b083-dcba80fc009c#F15", "claim": "One pooler per Postgres instance.", "title": "Each Postgres pool pod has one Multipooler", "explanation": "Each pool pod has one Multipooler sidecar and one pgctld container. The constructor confirms the pairing in pkg/resource-handler/controller/shard/pool_pod.go:94.", "verdict": "Accurate", "sources": [{"url": "https://github.com/multigres/multigres-operator/blob/e66b2e6c3457469129c2840c14dab19a8a97645c/pkg/resource-handler/controller/shard/pool_pod.go#L94-L99", "label": "multigres-operator@v0.10.3 \u00b7 pkg/resource-handler/controller/shard/pool_pod.go:94-99"}]}, {"anchor": "F17", "url": "https://pgtrue.postgres.ai/shared/brief/db9af505-830b-41da-b083-dcba80fc009c#F17", "claim": "To add a replica per cell:\u2026", "title": "The scaling patch adds three pool pods", "explanation": "Setting replicasPerCell to 2 requests six pool pods across three cells (derived: 3\u00d72). The original value requests three pods. api/v1alpha1/shard_types.go:77 defines the per-cell count. Restoring 1 requests three pods again.", "verdict": "Accurate", "sources": [{"url": "https://github.com/multigres/multigres-operator/blob/e66b2e6c3457469129c2840c14dab19a8a97645c/api/v1alpha1/shard_types.go#L77-L78", "label": "multigres-operator@v0.10.3 \u00b7 api/v1alpha1/shard_types.go:77-78"}, {"url": "https://github.com/multigres/multigres-operator/blob/e66b2e6c3457469129c2840c14dab19a8a97645c/pkg/resource-handler/controller/shard/reconcile_pool_pods.go#L37-L40", "label": "multigres-operator@v0.10.3 \u00b7 pkg/resource-handler/controller/shard/reconcile_pool_pods.go:37-40"}]}]}