Paste into your AI assistant to fix the article, then ask for a re-review.
Show the text
Fix the article with this report, then ask pgTrue for a re-review.
# pgTrue report: PostgreSQL to SQL Field Notes: Connections
Article title: PostgreSQL to SQL Field Notes: Connections
Article URL: https://devblogs.microsoft.com/azure-sql/pg-to-sql-connections
Report URL: https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886
Audited revision: 2 of 2, 2026-10-30 12:17:45 UTC
Overall letter: A-
## Axes
- Factual: A · 0 wrong · 14 checked · 0 caveats · assessed
- Applicable: A · 0 wrong · 14 checked · 0 caveats · assessed
- Consistent: A · 0 wrong · 14 checked · 0 caveats · assessed
- Transparent: C · 0 wrong · 6 checked · 0 caveats · partly assessed
- Safe: A · 0 wrong · 0 checked · 0 caveats · partly assessed
ElephantSeal: A-.
Open conditions: central claim not checked.
## Report metadata
- Report: Technical fact-check, edition 2
- pgTrue version: audited with v1.1.3
- Issued: 2026-10-30
- Edition: Updated after review. Corrections are listed below.
- Submitted: Submitted by the PostgresAI team.
- Author response: No written reply from the author. We re-audited this article 1 time; see Revisions below. Policy: [right-of-reply and corrections policy](/pgtrue/security).
## Findings needing a change (0)
None.
## Verified accurate claims (14)
### F1 · Accurate · Factual · Physical PostgreSQL connections receive backend processes
Location: excerpt · section “1) PostgreSQL connections are expensive” · as fetched 2026-10-30 · [open in article](https://devblogs.microsoft.com/azure-sql/pg-to-sql-connections#:~:text=PostgreSQL%20connections%20are%20dedicated%20backend,private%20memory%20and%20execution%20state)
Article says:
```text
…PostgreSQL connections are dedicated backend processes with private memory and execution state…
```
What is true:
PostgreSQL starts a backend process for each physical client connection. BackendStartup launches that process. PostgresMain creates backend-local memory contexts for command processing.
Charitable reading:
The claim concerns physical server connections, rather than logical handles managed by a client pool.
Review: We tested whether client pooling invalidates the process claim. F1 correctly restricts it to physical connections. Process launch and memory-context initialization support it. We tested whether client pooling defeats the claim. F1 correctly limits its conclusion to physical connections and backend-local memory.
Sources:
- [REL_18_6 · doc/src/sgml/start.sgml:100-130](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/start.sgml#L100-L130)
Excerpt:
```text
starts (<quote>forks</quote>) a new process for each connection.
```
- [REL_18_6 · src/backend/postmaster/postmaster.c:3554-3577](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/postmaster.c#L3554-L3577)
Excerpt:
```text
pid = postmaster_child_launch(bn->bkend_type, bn->child_slot,
```
- [REL_18_6 · src/backend/tcop/postgres.c:4347-4373](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L4347-L4373)
Excerpt:
```text
MessageContext = AllocSetContextCreate(TopMemoryContext,
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886#F1
### F2 · Accurate · Factual · Backend processes incur CPU and context-switch costs
Location: excerpt · section “1) PostgreSQL connections are expensive” · as fetched 2026-10-30 · [open in article](https://devblogs.microsoft.com/azure-sql/pg-to-sql-connections#:~:text=plus%20OS%20scheduling%20and%20context%2Dswitching%20overhead)
Article says:
```text
…plus OS scheduling and context-switching overhead…
```
What is true:
Backend resource accounting tracks user CPU time, system CPU time, and context switches. The article’s cost expression is qualitative. It does not establish a cost per connection or a comparison with SQL Server.
Charitable reading:
The article identifies resource categories. It supplies no numerical overhead estimate.
Review: We tested whether resource counters establish comparative overhead. They do not. F2 expressly limits its conclusion to resource categories and rejects a quantified comparison. We tested whether accounting counters establish comparative expense. F2 expressly excludes comparative performance and per-connection cost estimates.
Sources:
- [REL_18_6 · src/backend/postmaster/postmaster.c:3554-3577](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/postmaster.c#L3554-L3577)
Excerpt:
```text
pid = postmaster_child_launch(bn->bkend_type, bn->child_slot,
```
- [REL_18_6 · src/backend/tcop/postgres.c:4347-4373](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L4347-L4373)
Excerpt:
```text
MessageContext = AllocSetContextCreate(TopMemoryContext,
```
- [REL_18_6 · src/backend/tcop/postgres.c:5147-5155](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L5147-L5155)
Excerpt:
```text
appendStringInfo(&str,
"!\t%ld/%ld [%ld/%ld] voluntary/involuntary context switches\n",
r.ru_nvcsw - Save_r.ru_nvcsw,
r.ru_nivcsw - Save_r.ru_nivcsw,
r.ru_nvcsw, r.ru_nivcsw);
```
- [REL_18_6 · src/backend/tcop/postgres.c:5095-5120](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L5095-L5120)
Excerpt:
```text
(long) (r.ru_utime.tv_sec - Save_r.ru_utime.tv_sec),
(long) (r.ru_utime.tv_usec - Save_r.ru_utime.tv_usec),
(long) (r.ru_stime.tv_sec - Save_r.ru_stime.tv_sec),
(long) (r.ru_stime.tv_usec - Save_r.ru_stime.tv_usec),
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886#F2
### F3 · Accurate · Factual · max_connections typically defaults to 100 and affects shared allocation
Location: excerpt · section “1) PostgreSQL connections are expensive” · as fetched 2026-10-30 · [open in article](https://devblogs.microsoft.com/azure-sql/pg-to-sql-connections#:~:text=the%20default%20max_connections%20is%20typically%20only%20100)
Article says:
```text
…the default max_connections is typically only 100…
```
What is true:
max_connections defaults to 100 in guc_tables.c. initdb can choose a lower value. Changes take effect at server start. MaxConnections contributes to MaxBackends, which determines shared PGPROC allocation.
Charitable reading:
Typically preserves the documented exception for systems that cannot support 100 connections.
Review: We checked lower initdb defaults and whether shared allocation actually depends on MaxConnections. F3 preserves the exception. MaxBackends and PGPROC sizing establish the allocation dependency. We checked whether 100 means a hard ceiling. F3 correctly identifies the default, startup requirement, and shared-allocation dependency.
Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:703-713](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L703-L713)
Excerpt:
```text
Determines the maximum number of concurrent connections to the
database server. The default is typically 100 connections, but
might be less if your kernel settings will not support it (as
determined during <application>initdb</application>). This parameter can
only be set at server start.
```
- [REL_18_6 · src/backend/utils/misc/guc_tables.c:2332-2339](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L2332-L2339)
Excerpt:
```text
{"max_connections", PGC_POSTMASTER, CONN_AUTH_SETTINGS,
gettext_noop("Sets the maximum number of concurrent connections."),
NULL
},
&MaxConnections,
100, 1, MAX_BACKENDS,
NULL, NULL, NULL
},
```
- [REL_18_6 · src/backend/utils/init/postinit.c:553-565](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/init/postinit.c#L553-L565)
Excerpt:
```text
MaxBackends = MaxConnections + autovacuum_worker_slots +
max_worker_processes + max_wal_senders + NUM_SPECIAL_WORKER_PROCS;
```
- [REL_18_6 · src/backend/storage/lmgr/proc.c:95-107](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/proc.c#L95-L107)
Excerpt:
```text
Size TotalProcs =
add_size(MaxBackends, add_size(NUM_AUXILIARY_PROCS, max_prepared_xacts));
size = add_size(size, mul_size(TotalProcs, sizeof(PGPROC)));
```
- [REL_18_6 · doc/src/sgml/config.sgml:704-706](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L704-L706)
Excerpt:
```text
database server. The default is typically 100 connections, but
might be less if your kernel settings will not support it (as
determined during <application>initdb</application>). This parameter can
```
- [REL_18_6 · doc/src/sgml/config.sgml:703-707](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L703-L707)
Excerpt:
```text
Determines the maximum number of concurrent connections to the
database server. The default is typically 100 connections, but
might be less if your kernel settings will not support it (as
determined during <application>initdb</application>). This parameter can
only be set at server start.
```
- [REL_18_6 · src/backend/utils/misc/guc_tables.c:2332-2337](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L2332-L2337)
Excerpt:
```text
{"max_connections", PGC_POSTMASTER, CONN_AUTH_SETTINGS,
gettext_noop("Sets the maximum number of concurrent connections."),
NULL
},
&MaxConnections,
100, 1, MAX_BACKENDS,
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886#F3
### F4 · Accurate · Factual · Databases share max_connections capacity
Location: excerpt · section “Preventing connection exhaustion” · as fetched 2026-10-30 · [open in article](https://devblogs.microsoft.com/azure-sql/pg-to-sql-connections#:~:text=PostgreSQL%20connection%20limits%20are%20cluster%2Dwide%2C%20not%20database%2Dlevel)
Article says:
```text
…PostgreSQL connection limits are cluster-wide, not database-level…
```
What is true:
max_connections limits concurrent connections across the database server. PostgreSQL also enforces database-specific CONNECTION LIMIT settings. Those settings restrict admission within the shared server ceiling. They do not allocate another max_connections allowance.
Charitable reading:
The surrounding paragraphs discuss the shared max_connections ceiling. They do not explain separate admission limits.
Review: We tested database-specific limits against the cluster-wide claim. The surrounding article discusses shared capacity. F4 explicitly preserves database admission limits within that capacity. We tested the database-specific CONNECTION LIMIT counterexample. F4 includes that distinction. The surrounding article concerns shared max_connections capacity.
Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:703-713](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L703-L713)
Excerpt:
```text
Determines the maximum number of concurrent connections to the
database server. The default is typically 100 connections, but
might be less if your kernel settings will not support it (as
determined during <application>initdb</application>). This parameter can
only be set at server start.
```
- [REL_18_6 · src/backend/storage/lmgr/proc.c:324-332](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/proc.c#L324-L332)
Excerpt:
```text
if (i < MaxConnections)
{
/* PGPROC for normal backend, add to freeProcs list */
dlist_push_tail(&ProcGlobal->freeProcs, &proc->links);
proc->procgloballist = &ProcGlobal->freeProcs;
```
- [REL_18_6 · src/backend/utils/init/postinit.c:375-402](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/init/postinit.c#L375-L402)
Excerpt:
```text
if (dbform->datconnlimit >= 0 &&
AmRegularBackendProcess() &&
!am_superuser &&
CountDBConnections(MyDatabaseId) > dbform->datconnlimit)
ereport(FATAL,
(errcode(ERRCODE_TOO_MANY_CONNECTIONS),
errmsg("too many connections for database \"%s\"",
name)));
```
- [REL_18_6 · doc/src/sgml/ref/alter_database.sgml:125-137](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/alter_database.sgml#L125-L137)
Excerpt:
```text
How many concurrent connections can be made
to this database. -1 means no limit.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886#F4
### F5 · Accurate · Factual · pg_stat_activity supports the displayed monitoring query
Location: excerpt · section “2) PostgreSQL connections must be managed” · as fetched 2026-10-30 · [open in article](https://devblogs.microsoft.com/azure-sql/pg-to-sql-connections#:~:text=SELECT%20%2A%20FROM%20pg_stat_activity%3B)
Article says:
```text
SELECT *
FROM pg_stat_activity;…
```
What is true:
pg_stat_activity exists and exposes state, query, and xact_start. Its documented states include active, idle, and idle in transaction. xact_start records the current transaction’s start time. The displayed SELECT references this built-in view.
Charitable reading:
Monitoring transaction duration means calculating elapsed time from xact_start. It does not require a dedicated duration column.
Review: We checked whether F5 invents a duration column or claims successful execution. It does neither. The view exposes the named fields and transaction start time. We checked for a missing duration column. F5 correctly describes xact_start and does not claim unrestricted visibility or verified execution.
Sources:
- [REL_18_6 · src/backend/catalog/system_views.sql:878-904](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_views.sql#L878-L904)
Excerpt:
```text
CREATE VIEW pg_stat_activity AS
SELECT
S.datid AS datid,
D.datname AS datname,
S.pid,
S.leader_pid,
S.usesysid,
U.rolname AS usename,
S.application_name,
S.client_addr,
S.client_hostname,
S.client_port,
S.backend_start,
S.xact_start,
S.query_start,
S.state_change,
S.wait_event_type,
S.wait_event,
S.state,
S.backend_xid,
s.backend_xmin,
S.query_id,
S.query,
S.backend_type
FROM pg_stat_get_activity(NULL) AS S
LEFT JOIN pg_database AS D ON (S.datid = D.oid)
LEFT JOIN pg_authid AS U ON (S.usesysid = U.oid);
```
- [REL_18_6 · doc/src/sgml/monitoring.sgml:900-935](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/monitoring.sgml#L900-L935)
Excerpt:
```text
<literal>active</literal>: The backend is executing a query.
</para>
</listitem>
<listitem>
<para>
<literal>idle</literal>: The backend is waiting for a new client command.
</para>
</listitem>
<listitem>
<para>
<literal>idle in transaction</literal>: The backend is in a transaction,
but is not currently executing a query.
```
- [REL_18_6 · doc/src/sgml/monitoring.sgml:846-855](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/monitoring.sgml#L846-L855)
Excerpt:
```text
Time when this process' current transaction was started, or null
if no transaction is active. If the current
query is the first of its transaction, this column is equal to the
<structfield>query_start</structfield> column.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886#F5
### F6 · Accurate · Factual · pg_cancel_backend cancels the target session’s current query
Location: excerpt · section “2) PostgreSQL connections must be managed” · as fetched 2026-10-30 · [open in article](https://devblogs.microsoft.com/azure-sql/pg-to-sql-connections#:~:text=pg_cancel_backend%28%29)
Article says:
```text
…pg_cancel_backend()…
```
What is true:
pg_cancel_backend accepts a backend PID and sends SIGINT. The documentation defines its effect as canceling that session’s current query. Its appearance in a list of connection-management functions does not promise session termination.
Charitable reading:
The inline function name is shorthand. The article does not present it as a complete SQL statement.
Review: We tested whether empty parentheses constitute a runnable recipe or promise session termination. The article lists function names. F6 correctly distinguishes query cancellation from termination. We tested whether empty parentheses constitute an executable recipe. The article lists API names. F6 correctly distinguishes cancellation from termination.
Sources:
- [REL_18_6 · doc/src/sgml/func.sgml:28679-28698](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/func.sgml#L28679-L28698)
Excerpt:
```text
Cancels the current query of the session whose backend process has the
specified process ID. This is also allowed if the
```
- [REL_18_6 · src/backend/storage/ipc/signalfuncs.c:129-164](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/ipc/signalfuncs.c#L129-L164)
Excerpt:
```text
pg_cancel_backend(PG_FUNCTION_ARGS)
{
int r = pg_signal_backend(PG_GETARG_INT32(0), SIGINT);
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886#F6
### F7 · Accurate · Factual · pg_terminate_backend terminates the target session
Location: excerpt · section “2) PostgreSQL connections must be managed” · as fetched 2026-10-30 · [open in article](https://devblogs.microsoft.com/azure-sql/pg-to-sql-connections#:~:text=pg_terminate_backend%28%29)
Article says:
```text
…pg_terminate_backend()…
```
What is true:
pg_terminate_backend accepts a backend PID and sends SIGTERM. Its documented purpose is terminating the session associated with that process. The article correctly identifies it as a connection-management function.
Charitable reading:
The inline function name identifies the API. Empty parentheses do not constitute a complete executable recipe here.
Review: We checked permission restrictions and asynchronous termination. F7 describes the function’s purpose and SIGTERM mechanism. It does not promise immediate termination or unrestricted access. We checked permissions and asynchronous termination. F7 states the documented purpose and SIGTERM mechanism. It promises no termination confirmation.
Sources:
- [REL_18_6 · doc/src/sgml/func.sgml:28757-28787](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/func.sgml#L28757-L28787)
Excerpt:
```text
Terminates the session whose backend process has the
specified process ID. This is also allowed if the calling role
```
- [REL_18_6 · src/backend/storage/ipc/signalfuncs.c:230-278](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/ipc/signalfuncs.c#L230-L278)
Excerpt:
```text
pg_terminate_backend(PG_FUNCTION_ARGS)
{
int pid;
int r;
int timeout; /* milliseconds */
pid = PG_GETARG_INT32(0);
timeout = PG_GETARG_INT64(1);
if (timeout < 0)
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("\"timeout\" must not be negative")));
r = pg_signal_backend(pid, SIGTERM);
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886#F7
### F8 · Accurate · Factual · PgBouncer pools PostgreSQL server connections
Location: excerpt · section “2) PostgreSQL connections must be managed” · as fetched 2026-10-30 · [open in article](https://devblogs.microsoft.com/azure-sql/pg-to-sql-connections#:~:text=PgBouncer%2C%20the%20popular%20PostgreSQL%20connection%20pooler)
Article says:
```text
…PgBouncer, the popular PostgreSQL connection pooler…
```
What is true:
PgBouncer 1.26.0 documents itself as a PostgreSQL connection pooler. Applications connect to it. PgBouncer can reuse an existing physical connection to PostgreSQL instead of opening another connection.
Charitable reading:
The recommendation says PgBouncer can reduce physical connections. It does not promise that every pooling configuration reduces simultaneous connections.
Review: We checked whether session pooling defeats the reuse claim. E-30 documents reuse after client disconnection. F8 promises no reduction for every workload or pooling mode. We tested session pooling as a counterexample. F8 claims possible physical connection reuse, which PgBouncer 1.26.0 documents.
Sources:
- [pgbouncer@pgbouncer_1_26_0 · doc/usage.md:20-53](https://github.com/pgbouncer/pgbouncer/blob/7d38761c8f6c757238fde9f942cf9fe0cd272ae3/doc/usage.md#L20-L53)
Qualification: Version note: PgBouncer 1.26.0
Excerpt:
```text
**pgbouncer** is a PostgreSQL connection pooler. Any target application
can be connected to **pgbouncer** as if it were a PostgreSQL server,
and **pgbouncer** will create a connection to the actual server, or it
will reuse one of its existing connections.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886#F8
### F9 · Accurate · Factual · Long transactions can delay tuple cleanup and freezing
Location: excerpt · section “PostgreSQL behavior forces developer behavior” · as fetched 2026-10-30 · [open in article](https://devblogs.microsoft.com/azure-sql/pg-to-sql-connections#:~:text=Long%2Drunning%20transactions%20can%20retain%20old%20row%20versions)
Article says:
```text
Long-running transactions can retain old row versions…
```
What is true:
PostgreSQL considers backend xmin and transaction IDs when computing cleanup horizons. VACUUM cannot advance FreezeLimit beyond OldestXmin. Open transactions can retain visible row versions and contribute to table bloat. The article correctly states these effects conditionally.
Charitable reading:
Can makes the claim conditional. Transaction duration alone does not guarantee tuple retention or wraparound pressure.
Review: We checked transactions without valid xmin or xid. E-31 excludes them from the horizon. Both F9 and the article state the retention effect conditionally. We tested transactions without valid xmin or xid. procarray.c excludes them. The article and F9 correctly describe possible effects.
Sources:
- [REL_18_6 · src/backend/storage/ipc/procarray.c:1790-1845](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/ipc/procarray.c#L1790-L1845)
Excerpt:
```text
/*
* Consider both the transaction's Xmin, and its Xid.
*
* We must check both because a transaction might have an Xmin but not
* (yet) an Xid; conversely, if it has an Xid, that could determine
* some not-yet-set Xmin.
*/
xmin = TransactionIdOlder(xmin, xid);
```
- [REL_18_6 · src/backend/commands/vacuum.c:1203-1209](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/vacuum.c#L1203-L1209)
Excerpt:
```text
/* Compute FreezeLimit, being careful to generate a normal XID */
cutoffs->FreezeLimit = nextXID - freeze_min_age;
if (!TransactionIdIsNormal(cutoffs->FreezeLimit))
cutoffs->FreezeLimit = FirstNormalTransactionId;
/* FreezeLimit must always be <= OldestXmin */
if (TransactionIdPrecedes(cutoffs->OldestXmin, cutoffs->FreezeLimit))
cutoffs->FreezeLimit = cutoffs->OldestXmin;
```
- [REL_18_6 · doc/src/sgml/config.sgml:10325-10380](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L10325-L10380)
Excerpt:
```text
locks are held, an open transaction prevents vacuuming away
recently-dead tuples that may be visible only to this transaction;
so remaining idle for a long time can contribute to table bloat.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886#F9
### F10 · Accurate · Factual · Verified accurate: “Idle connections still consume resources…”
Location: excerpt · section “2) PostgreSQL connections must be managed” · as fetched 2026-10-30 · [open in article](https://devblogs.microsoft.com/azure-sql/pg-to-sql-connections#:~:text=Idle%20connections%20still%20consume%20resources)
Article says:
```text
Idle connections still consume resources…
```
What is true:
An idle connection retains its backend process and backend memory contexts. REL_18_6 start.sgml:110–118 describes per-connection processes. postgres.c:4349–4370 initializes command-loop memory contexts. These ranges do not quantify idle CPU or memory costs.
Review: F10's core resource claim holds. We tested whether its citations also support transaction cleanup costs. start.sgml describes per-connection processes. postmaster.c launches them. postgres.c initializes memory contexts for the command loop. None of these ranges establishes transaction cleanup costs. Remove that assertion.
Sources:
- [REL_18_6 · doc/src/sgml/start.sgml:100-130](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/start.sgml#L100-L130)
Excerpt:
```text
starts (<quote>forks</quote>) a new process for each connection.
```
- [REL_18_6 · src/backend/postmaster/postmaster.c:3554-3577](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/postmaster.c#L3554-L3577)
Excerpt:
```text
pid = postmaster_child_launch(bn->bkend_type, bn->child_slot,
```
- [REL_18_6 · src/backend/tcop/postgres.c:4347-4373](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L4347-L4373)
Excerpt:
```text
MessageContext = AllocSetContextCreate(TopMemoryContext,
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886#F10
### F11 · Accurate · Factual · PgBouncer can reduce physical PostgreSQL connections
Location: excerpt · section “2) PostgreSQL connections must be managed” · as fetched 2026-10-30 · [open in article](https://devblogs.microsoft.com/azure-sql/pg-to-sql-connections#:~:text=to%20reduce%20the%20number%20of%20physical%20connections%20reaching%20the%20server)
Article says:
```text
…to reduce the number of physical connections reaching the server…
```
What is true:
PgBouncer 1.26.0 identifies itself as a PostgreSQL connection pooler. Transaction pooling assigns a server connection only during a transaction. This supports the article's conditional recommendation.
Charitable reading:
The article conditionally recommends PgBouncer. It does not promise that every pooling mode reduces concurrent backends.
Review: We tested whether F11 treats transaction pooling as the default. It does not. Its conditional reduction claim follows from transaction-scoped server assignment. We tested whether the recommendation guarantees fewer backends under every mode. F11 limits its support to conditional pooling behavior.
Sources:
- [pgbouncer@pgbouncer_1_26_0 · doc/usage.md:42-42](https://github.com/pgbouncer/pgbouncer/blob/7d38761c8f6c757238fde9f942cf9fe0cd272ae3/doc/usage.md#L42-L42)
Excerpt:
```text
: A server connection is assigned to a client only during a transaction.
```
- [pgbouncer@pgbouncer_1_26_0 · doc/usage.md:21-21](https://github.com/pgbouncer/pgbouncer/blob/7d38761c8f6c757238fde9f942cf9fe0cd272ae3/doc/usage.md#L21-L21)
Excerpt:
```text
**pgbouncer** is a PostgreSQL connection pooler. Any target application
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886#F11
### F12 · Accurate · Factual · PostgreSQL permits raising max_connections above its default
Location: excerpt · section “Preventing connection exhaustion” · as fetched 2026-10-30 · [open in article](https://devblogs.microsoft.com/azure-sql/pg-to-sql-connections#:~:text=PostgreSQL%20lets%20you%20raise%20that%20limit)
Article says:
```text
PostgreSQL lets you raise that limit…
```
What is true:
src/backend/utils/misc/guc_tables.c:2332–2337 defines 100 as the default and MAX_BACKENDS as the upper bound. max_connections requires a server restart.
Charitable reading:
The article says administrators can raise the limit. It does not promise every higher value suits every server.
Review: We tested whether F12 confuses the parameter bound with achievable capacity. It describes the declared bound only. E-41 confirms server-start configuration. We checked the configured range and startup restriction. F12 correctly separates the 100-connection default from MAX_BACKENDS.
Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:703-707](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L703-L707)
Excerpt:
```text
Determines the maximum number of concurrent connections to the
database server. The default is typically 100 connections, but
might be less if your kernel settings will not support it (as
determined during <application>initdb</application>). This parameter can
only be set at server start.
```
- [REL_18_6 · src/backend/utils/misc/guc_tables.c:2332-2337](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L2332-L2337)
Excerpt:
```text
{"max_connections", PGC_POSTMASTER, CONN_AUTH_SETTINGS,
gettext_noop("Sets the maximum number of concurrent connections."),
NULL
},
&MaxConnections,
100, 1, MAX_BACKENDS,
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886#F12
### F13 · Accurate · Factual · Verified accurate: “…used to monitor sessions, their state, current queries, and transaction duration…”
Location: excerpt · section “2) PostgreSQL connections must be managed” · as fetched 2026-10-30 · [open in article](https://devblogs.microsoft.com/azure-sql/pg-to-sql-connections#:~:text=used%20to%20monitor%20sessions%2C%20their,current%20queries%2C%20and%20transaction%20duration)
Article says:
```text
…used to monitor sessions, their state, current queries, and transaction duration…
```
What is true:
pg_stat_activity exposes state, query, and xact_start. src/backend/catalog/system_views.sql:891–900 lists those columns. Calculate elapsed transaction time from xact_start.
Review: We checked whether transaction duration requires a missing column. F13 correctly derives it from xact_start. E-25 confirms that field’s meaning. We checked whether transaction duration requires an absent column. F13 correctly derives elapsed time from the exposed xact_start value.
Sources:
- [REL_18_6 · doc/src/sgml/monitoring.sgml:846-855](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/monitoring.sgml#L846-L855)
Excerpt:
```text
Time when this process' current transaction was started, or null
if no transaction is active. If the current
query is the first of its transaction, this column is equal to the
<structfield>query_start</structfield> column.
```
- [REL_18_6 · doc/src/sgml/monitoring.sgml:714-716](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/monitoring.sgml#L714-L716)
Excerpt:
```text
The <structname>pg_stat_activity</structname> view will have one row
per server process, showing information related to
the current activity of that process.
```
- [REL_18_6 · src/backend/catalog/system_views.sql:891-900](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_views.sql#L891-L900)
Excerpt:
```text
S.xact_start,
S.query_start,
S.state_change,
S.wait_event_type,
S.wait_event,
S.state,
S.backend_xid,
s.backend_xmin,
S.query_id,
S.query,
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886#F13
### F14 · Accurate · Factual · Raising max_connections increases allocated resources
Location: excerpt · section “1) PostgreSQL connections are expensive” · as fetched 2026-10-30 · [open in article](https://devblogs.microsoft.com/azure-sql/pg-to-sql-connections#:~:text=Increasing%20it%20also%20causes%20PostgreSQL,more%20resources%2C%20including%20shared%20memory.)
Article says:
```text
Increasing it also causes PostgreSQL to allocate more resources, including shared memory.
```
What is true:
doc/src/sgml/config.sgml:711–713 explicitly links higher max_connections values to increased resource allocation, including shared memory.
Charitable reading:
The article claims increased resource allocation. It does not specify a fixed allocation per additional connection.
Review: We tested whether F14 infers proportional allocation or measured overhead. It makes neither claim. E-45 directly supports increased resource allocation. We tested whether F14 implies fixed allocation per connection. It states only the documented increase in resources sized from max_connections.
Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:711-713](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L711-L713)
Excerpt:
```text
<productname>PostgreSQL</productname> sizes certain resources based directly on the value of
<varname>max_connections</varname>. Increasing its value leads to
higher allocation of those resources, including shared memory.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886#F14
## Notes (not graded) (0)
None.
## Withdrawn findings (0)
None.
## Section checks
- Connection cost · A · 4 verified-accurate · 100% of claims (6 of 6, plus 2 that need data we do not have)
- Connection management · A · 7 verified-accurate · 100% of claims (17 of 17)
- Connection exhaustion · A · 2 verified-accurate · 100% of claims (5 of 5)
- Developer behavior · A · 1 verified-accurate · 100% of claims (6 of 6)
## Claim coverage
- Introduction: 2 claims are the author's own account; nothing checkable; not counted: 11 product or opinion, 3 not a claim
- PostgreSQL connections: 3 claims are the author's own account; nothing checkable; not counted: 3 product or opinion, 2 not a claim
- Connection cost: 6 of 6 Postgres claims checked, plus 2 that need data we do not have; not counted: 1 product or opinion, 2 duplicate
- Connection management: 17 of 17 Postgres claims checked; not counted: 4 product or opinion, 1 duplicate
- Connection exhaustion: 5 of 5 Postgres claims checked; not counted: 1 product or opinion, 3 duplicate, 2 not a claim
- Developer behavior: 6 of 6 Postgres claims checked; not counted: 2 product or opinion, 1 duplicate
- Microsoft SQL connections: no checkable claims; not counted: 13 product or opinion, 1 duplicate, 1 not a claim
- Flexible resource assignment: no checkable claims; not counted: 10 product or opinion, 5 duplicate
- How it works: 1 claim is the author's own account; nothing checkable; not counted: 6 product or opinion, 4 duplicate
- Connection controls: no checkable claims; not counted: 8 product or opinion
- Operational recommendations: no checkable claims; not counted: 4 product or opinion, 2 duplicate, 1 not a claim
- Conclusion: no checkable claims; not counted: 5 product or opinion, 2 not a claim
## What we did not check
- We did not verify the SQL Server architecture, pooling, capacity, or transaction-management claims.
- We did not measure relative connection costs or practical capacity for either engine.
- We did not verify the Npgsql and SqlClient examples, their dependencies, or their connection strings.
- We did not execute the SQL examples or test their permissions and run-time behavior.
- We did not read the article’s 2 connection diagrams.
- We did not verify SQL Server's stated limits of 32,767 connections and 32,767 databases across Microsoft SQL services.
- We did not verify the SQL Server worker model or the comparative cost of idle connections.
- We did not verify the ADO.NET and Npgsql pooling defaults or their effect on the comparison.
- We did not validate the T-SQL examples against SQL Server syntax, permissions, or runtime behavior.
- We did not check the C\# examples' dependencies, setup, or runtime behavior.
- We did not establish which SQL Server claims changed between publication and October 30, 2026.
- We did not check resource-use and performance comparisons between the two connection architectures.
- We did not check long-running transactions' effects on VACUUM, bloat, or transaction ID wraparound.
- We did not validate the examples' dependencies, credentials, permissions, or runtime behavior.
- We did not validate the KILL example against SQL Server grammar.
- We did not inspect the article's two connection diagrams.
- Transparent: we did not complete every applicable check.
- Safe: we did not complete every applicable check.
- Transparent: claims sourced check did not finish.
- We could not decide whether the evidence backs the central claim.
- We checked 4 SQL blocks with PostgreSQL 18 grammar for syntax. 1 block did not pass these checks.
- 3 blocks were not checked for syntax.
- Code blocks 1, 3, 6 were not checked for syntax because the language is not supported or not declared.
- Code block 7 did not pass the PostgreSQL 18 reference grammar check.
- We did not execute any scripts or check dependencies, setup, permissions, embedded SQL, function bodies, inline snippets, or run-time effects.
## Notes
- Central claim not verified. We verified PostgreSQL and PgBouncer behavior, but did not verify SQL Server architecture, capacity, or the migration recommendation.
- We did not check everything in this article. What we did not check is listed below, in the words we recorded at the time. None of it moved the letter. We never charge our own limits to the article.
- Average of 5 axes: 3.6 · result A-
- Some explanatory text is not shown in this edition; the grade and findings are complete.
- Some checks did not happen for this edition, and each one we know of is listed above.
- Checked against: github.com/postgres/postgres REL_18_6 at commit 724edf9bde9d356724ad384a2e196edc3c9f80f7 (pinned target); github.com/pgbouncer/pgbouncer pgbouncer_1_26_0 at commit 7d38761c8f6c757238fde9f942cf9fe0cd272ae3 (pinned target).
- Article captured 2026-10-30T12:17:45.823983Z · SHA-256 e5ee8a27a42818e3b2fe0d5f6541acd0f8e01faae97467f1bfb6b39f0b8392c8 · Text extracted from the article's HTML.
- Policy SHA-256 3588383d7e430844af3ec9f7c6e92f7e52a6415c463a95b3fc17b5396309dfea · Grading rules SHA-256 6fb334e79d6b9e7ed81d3238cc10d9de602ff87ed65ff2fa781f53bac5798765.
- The article text does not identify an author or publication date. We leave the publication timestamp empty.
- What we did not check: SQL Server worker assignment, connection and database limits, pooling defaults, and transaction-management recommendations.
- We did not measure connection costs or practical capacity for either database engine.
- We did not verify the C\# examples' dependencies, connection strings, credentials, or execution.
- We did not execute the SQL examples or test permissions and runtime behavior.
- The PostgreSQL 18 parser rejected the T-SQL KILL example. That diagnostic does not establish a T-SQL syntax error.
- Successful PostgreSQL parsing does not validate the T-SQL examples against SQL Server.
- We did not read the article's 2 connection diagrams.
- We did not establish whether SQL Server claims changed after publication.
- Five independent external sources were unavailable. The findings rely on PostgreSQL and PgBouncer source and documentation.
- source: the article names no postgres release, so it was read at REL_18_6, the latest release when it was published
- source: the article names no pgbouncer release, so it was read at pgbouncer_1_26_0, the latest release when it was published
- review: the findings were written by one model and reviewed independently by a different model.
- 4 passages in this edition fell short of our own plain-English rules.
- Built from the article text captured above and 2 pinned source trees.
- 13 survived · 1 weakened · 0 withdrawn.
## Edition changes
- F1 · recalibrated.
- F2 · recalibrated.
- F3 · recalibrated.
- F4 · recalibrated.
- F5 · recalibrated.
- F6 · recalibrated.
- F7 · recalibrated.
- F8 · recalibrated.
- F9 · recalibrated.
- F10 · weakened.
- F11 · recalibrated.
- F12 · recalibrated.
- F13 · recalibrated.
- F14 · recalibrated.
## Revision history
- [Revision 1](https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886?v=2) · 2026-10-29 00:53 UTC · A · audited with v1.0.20 (approx.)
Article as first submitted. 9 accurate · 0 wrong · 0 caveats.
ElephantSeal: A.
Changes: First audit. Open: none.
- [Revision 2](https://pgtrue.postgres.ai/shared/brief/83f32a08-48b7-43ca-948b-ee55cd40e886?v=4) · this page · 2026-10-30 12:17 UTC · A- · audited with v1.1.3
Same article text, re-audited. 14 accurate · 0 wrong · 0 caveats.
ElephantSeal: A-. Open: central claim not checked.
Changes: No change in findings.