Limited beta · What is this?

pgTrue is under active development: reports may contain significant mistakes, inaccuracies, or bugs. Please report anything you find to pgtrue@postgres.ai.

pgTrue is an independent fact-check of technical Postgres articles. Read the questions and answers.

pgTrue fact-check

ElephantSeal BLimited coverageOpen: central claim not checked

Embed

The ElephantSeal always shows this report's latest edition and links here. Copies cached elsewhere may update later.

[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508)
<a href="https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508"><img src="https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508.svg?v=13&amp;theme=light" alt="pgTrue fact-check" width="90" height="20" loading="lazy" decoding="async" style="display:inline-block;width:90px;height:20px"></a>
https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508)
<a href="https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508"><img src="https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508.svg?v=13&amp;theme=dark" alt="pgTrue fact-check" width="90" height="20" loading="lazy" decoding="async" style="display:inline-block;width:90px;height:20px"></a>
https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508)
<a href="https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508"><img src="https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508.svg?v=13" alt="pgTrue fact-check" width="90" height="20" loading="lazy" decoding="async" style="display:inline-block;width:90px;height:20px"></a>
https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/radar.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508)
<a href="https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508"><img src="https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/radar.svg?v=13&amp;theme=light" alt="pgTrue fact-check" width="240" height="240" loading="lazy" decoding="async" style="display:inline-block;width:240px;height:240px"></a>
https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/radar.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/radar.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/radar.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508)
<a href="https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508"><img src="https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/radar.svg?v=13&amp;theme=dark" alt="pgTrue fact-check" width="240" height="240" loading="lazy" decoding="async" style="display:inline-block;width:240px;height:240px"></a>
https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/radar.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/radar.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/radar.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508)
<a href="https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508"><img src="https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/radar.svg?v=13" alt="pgTrue fact-check" width="240" height="240" loading="lazy" decoding="async" style="display:inline-block;width:240px;height:240px"></a>
https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/radar.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/radar.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/wide.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508)
<a href="https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508"><img src="https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/wide.svg?v=13&amp;theme=light" alt="pgTrue fact-check" width="480" height="240" loading="lazy" decoding="async" style="display:inline-block;width:480px;height:240px"></a>
https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/wide.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/wide.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/wide.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508)
<a href="https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508"><img src="https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/wide.svg?v=13&amp;theme=dark" alt="pgTrue fact-check" width="480" height="240" loading="lazy" decoding="async" style="display:inline-block;width:480px;height:240px"></a>
https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/wide.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/wide.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/wide.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508)
<a href="https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508"><img src="https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/wide.svg?v=13" alt="pgTrue fact-check" width="480" height="240" loading="lazy" decoding="async" style="display:inline-block;width:480px;height:240px"></a>
https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/wide.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/01a1c919-c4e7-7fa6-98a4-011599d5f508/wide.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508
   :alt: pgTrue fact-check
   :width: 480
   :height: 240

Click the snippet to select all of it, then copy. Where SVG is stripped, as in some email clients and feed readers, change .svg to .png. PNG uses the light theme for Auto. For Markdown PNG embeds, use the HTML snippet where supported to preserve the display size.

Optional colours: append &color=26798E or &labelColor=333C47 after a theme query (use ? for the first parameter). Use 3- or 6-digit hex.

For pages with a light background.

For pages with a dark background. The ElephantSeal gets a thin edge so it does not blend in.

Auto follows the reader's light or dark setting where the host supports it, and shows the light ElephantSeal where it does not.

On a light page
On a dark page

Don't Do This (opens in new tab)

wiki.postgresql.org
Check before you follow it: 1 claim is wrong. 1 recipe error (Factual) fails loudly; see the finding.
1
inaccuracy
0
dangerous-recipe
1
recipe-error
0
misleading
1
imprecise
0
transcription
0
aged
0
withdrawn
14
verified-accurate

Grade capped at B by Factual: 2 findings (F1, F2)

Factual B− · Applicable A · Consistent A · Transparent A · Safe A

ReportTechnical fact-check, edition 2 pgTrue versionaudited with v1.1.6 Issued EditionUpdated after review. Corrections are listed below. SubmittedSubmitted by the PostgresAI team. Author responseNo written reply from the author. See Revisions below. Policy: right-of-reply and corrections policy.

Inaccuracies

F1

The ISO offset explanation reverses east and west

INACCURATEFactual · holds up after review

Claim ledger

Article says
…the ISO convention is for eastward shifts to be denoted as negative.
What is true
ISO offsets east of UTC are positive. REL_10_23 doc/src/sgml/datatype.sgml:2354-2356 states that convention. POSIX timezone specifications reverse it. Following the parenthetical would select the opposite offset.
So what
Use positive ISO offsets for zones east of UTC, including +04 for UTC+04.
Charitable reading
The POSIX warning and the +04 timestamp example use the correct directions.

Source

Source · REL_10_23 · doc/src/sgml/datatype.sgml:2354-2356In the <acronym>ISO</acronym> style, the time zone is always shown as a signed numeric offset from UTC, with positive sign used for zones east of Greenwich. The offset will be shown

Review correction: see "How the review tested this" below.

In the article · section “Why not?”

In the article

excerpt · section “Why not?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Why not?

PostgreSQL doesn’t accept fixed time zone offsets in place of ISO time zone names or abbreviations. If you specify such an offset it will be interpreted as a custom POSIX time zone specification with the unfortunate property that positive values shift west while negative values shift east (the ISO convention is for eastward shifts to be denoted as negative.)

All sources and excerpts · 3
Evidence In the <acronym>ISO</acronym> style, the time zone is always shown as a signed numeric offset from UTC, with positive sign used for zones east of Greenwich. The offset will be shown
Evidence or <literal>-</literal>). The positive sign is used for zones <emphasis>west</emphasis> of Greenwich. (Note that this is the opposite of the ISO-8601 sign convention used elsewhere in <acronym>PostgreSQL</acronym>.)
Evidence In the <acronym>ISO</acronym> style, the time zone is always shown as a signed numeric offset from UTC, with positive sign used for zones east of Greenwich. The offset will be shown
How the review tested this

Review: We checked whether the surrounding correct examples rescued the parenthetical. They do not. ISO offsets east of UTC are positive. We tested whether the surrounding correct examples rescue the parenthetical. They do not. ISO offsets remain positive east of UTC.

Dangerous or recipe bugsNone in this edition.

Recipe errors (fail loudly)

F2

Lowercase characters alone do not eliminate identifier quoting

Recipe errorFactual · holds up after review

Claim ledger

Article says
Stick to using a-z, 0-9 and underscore for names and you never have to worry about quoting them.
What is true
Lowercase reserved words still require quotes when used as identifiers. REL_10_23 doc/src/sgml/syntax.sgml:173-177 uses select as its example. Choosing names from the article's character set can still produce parse errors.
So what
Avoid reserved words and leading digits when choosing unquoted names, or double-quote those identifiers.
Charitable reading
The section explains case folding, and lowercase names avoid case-sensitive quoting.

Source

Source · REL_10_23 · doc/src/sgml/syntax.sgml:173-177<literal>"select"</literal> could be used to refer to a column or table named <quote>select</quote>, whereas an unquoted <literal>select</literal> would be taken as a key word and would therefore provoke a parse error when used where a table or column name is expected. The example can be written with quoted

Review correction: see "How the review tested this" below.

In the article · section “Why not?”

In the article

excerpt · section “Why not?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Why not?

Stick to using a-z, 0-9 and underscore for names and you never have to worry about quoting them.

All sources and excerpts · 1
Evidence <literal>"select"</literal> could be used to refer to a column or table named <quote>select</quote>, whereas an unquoted <literal>select</literal> would be taken as a key word and would therefore provoke a parse error when used where a table or column name is expected. The example can be written with quoted
How the review tested this

Review: We tested the case-folding interpretation. The absolute quoting assurance still includes select, which the cited documentation rejects without quotes. We read the recommendation as case-folding advice. Its unconditional quoting promise still includes select, which the documentation explicitly rejects unquoted.

Misleading / imprecise

F13

varchar(n) can truncate overlength input without an error

IMPRECISEFactual · holds up after review

Claim ledger

Article says
…will throw an error if you try and insert a string longer than n characters…
What is true
PostgreSQL truncates excess trailing spaces when assigning to varchar(n). REL_10_23 doc/src/sgml/datatype.sgml:1075–1078 documents this exception. A caller relying on an error can accept altered input.
So what
Use text with CHECK (length(column_name) <= n) when every overlength input must fail.
Charitable reading
Ordinary assignments reject overlength nonspace characters. The claim omits the documented trailing-space exception.

Source

Source · REL_10_23 · doc/src/sgml/datatype.sgml:1067-1098error, unless the excess characters are all spaces, in which case the string will be truncated to the maximum length.

Review correction: see "How the review tested this" below.

In the article · section “Why not?”

In the article

excerpt · section “Why not?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Why not?

varchar(n) is a variable width text field that will throw an error if you try and insert a string longer than n characters (not bytes) into it.

All sources and excerpts · 1
Evidence error, unless the excess characters are all spaces, in which case the string will be truncated to the maximum length.
How the review tested this

Review: We checked whether truncation requires an explicit cast. The documentation applies the trailing-space exception to ordinary storage assignments. We excluded explicit casts as a possible misreading. The documented trailing-space exception applies to ordinary assignment itself.

Verified accurate

F5

Trust authentication accepts the requested role without a password

ACCURATEFactual · holds up after review

Claim ledger

Article says
With trust authentication, any user can claim to be any other user…
What is true
REL_10_23 src/backend/libpq/auth.c:591-593 returns STATUS_OK for trust authentication. The requested role can include a superuser. Network reachability and HBA database/user restrictions still apply. SCRAM authentication exists at the article's PostgreSQL 10 version floor.
Charitable reading
The warning concerns connections that can reach PostgreSQL and match a trust HBA entry.

Source

Source · REL_10_23 · src/backend/libpq/auth.c:591-593case uaTrust: status = STATUS_OK; break;

Review correction: see "How the review tested this" below.

In the article · section “Why not?”

In the article

excerpt · section “Why not?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Why not?

With trust authentication, any user can claim to be any other user and PostgreSQL will trust that assertion. This means that someone can claim to be the postgres superuser account and PostgreSQL will accept that claim and allow them to log in.

All sources and excerpts · 3
Evidence case uaTrust: status = STATUS_OK; break;
Evidence <productname>PostgreSQL</productname> assumes that anyone who can connect to the server is authorized to access the database with whatever database user name they specify (even superuser names). Of course, restrictions made in the <literal>database</> and <literal>user</> columns still apply.
Evidence The method <literal>scram-sha-256</> performs SCRAM-SHA-256

Version note: PostgreSQL 10.0 version-floor check.

How the review tested this

Review: We checked HBA restrictions as a counterexample. The finding explicitly preserves them. The trust branch returns STATUS_OK. We checked HBA restrictions as a counterexample. The finding already preserves them and correctly describes trust authentication.

F7

Temporary-table DDL fails on hot standby and updates catalogs on the primary

ACCURATEFactual · holds up after review

Claim ledger

Article says
…Temporary tables cannot be created or modified on PostgreSQL hot standbys.
What is true
Hot standby rejects temporary-table DDL and DML. REL_10_23 doc/src/sgml/high-availability.sgml:1787-1802 documents both restrictions. Relation creation updates catalogs in heap.c:1273-1286. RETURN QUERY avoids that table DDL, but its tuplestore can spill according to work_mem in pl_exec.c:3114-3116.
Charitable reading
The example describes executing a previously installed function on standby, rather than creating it there.

Source

Source · REL_10_23 · doc/src/sgml/high-availability.sgml:1787-1802Data Definition Language (DDL) - <command>CREATE</>, <command>DROP</>, <command>ALTER</>, <command>COMMENT</>. This restriction applies even to temporary tables, because carrying out these operations would require updating the system catalog tables.

Review correction: see "How the review tested this" below.

In the article · section “Why not?”

In the article

excerpt · section “Why not?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Why not?

Read-only replicas: Temporary tables cannot be created or modified on PostgreSQL hot standbys. A function that otherwise only reads permanent tables may become unusable on a replica simply because it creates a temporary table for intermediate results.

All sources and excerpts · 4
Evidence Data Definition Language (DDL) - <command>CREATE</>, <command>DROP</>, <command>ALTER</>, <command>COMMENT</>. This restriction applies even to temporary tables, because carrying out these operations would require updating the system catalog tables.
Evidence AddNewRelationTuple(pg_class_desc, new_rel_desc, relid, new_type_oid, reloftypeid, ownerid, relkind, PointerGetDatum(relacl), reloptions);
Evidence estate->tuple_store = tuplestore_begin_heap(rsi->allowedModes & SFRM_Materialize_Random, false, work_mem);
Evidence strictly read-only; not even temporary tables may be written.
How the review tested this

Review: We checked whether temporary tables escape standby restrictions. The documentation explicitly excludes that exception. The finding does not claim runtime validation. We distinguished installing the function from calling it on standby. The finding correctly limits its claim to avoiding temporary-table DDL.

F8

Verified accurate: “Because it rounds off the fractional part rather than truncating it…”

ACCURATEFactual · partly holds after review

Claim ledger

Article says
Because it rounds off the fractional part rather than truncating it…
What is true
REL_10_23 src/backend/utils/adt/timestamp.c:337-374 rounds timestamps to the requested precision. Precision 0 uses a 500,000-microsecond offset. The cited range checks precision rounding only.

Source

Source · REL_10_23 · src/backend/utils/adt/timestamp.c:331-375*time = ((*time + TimestampOffsets[typmod]) / TimestampScales[typmod]) * TimestampScales[typmod];

Review correction: see "How the review tested this" below.

In the article · section “Why not?”

In the article

excerpt · section “Why not?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Why not?

Because it rounds off the fractional part rather than truncating it as everyone would expect. This can cause unexpected issues; consider that when you store now() into such a column, you might be storing a value half a second in the future.

All sources and excerpts · 1
Evidence *time = ((*time + TimestampOffsets[typmod]) / TimestampScales[typmod]) * TimestampScales[typmod];
How the review tested this

Review: The cited range verifies precision rounding, including negative timestamps. It contains no date_trunc implementation. The verification must exclude that additional claim. We inspected both positive and negative timestamp branches. Both round fractional seconds rather than truncate them.

F9

psql -W requests a password before connecting

ACCURATEFactual · holds up after review

Claim ledger

Article says
Using the --password or -W flags will tell psql to prompt you for a password…
What is true
REL_10_23 src/bin/psql/startup.c:210-214 prompts before the connection attempt when password prompting is forced. Lines 246-255 request a password after a failed attempt when needed. Peer authentication does not verify the entered password.
Charitable reading
The advice permits the stated benefit of avoiding an initial failed connection attempt.

Source

Source · REL_10_23 · src/bin/psql/startup.c:204-255if (pset.getPassword == TRI_YES) { simple_prompt(password_prompt, password, sizeof(password), false); have_password = true; }

Review correction: see "How the review tested this" below.

In the article · section “Why not?”

In the article

excerpt · section “Why not?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Why not?

Using the --password or -W flags will tell psql to prompt you for a password, before trying to connect to the server - so you'll be prompted for a password even if the server doesn't require one.

All sources and excerpts · 2
Evidence if (pset.getPassword == TRI_YES) { simple_prompt(password_prompt, password, sizeof(password), false); have_password = true; }
Evidence Force <application>psql</application> to prompt for a password before connecting to a database, even if the password will not be used.
How the review tested this

Review: We checked whether prompting proves password authentication occurred. The documentation explicitly allows an unused password, as the finding states. We checked whether the prompt depends on server authentication. Both implementation and documentation place the forced prompt before connection.

F10

SQL_ASCII conversion preserves bytes

ACCURATEFactual · holds up after review

Claim ledger

Article says
SQL_ASCII means "no conversions"…
What is true
REL_10_23 src/backend/utils/mb/mbutils.c:349-356 returns the original bytes for SQL_ASCII conversions. A conversion from SQL_ASCII validates the destination encoding without translating characters. This supports the article's warning about unknown mixed encodings.
Charitable reading
No conversion does not mean that every conversion path skips destination-encoding validation.

Source

Source · REL_10_23 · src/backend/utils/mb/mbutils.c:337-357if (dest_encoding == PG_SQL_ASCII) return src; /* any string is valid in SQL_ASCII */ if (src_encoding == PG_SQL_ASCII) { /* No conversion is possible, but we must validate the result */ (void) pg_verify_mbstr(dest_encoding, (const char *) src, len, false); return src;

Review correction: see "How the review tested this" below.

In the article · section “Why not?”

In the article

excerpt · section “Why not?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Why not?

SQL_ASCII means "no conversions" for the purpose of all encoding conversion functions. That is to say, the original bytes are simply treated as being in the new encoding, subject to validity checks, without any regard for what they mean. Unless extreme care is taken, an SQL_ASCII database will usually end up storing a mixture of many different encodings with no way to recover the original characters reliably.

All sources and excerpts · 1
Evidence if (dest_encoding == PG_SQL_ASCII) return src; /* any string is valid in SQL_ASCII */ if (src_encoding == PG_SQL_ASCII) { /* No conversion is possible, but we must validate the result */ (void) pg_verify_mbstr(dest_encoding, (const char *) src, len, false); return src;
How the review tested this

Review: We checked destination validation as a counterexample. The finding distinguishes validation from translation, matching pg_do_encoding_conversion. We checked destination validation as a possible exception. The finding preserves validation and correctly distinguishes it from conversion.

F11

char(n) uses variable-length storage and pads short values

ACCURATEFactual · holds up after review

Claim ledger

Article says
…char(n) is not a fixed-width type…
What is true
REL_10_23 src/backend/utils/adt/varchar.c:137-182 distinguishes character count from byte length, allocates a varlena datum, and pads spaces. char(n) does not enforce an exact input length. The documentation supports text or unconstrained varchar for most uses.
Charitable reading
Fixed-width refers to physical bytes rather than the declared number of characters.

Source

Source · REL_10_23 · src/backend/utils/adt/varchar.c:125-184result = (BpChar *) palloc(maxlen + VARHDRSZ); SET_VARSIZE(result, maxlen + VARHDRSZ); r = VARDATA(result); memcpy(r, s, len); /* blank pad the string if necessary */ if (maxlen > len) memset(r + len, ' ', maxlen - len);

Review correction: see "How the review tested this" below.

In the article · section “Why not?”

In the article

excerpt · section “Why not?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Why not?

It's important to note that from a storage point of view char(n) is not a fixed-width type . The actual number of bytes varies since characters may take more than one byte, and the stored values are therefore treated as variable-length anyway (even though the space padding is included in the storage).

All sources and excerpts · 2
Evidence result = (BpChar *) palloc(maxlen + VARHDRSZ); SET_VARSIZE(result, maxlen + VARHDRSZ); r = VARDATA(result); memcpy(r, s, len); /* blank pad the string if necessary */ if (maxlen > len) memset(r + len, ' ', maxlen - len);
Evidence There is no performance difference among these three types, apart from increased storage space when using the blank-padded type, and a few extra CPU cycles to check the length when storing into a length-constrained column. While
How the review tested this

Review: We distinguished character count from physical byte length. varchar.c explicitly handles both and pads short char(n) inputs. We distinguished character width from byte width. The allocation and padding code support the finding's physical-storage claim.

F12

Identity columns are available at the PostgreSQL 10 version floor

ACCURATEFactual · holds up after review

Claim ledger

Article says
…For new applications, identity columns should be used instead.
What is true
REL_10_0 doc/src/sgml/ref/create_table.sgml:65 includes identity-column syntax. REL_10_23 documents its implicit sequence and NOT NULL property at lines 688-692. Identity provides the SQL-standard alternative recommended for new applications.
Charitable reading
The recommendation targets new applications and preserves exceptions for older releases, inheritance, and shared sequences.

Source

Source · REL_10_23 · doc/src/sgml/ref/create_table.sgml:685-705This clause creates the column as an <firstterm>identity column</firstterm>. It will have an implicit sequence attached to it and the column in new rows will automatically have values from the sequence assigned to it. Such a column is implicitly <literal>NOT NULL</literal>.

Review correction: see "How the review tested this" below.

In the article · section “Don't use serial”

In the article

excerpt · section “Don't use serial” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Don't use serial

For new applications, identity columns should be used instead.

All sources and excerpts · 2
Evidence This clause creates the column as an <firstterm>identity column</firstterm>. It will have an implicit sequence attached to it and the column in new rows will automatically have values from the sequence assigned to it. Such a column is implicitly <literal>NOT NULL</literal>.
Evidence GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY [ ( <replaceable>sequence_options</replaceable> ) ] |

Version note: PostgreSQL 10.0 version-floor check.

How the review tested this

Review: We checked whether identity support arrived after PostgreSQL 10.0. Its CREATE TABLE grammar already includes identity syntax. We checked the initial PostgreSQL 10 release rather than relying solely on 10.23. Identity syntax exists at that floor.

F15

SCRAM-SHA-256 starts with PostgreSQL 10

ACCURATEFactual · holds up after review

Claim ledger

Article says
…scram-sha-256 that is available in PostgreSQL 10 and above…
What is true
PostgreSQL 10 added SCRAM-SHA-256 password negotiation and storage. REL_10_23 doc/src/sgml/release-10.sgml:22412–22414 confirms the stated compatibility floor.
Charitable reading
Availability describes server support. It does not promise support from every older client library.

Source

Source · REL_10_23 · doc/src/sgml/release-10.sgml:22400-22430Add <link linkend="auth-password">SCRAM-SHA-256</link> support for password negotiation and storage (Michael Paquier, Heikki Linnakangas)

Review correction: see "How the review tested this" below.

In the article · section “Don't use trust authentication over TCP/IP ( host , hostssl )”

In the article

excerpt · section “Don't use trust authentication over TCP/IP ( host , hostssl )” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Don't use trust authentication over TCP/IP ( host , hostssl )

There is a list of authentication methods you can choose that are better for establishing a remote connection to PostgreSQL. It is fairly easy to set up a password based authentication method, the recommendation being scram-sha-256 that is available in PostgreSQL 10 and above.

All sources and excerpts · 1
Evidence Add <link linkend="auth-password">SCRAM-SHA-256</link> support for password negotiation and storage (Michael Paquier, Heikki Linnakangas)
How the review tested this

Review: We distinguished server support from client compatibility. The finding claims only the server version floor, which PostgreSQL 10 release notes confirm. We tested whether client compatibility invalidates the version claim. The claim concerns server availability, which PostgreSQL 10 release notes confirm.

F16

Identity columns require PostgreSQL 10 or later

ACCURATEFactual · holds up after review

Claim ledger

Article says
If you need support to PostgreSQL older than version 10.
What is true
PostgreSQL 10 introduced identity columns. REL_10_23 doc/src/sgml/release-10.sgml:23028–23034 describes their addition and SQL-standard syntax. Supporting older PostgreSQL releases justifies retaining serial.
Charitable reading
The sentence gives backward compatibility as one reason to retain serial. It does not claim serial stopped working in PostgreSQL 10.

Source

Source · REL_10_23 · doc/src/sgml/release-10.sgml:23020-23045Add <link linkend="sql-createtable">identity columns</link> for assigning a numeric value to columns on insert (Peter Eisentraut)

Review correction: see "How the review tested this" below.

In the article · section “When should you?”

In the article

excerpt · section “When should you?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

When should you?

If you need support to PostgreSQL older than version 10.

All sources and excerpts · 1
Evidence Add <link linkend="sql-createtable">identity columns</link> for assigning a numeric value to columns on insert (Peter Eisentraut)
How the review tested this

Review: We checked whether the finding implies serial stopped working. It does not. PostgreSQL 10 release notes confirm identity's introduction. We checked whether the article claims serial became unavailable. It does not. The backward-compatibility exception agrees with identity's introduction.

F18

The character-padding quotation preserves the manual's qualifications

ACCURATEFactual · holds up after review

Claim ledger

Article says
…trailing spaces are treated as semantically insignificant…
What is true
PostgreSQL ignores trailing spaces when comparing character values. REL_10_23 doc/src/sgml/datatype.sgml:1118–1132 also documents padding, conversion trimming, and pattern-matching qualifications. The article preserves those distinctions.
Charitable reading
The quotation applies to comparisons between character values. The article separately preserves the text, varchar, and pattern-matching qualifications.

Source

Source · REL_10_23 · doc/src/sgml/datatype.sgml:1116-1140stored and displayed that way. However, trailing spaces are treated as semantically insignificant and disregarded when comparing two values of type <type>character</type>.

Review correction: see "How the review tested this" below.

In the article · section “Why not?”

In the article

excerpt · section “Why not?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Why not?

Values of type character are physically padded with spaces to the specified width n, and are stored and displayed that way. However, trailing spaces are treated as semantically insignificant and disregarded when comparing two values of type character. In collations where whitespace is significant, this behavior can produce unexpected results; for example SELECT 'a '::CHAR(2) collate "C" < E'a\n'::CHAR(2) returns true, even though C locale would consider a space to be greater than a newline. Trailing spaces are removed when converting a character value to one of the other string types. Note that trailing spaces are semantically significant in character varying and text values, and when using pattern matching, that is LIKE and regular expressions.

All sources and excerpts · 1
Evidence stored and displayed that way. However, trailing spaces are treated as semantically insignificant and disregarded when comparing two values of type <type>character</type>.
How the review tested this

Review: We checked the text, varchar, and pattern-matching exceptions. The article preserves the manual's qualifications. We checked whether the article drops the comparison-type qualification. Its surrounding quotation preserves character comparisons, conversion trimming, and pattern-matching exceptions.

F19

A scan subplan can require quadratic work

ACCURATEFactual · holds up after review

Claim ledger

Article says
…the plain subplan is horrifically slow (in fact O(N2))…
What is true
ExecScanSubPlan rescans the inner result for each invocation. src/backend/executor/nodeSubplan.c:339 iterates through its rows. Worst-case work is O(M × N). This becomes O(N²) when both input sizes grow together.
Charitable reading
O(N2) describes worst-case growth when both input cardinalities scale together.

Source

Source · REL_10_23 · src/backend/executor/nodeSubplan.c:220-222/* * ExecScanSubPlan: default case where we have to rescan subplan each time */

Review correction: see "How the review tested this" below.

In the article · section “Why not?”

In the article

excerpt · section “Why not?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Why not?

2. Because of point 1 above, NOT IN (SELECT ...) does not optimize very well. In particular, the planner can't transform it into an anti-join, and so it becomes either a hashed Subplan or a plain Subplan. The hashed subplan is fast, but the planner only allows that plan for small result sets; the plain subplan is horrifically slow (in fact O(N2)). This means that the performance can look good in small-scale tests but then slow down by 5 or more orders of magnitude once a size threshold is crossed; you do not want this to happen.

select * from foo where not exists (select from bar where foo.col = bar.x);
All sources and excerpts · 2
Evidence/* * ExecScanSubPlan: default case where we have to rescan subplan each time */
Evidence for (slot = ExecProcNode(planstate); !TupIsNull(slot); slot = ExecProcNode(planstate))
How the review tested this

Review: We tested unequal input sizes and early matches. The finding correctly limits quadratic growth to worst-case inputs growing together. We tested unequal cardinalities and early termination. The finding already limits quadratic growth to worst cases where both inputs scale together.

F20

Zero timestamp precision can round forward by half a second

ACCURATEFactual · holds up after review

Claim ledger

Article says
…you might be storing a value half a second in the future.
What is true
timestamp(0) rounds rather than truncates. src/backend/utils/adt/timestamp.c:337 defines a 1,000,000-microsecond scale and a 500,000-microsecond offset. A fractional part of .500000 can round forward by 0.5 seconds.
Charitable reading
The future offset refers to the represented instant relative to now(), rather than elapsed execution time.

Source

Source · REL_10_23 · src/backend/utils/adt/timestamp.c:337-355static const int64 TimestampScales[MAX_TIMESTAMP_PRECISION + 1] = { INT64CONST(1000000), INT64CONST(100000), INT64CONST(10000), INT64CONST(1000), INT64CONST(100), INT64CONST(10), INT64CONST(1) }; static const int64 TimestampOffsets[MAX_TIMESTAMP_PRECISION + 1] = { INT64CONST(500000), INT64CONST(50000), INT64CONST(5000), INT64CONST(500), INT64CONST(50), INT64CONST(5), INT64CONST(0) };

Review correction: see "How the review tested this" below.

In the article · section “Why not?”

In the article

excerpt · section “Why not?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Why not?

Because it rounds off the fractional part rather than truncating it as everyone would expect. This can cause unexpected issues; consider that when you store now() into such a column, you might be storing a value half a second in the future.

All sources and excerpts · 2
Evidence static const int64 TimestampScales[MAX_TIMESTAMP_PRECISION + 1] = { INT64CONST(1000000), INT64CONST(100000), INT64CONST(10000), INT64CONST(1000), INT64CONST(100), INT64CONST(10), INT64CONST(1) }; static const int64 TimestampOffsets[MAX_TIMESTAMP_PRECISION + 1] = { INT64CONST(500000), INT64CONST(50000), INT64CONST(5000), INT64CONST(500), INT64CONST(50), INT64CONST(5), INT64CONST(0) };
Evidence if (*time >= INT64CONST(0)) { *time = ((*time + TimestampOffsets[typmod]) / TimestampScales[typmod]) * TimestampScales[typmod];
How the review tested this

Review: We checked the half-second boundary against integer arithmetic. Adding 500,000 microseconds before division permits the stated forward rounding. We checked the rounding boundary. Adding 500,000 microseconds before division permits a .500000 fraction to advance by 0.5 seconds.

F21

A varchar length limit adds no per-value storage

ACCURATEFactual · holds up after review

Claim ledger

Article says
…they will take up exactly the same amount of space…
What is true
varchar(n), varchar, and text use the same storage for identical stored strings. REL_10_23 doc/src/sgml/datatype.sgml:1144 describes the shared string overhead. The length limit does not reserve n characters.
Charitable reading
The three types are varchar(n), unrestricted varchar, and text. The inserted string fits the declared limit.

Source

Source · REL_10_23 · doc/src/sgml/datatype.sgml:1144-1147The storage requirement for a short string (up to 126 bytes) is 1 byte plus the actual string, which includes the space padding in the case of <type>character</type>. Longer strings have 4 bytes of overhead instead of 1. Long strings are compressed by the system automatically, so

Review correction: see "How the review tested this" below.

In the article · section “Why not?”

In the article

excerpt · section “Why not?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Why not?

varchar (without the (n) ) or text are similar, but without the length limit. If you insert the same string into the three field types they will take up exactly the same amount of space, and you won't be able to measure any difference in performance.

All sources and excerpts · 1
Evidence The storage requirement for a short string (up to 126 bytes) is 1 byte plus the actual string, which includes the space padding in the case of <type>character</type>. Longer strings have 4 bytes of overhead instead of 1. Long strings are compressed by the system automatically, so
How the review tested this

Review: We checked whether the comparison includes blank-padded char(n). It compares varchar(n), varchar, and text with identical stored strings. We checked the antecedent of three field types. It excludes char(n). The finding correctly assumes identical stored strings that fit.

F22

-W can avoid one unsuccessful connection attempt

ACCURATEFactual · holds up after review

Claim ledger

Article says
It will save a round trip to the server…
What is true
Without an available password, psql first discovers that authentication requires one. src/bin/psql/startup.c:246 closes that connection, prompts, and retries. Supplying the password through -W avoids that initial unsuccessful attempt.
Charitable reading
Round trip means the initial unsuccessful connection attempt when the server requires an unavailable password.

Source

Source · REL_10_23 · src/bin/psql/startup.c:246-256 if (PQstatus(pset.db) == CONNECTION_BAD && PQconnectionNeedsPassword(pset.db) && !have_password && pset.getPassword != TRI_NO) { PQfinish(pset.db); simple_prompt(password_prompt, password, sizeof(password), false); have_password = true; new_pass = true; } } while (new_pass);

Review correction: see "How the review tested this" below.

In the article · section “When should you?”

In the article

excerpt · section “When should you?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

When should you?

Never, pretty much. It will save a round trip to the server but that's about it.

All sources and excerpts · 1
Evidence if (PQstatus(pset.db) == CONNECTION_BAD && PQconnectionNeedsPassword(pset.db) && !have_password && pset.getPassword != TRI_NO) { PQfinish(pset.db); simple_prompt(password_prompt, password, sizeof(password), false); have_password = true; new_pass = true; } } while (new_pass);
How the review tested this

Review: We checked existing passwords and nonpassword authentication as counterexamples. The finding limits the saving to an otherwise unsuccessful password-discovery connection. We tested peer authentication and passwords available elsewhere. The finding explicitly limits the saving to an otherwise unsuccessful password-discovery connection.

Notes

4 not graded: findings no reader would act on differently
F3

Query rewriting does not make every rule incorrect

NOTEholds up after review

Claim ledger

Article says
…all non-trivial rules are incorrect…
What is true
PostgreSQL documents valid rules alongside equivalent trigger implementations. REL_10_23 doc/src/sgml/rules.sgml:2254-2255 makes the choice depend on database usage. Lines 2296-2297 provide a cascading-delete rule. The article's trigger-first advice remains a reasonable default.
Charitable reading
The sentence strongly warns against mistaking query rewrites for row-level procedural logic.

Source

Source · REL_10_23 · doc/src/sgml/rules.sgml:2254-2255For the things that can be implemented by both, which is best depends on the usage of the database.

Not graded: no reader would act differently on it.

Review correction: see "How the review tested this" below.

In the article · section “Why not?”

In the article

excerpt · section “Why not?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Why not?

That means that all non-trivial rules are incorrect .

All sources and excerpts · 2
Evidence For the things that can be implemented by both, which is best depends on the usage of the database.
EvidenceCREATE RULE computer_del AS ON DELETE TO computer DO DELETE FROM software WHERE hostname = OLD.hostname;
How the review tested this

Review: We considered the warning rhetorical. The finding already treats it as an ungraded note and preserves trigger-first advice. We tested the rhetorical reading of non-trivial. The existing note preserves that reading while documenting a supported rule example.

F4

Equivalent lc_monetary settings need not invalidate money amounts

NOTEholds up after review

Claim ledger

Article says
…all money columns will contain the wrong value.
What is true
lc_monetary controls monetary formatting and fractional precision. REL_10_23 src/backend/utils/adt/cash.c:327-352 reads those locale properties during output. Equivalent settings can preserve the represented amount. doc/src/sgml/datatype.sgml:966-967 explicitly permits the same or equivalent locale when restoring money data.
Charitable reading
Changing currencies or fractional precision can reinterpret money values exactly as the article warns.

Source

Source · REL_10_23 · doc/src/sgml/config.sgml:7171-7173Sets the locale to use for formatting monetary amounts, for example with the <function>to_char</function> family of functions. Acceptable values are system-dependent; see <xref

Not graded: no reader would act differently on it.

Review correction: see "How the review tested this" below.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…all money columns will contain the wrong value.
All sources and excerpts · 3
Evidence Sets the locale to use for formatting monetary amounts, for example with the <function>to_char</function> family of functions. Acceptable values are system-dependent; see <xref
Evidence struct lconv *lconvert = PGLC_localeconv(); /* see comments about frac_digits in cash_in() */ points = lconvert->frac_digits; if (points < 0 || points > 10) points = 2; /* best guess in this case, I think */
Evidence restoring a dump into a new database make sure <varname>lc_monetary</> has the same or equivalent value as in the database that was dumped.
How the review tested this

Review: We checked whether every locale change alters monetary meaning. The documentation expressly permits equivalent settings. Note severity preserves the valid warning. We checked whether every locale change alters monetary interpretation. The documentation permits equivalent settings. The ungraded qualification stands.

F14

Note: “…all money columns will contain the wrong value…”

NOTEpartly holds after review

Claim ledger

Article says
…all money columns will contain the wrong value…
What is true
Changing lc_monetary need not invalidate money amounts when currency and fractional precision remain equivalent. REL_10_23 datatype.sgml:966-967 permits equivalent locale settings. The article's warning remains valid when currency or precision changes. This is the same qualification recorded in F4.
So what
Check the old and new monetary currency and fractional precision before deciding to rescale or migrate existing money columns.

Source

Source · REL_10_23 · doc/src/sgml/datatype.sgml:962-967restoring a dump into a new database make sure <varname>lc_monetary</> has the same or equivalent value as in the database that was dumped.

Not graded: no reader would act differently on it.

Review correction: see "How the review tested this" below.

In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…all money columns will contain the wrong value…
All sources and excerpts · 3
Evidence restoring a dump into a new database make sure <varname>lc_monetary</> has the same or equivalent value as in the database that was dumped.
Evidence points = lconvert->frac_digits; if (points < 0 || points > 10) points = 2;
Evidence *(--bufptr) = ((uint64) value % 10) + '0'; value = ((uint64) value) / 10; digit_pos--;
How the review tested this

Review: F14 repeats F4's locale qualification. The evidence establishes equivalent settings, but does not establish the claimed migration work. Retain an ungraded note. We checked whether formatting necessarily changes monetary meaning. cash_out permits unchanged currency and precision. Checking those properties can avoid unnecessary rescaling.

F17

Note: “…anyone with access to the instance running PostgreSQL could log in as any user…”

NOTEpartly holds after review

Claim ledger

Article says
…anyone with access to the instance running PostgreSQL could log in as any user…
What is true
The cited PostgreSQL 18 trust documentation permits restricting Unix sockets through filesystem permissions. Host access alone does not guarantee socket access. HBA database and user restrictions also apply. This citation establishes the qualification for PostgreSQL 18.

Source

Source · https://www.postgresql.org/docs/current/auth-trust.htmlif you restrict access to the server's Unix-domain socket file using file-system permissions.

Not graded: no reader would act differently on it.

Review correction: see "How the review tested this" below.

In the article · section “Why not?”

In the article

excerpt · section “Why not?” · as fetched 2026-11-11 · open in article ↗ (opens in new tab)

Why not?

To take this a step further, it is also not a good idea to allow trust authentication to be used on local UNIX socket connections in a production environment, as anyone with access to the instance running PostgreSQL could log in as any user.

All sources and excerpts · 1
Evidenceif you restrict access to the server's Unix-domain socket file using file-system permissions.
How the review tested this

Review: The fetched trust page identifies PostgreSQL 18. It supports the qualification but cannot establish PostgreSQL 10 behavior by itself. We checked the complete fetched authentication page. It supports socket permissions and HBA restrictions. This current-documentation note makes no PostgreSQL 10-specific claim.

More in this report

Section checks · 13 sections

Section checks

AspectGradeFindingsCoverage
Database encodingA1 verified-accurate100% of claims (6 of 6, plus 1 that need data we do not have)
Password promptingA2 verified-accurate100% of claims (7 of 7, plus 1 that need data we do not have)
RulesAnone100% of claims (3 of 3)
Temporary tablesA1 verified-accurate86% of claims (19 of 22, plus 1 that need data we do not have)
NOT INA1 verified-accurate100% of claims (14 of 14, plus 2 that need data we do not have)
Identifier caseA-1 recipe error (fails loudly)100% of claims (13 of 13)
Timestamp precisionA2 verified-accurate100% of claims (5 of 5)
Timezone offset signsB1 inaccuracy85% of claims (6 of 7)
Character paddingA2 verified-accurate100% of claims (17 of 17, plus 1 that need data we do not have)
Varying character limitsA1 imprecise · 1 verified-accurate100% of claims (12 of 12, plus 1 that need data we do not have)
MoneyAnone90% of claims (9 of 10, plus 1 that need data we do not have)
Serial and identityA2 verified-accurate100% of claims (5 of 5)
Trust authenticationA2 verified-accurate100% of claims (14 of 14)
Coverage and assessment · Checked 172 of 180 Postgres claims across 21 sections

B — the findings address the article's main subject. What we did not check is listed below. The findings directly check PostgreSQL datatype, query, temporary-table, and authentication recommendations across the article.

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.

We held back some findings this audit's coverage rested on, because we could not stand behind their sources. The letter rests on the findings that remain.

What we did not check

  • We did not verify the temporal_tables extension recommendation or its version compatibility.
  • We did not execute the SQL examples or verify their table definitions, deployment privileges, or runtime performance.
  • We could not retrieve the rule-challenge article or the historical-records tutorial.
  • We did not inspect the wiki revision history to date changes to individual recommendations.
  • We did not reproduce the performance measurements or compare every recommendation across PostgreSQL releases.
  • We did not execute the 7 SQL examples or check their dependencies, setup, permissions, and runtime effects.
  • We did not fully check the temporal_tables extension, driver-specific index behavior, or locale-specific monetary behavior.
  • We did not measure the claimed 100,000-fold NOT IN slowdown.
  • We did not finish checking whether the article reports a benchmark.
  • We did not finish checking the evidence for the central claim.
  • Factual: we did not complete every applicable check.
  • Applicable: we did not complete every applicable check.
  • Consistent: we did not complete every applicable check.
  • Transparent: we did not complete every applicable check.
  • Safe: we did not complete every applicable check.
  • Transparent: we did not finish checking whether the claims cite sources.
  • Transparent: we did not finish checking whether the claims are dated.
  • Transparent: we did not finish checking whether the article discloses the author's interest.
  • Transparent: we did not finish checking whether the article names its author and date.
  • We could not decide whether the article depends on finding F1.
  • We did not finish checking the article's experiments.
  • We did not finish checking the steps the article gives for production.
  • We did not finish checking whether the article reports a benchmark.

Script checks

  • No code blocks were checked for syntax.
  • 7 blocks were not checked for syntax.
  • Code blocks 1, 2, 3, 4, 5, 6, 7 were not checked for syntax because the language is not supported or not declared.
  • We did not execute any scripts or check dependencies, setup, permissions, embedded SQL, function bodies, inline snippets, or run-time effects.
Checked 172 of 180 Postgres claims across 21 sections
  • Page information: no checkable claims; not counted: 1 product or opinion, 3 not a claim
  • Database encoding: 6 of 6 Postgres claims checked, plus 1 that need data we do not have
  • Password prompting: 7 of 7 Postgres claims checked, plus 1 that need data we do not have
  • Rules: 3 of 3 Postgres claims checked; not counted: 1 product or opinion
  • Table inheritance: 4 of 4 Postgres claims checked, plus 2 that need data we do not have; not counted: 2 product or opinion
  • Temporary tables: 19 of 22 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion; not checked: 3 for other reasons
  • NOT IN: 14 of 14 Postgres claims checked, plus 2 that need data we do not have; not counted: 1 product or opinion, 1 duplicate
  • Identifier case: 13 of 13 Postgres claims checked; not counted: 1 product or opinion
  • BETWEEN: 6 of 6 Postgres claims checked
  • Timestamp types: 12 of 13 Postgres claims checked; not counted: 1 duplicate; not checked: 1 for other reasons
  • UTC in timezone-free columns: 6 of 6 Postgres claims checked, plus 1 that need data we do not have; not counted: 2 product or opinion, 1 duplicate
  • Time with timezone: 2 of 2 Postgres claims checked, plus 1 that need data we do not have; not counted: 2 product or opinion
  • Current date and time: 7 of 7 Postgres claims checked
  • Timestamp precision: 5 of 5 Postgres claims checked
  • Timezone offset signs: 6 of 7 Postgres claims checked; not counted: 1 not a claim; not checked: 1 for other reasons
  • Character padding: 17 of 17 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion
  • Fixed-length identifiers: 5 of 7 Postgres claims checked, plus 2 that need data we do not have; not counted: 2 duplicate; not checked: 2 for other reasons
  • Varying character limits: 12 of 12 Postgres claims checked, plus 1 that need data we do not have; not counted: 3 product or opinion, 1 duplicate
  • Money: 9 of 10 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion; not checked: 1 for other reasons
  • Serial and identity: 5 of 5 Postgres claims checked; not counted: 1 product or opinion
  • Trust authentication: 14 of 14 Postgres claims checked; not counted: 5 product or opinion, 1 duplicate

Average of 5 axes: 3.74 · worst of factual, consistent: B− · result B

Some explanatory text is not shown in this edition; the grade and findings are complete.

Scorecard · the five axes
FACTS scorecard Scorecard radar, 5 axes, bigger is better. Overall B. Factual B- · 2 wrong of 17 checked · 1 caveat. Applicable A · 0 checked. Consistent A · 0 checked. Transparent A · 0 wrong of 8 checked · 0 caveats. Safe A · 0 checked. B- 2 wrong of 17 checked · 1 caveatFactual B-2 wrong of 171 caveat A 0 checkedApplicable A0 checked A 0 checkedConsistent A0 checked A 0 wrong of 8 checked · 0 caveatsTransparent A0 wrong of 80 caveats A 0 checkedSafe A0 checked B

By topic: Database encoding — 1 finding, 0 wrong · Password prompting — 2 findings, 0 wrong · Temporary tables — 1 finding, 0 wrong · NOT IN — 1 finding, 0 wrong · Identifier case — 1 finding, 1 wrong · Timestamp precision — 2 findings, 0 wrong · Timezone offset signs — 1 finding, 1 wrong · Character padding — 2 findings, 0 wrong · Varying character limits — 2 findings, 0 wrong · Serial and identity — 2 findings, 0 wrong · Trust authentication — 2 findings, 0 wrong

Further out is better. Each axis has its own letter, from the wrong claims and caveats among the claims we checked of that kind.

Checked on the FACTS: Factual, Applicable, Consistent, Transparent, Safe. Clockwise: Factual (is it true?), Applicable (does it apply to my setup, today?), Consistent (does it agree with itself?), Transparent (can I check it myself?), Safe (can I run this on prod?).

We checked 17 claims, 6 commands scanned.

AxisLetterWrongCaveatsCheckedCoverage
FactualB-2117partly assessed: B- · 2 wrong of 17 checked · 1 caveat · partly assessed
ApplicableA000partly assessed
ConsistentA000A · 0 checked
TransparentA008partly assessed: A · 0 wrong of 8 checked · 0 caveats · partly assessed
SafeA000partly assessed
Topics · 13 topics

Topics

TopicFactualApplicableConsistentTransparentSafe
Database encoding0 issues 1 checked F10
Password prompting0 issues 2 checked F9 F22
Rules
Temporary tables0 issues 1 checked F7
NOT IN0 issues 1 checked F19
Identifier case1 issue 1 checked F20 issues 1 checked
Timestamp precision0 issues 2 checked F8 F20
Timezone offset signs1 issue 1 checked F10 issues 1 checked
Character padding0 issues 2 checked F11 F180 issues 1 checked
Varying character limits1 issue 2 checked F13 F210 issues 2 checked
Money
Serial and identity0 issues 2 checked F12 F160 issues 2 checked0 issues 2 checked
Trust authentication0 issues 2 checked F5 F150 issues 2 checked0 issues 1 checked

Issues found among the claims checked, per topic and axis. Each link goes to the finding behind the count.

Revisions: 1 · B

We audited this article 1 time. Each row is the final edition of one audit. Letters and findings of earlier revisions stay readable at their own address.

  1. Revision 1 · this page · 2026-11-11 04:46 UTC · B · audited with v1.1.6

    Article as first submitted. 14 accurate · 1 wrong · 1 caveat.

    ElephantSeal: B. Open: central claim not checked.

    Changes: First audit. Open: F1 “The ISO offset explanation reverses east and west” (false); F2 “Lowercase characters alone do not eliminate identifier quoting” (recipe error); F13 “varchar(n) can truncate overlength input without an error” (mostly accurate).

Questions and answers

Questions and answers

What is pgTrue?

pgTrue is an independent fact-check of technical Postgres articles, made by PostgresAI. It helps you check advice before you use it.

What does the letter grade mean?

The letter grade summarizes the claims we checked. Five axes show what we checked:

  • Factual: is it true?
  • Applicable: does it apply to my setup, today?
  • Consistent: does it agree with itself?
  • Transparent: can I check it myself?
  • Safe: can I run this in production?

What is the ElephantSeal?

The ElephantSeal is the mark an article earns. It always shows the latest edition. “Open:” lists what is still open.

Can an author reply?

Authors can ask us to correct a finding, reply to it, or withdraw it. Right-of-reply policy.

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: Don't Do This

Article title: Don't Do This
Article URL: https://wiki.postgresql.org/wiki/Don%27t_Do_This
Report URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508
Audited revision: 1 of 1, 2026-11-11 04:46:43 UTC
Overall letter: B

## Axes

- Factual: B- · 2 wrong · 17 checked · 1 caveats · partly assessed
- Applicable: A · 0 wrong · 0 checked · 0 caveats · partly assessed
- Consistent: A · 0 wrong · 0 checked · 0 caveats · A · 0 checked
- Transparent: A · 0 wrong · 8 checked · 0 caveats · partly assessed
- Safe: A · 0 wrong · 0 checked · 0 caveats · partly assessed

ElephantSeal: B.
Open conditions: central claim not checked.

## Report metadata

- Report: Technical fact-check, edition 2
- pgTrue version: audited with v1.1.6
- Issued: 2026-11-11
- Edition: Updated after review. Corrections are listed below.
- Submitted: Submitted by the PostgresAI team.
- Author response: No written reply from the author. See Revisions below. Policy: [right-of-reply and corrections policy](/pgtrue/security).

## Findings needing a change (3)

### F1 · Inaccurate · Factual · The ISO offset explanation reverses east and west
Location: excerpt · section “Why not?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=the%20ISO%20convention%20is%20for,to%20be%20denoted%20as%20negative.)
Article says:
```text
…the ISO convention is for eastward shifts to be denoted as negative.
```
What is true:
ISO offsets east of UTC are positive. REL_10_23 doc/src/sgml/datatype.sgml:2354-2356 states that convention. POSIX timezone specifications reverse it. Following the parenthetical would select the opposite offset.
So what:
Use positive ISO offsets for zones east of UTC, including +04 for UTC+04.
Charitable reading:
The POSIX warning and the +04 timestamp example use the correct directions.
Review: We checked whether the surrounding correct examples rescued the parenthetical. They do not. ISO offsets east of UTC are positive. We tested whether the surrounding correct examples rescue the parenthetical. They do not. ISO offsets remain positive east of UTC.

Sources:
- [REL_10_23 · doc/src/sgml/datatype.sgml:2354-2356](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/datatype.sgml#L2354-L2356)
  Excerpt:
  ```text
  In the <acronym>ISO</acronym> style, the time zone is always shown as
     a signed numeric offset from UTC, with positive sign used for zones
     east of Greenwich.  The offset will be shown
  ```
- [REL_10_23 · doc/src/sgml/datetime.sgml:620-642](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/datetime.sgml#L620-L642)
  Excerpt:
  ```text
  or <literal>-</literal>).  The positive sign is used for
   zones <emphasis>west</emphasis> of Greenwich.  (Note that this is the
   opposite of the ISO-8601 sign convention used elsewhere in
   <acronym>PostgreSQL</acronym>.)
  ```
- [REL_10_23 · doc/src/sgml/datatype.sgml:2354-2356](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/datatype.sgml#L2354-L2356)
  Excerpt:
  ```text
  In the <acronym>ISO</acronym> style, the time zone is always shown as
     a signed numeric offset from UTC, with positive sign used for zones
     east of Greenwich.  The offset will be shown
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F1

### F2 · Recipe Error · Factual · Lowercase characters alone do not eliminate identifier quoting
Location: excerpt · section “Why not?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=Stick%20to%20using%20a%2Dz%2C%200%2D9,to%20worry%20about%20quoting%20them.)
Article says:
```text
Stick to using a-z, 0-9 and underscore for names and you never have to worry about quoting them.
```
What is true:
Lowercase reserved words still require quotes when used as identifiers. REL_10_23 doc/src/sgml/syntax.sgml:173-177 uses select as its example. Choosing names from the article's character set can still produce parse errors.
So what:
Avoid reserved words and leading digits when choosing unquoted names, or double-quote those identifiers.
Charitable reading:
The section explains case folding, and lowercase names avoid case-sensitive quoting.
Review: We tested the case-folding interpretation. The absolute quoting assurance still includes select, which the cited documentation rejects without quotes. We read the recommendation as case-folding advice. Its unconditional quoting promise still includes select, which the documentation explicitly rejects unquoted.

Sources:
- [REL_10_23 · doc/src/sgml/syntax.sgml:173-177](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/syntax.sgml#L173-L177)
  Excerpt:
  ```text
  <literal>"select"</literal> could be used to refer to a column or
    table named <quote>select</quote>, whereas an unquoted
    <literal>select</literal> would be taken as a key word and
    would therefore provoke a parse error when used where a table or
    column name is expected.  The example can be written with quoted
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F2

### F13 · Imprecise · Factual · varchar(n) can truncate overlength input without an error
Location: excerpt · section “Why not?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=will%20throw%20an%20error%20if,string%20longer%20than%20n%20characters)
Article says:
```text
…will throw an error if you try and insert a string longer than n characters…
```
What is true:
PostgreSQL truncates excess trailing spaces when assigning to varchar(n). REL_10_23 doc/src/sgml/datatype.sgml:1075–1078 documents this exception. A caller relying on an error can accept altered input.
So what:
Use text with CHECK (length(column_name) \<= n) when every overlength input must fail.
Charitable reading:
Ordinary assignments reject overlength nonspace characters. The claim omits the documented trailing-space exception.
Review: We checked whether truncation requires an explicit cast. The documentation applies the trailing-space exception to ordinary storage assignments. We excluded explicit casts as a possible misreading. The documented trailing-space exception applies to ordinary assignment itself.

Sources:
- [REL_10_23 · doc/src/sgml/datatype.sgml:1067-1098](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/datatype.sgml#L1067-L1098)
  Excerpt:
  ```text
  error, unless the excess characters are all spaces, in which case
    the string will be truncated to the maximum length.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F13

## Verified accurate claims (14)

### F5 · Accurate · Factual · Trust authentication accepts the requested role without a password
Location: excerpt · section “Why not?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=With%20trust%20authentication%2C%20any%20user,to%20be%20any%20other%20user)
Article says:
```text
With trust authentication, any user can claim to be any other user…
```
What is true:
REL_10_23 src/backend/libpq/auth.c:591-593 returns STATUS_OK for trust authentication. The requested role can include a superuser. Network reachability and HBA database/user restrictions still apply. SCRAM authentication exists at the article's PostgreSQL 10 version floor.
Charitable reading:
The warning concerns connections that can reach PostgreSQL and match a trust HBA entry.
Review: We checked HBA restrictions as a counterexample. The finding explicitly preserves them. The trust branch returns STATUS_OK. We checked HBA restrictions as a counterexample. The finding already preserves them and correctly describes trust authentication.

Sources:
- [REL_10_23 · src/backend/libpq/auth.c:591-593](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/libpq/auth.c#L591-L593)
  Excerpt:
  ```text
  case uaTrust:
			status = STATUS_OK;
			break;
  ```
- [REL_10_23 · doc/src/sgml/client-auth.sgml:873-878](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/client-auth.sgml#L873-L878)
  Excerpt:
  ```text
  <productname>PostgreSQL</productname> assumes that anyone who can
    connect to the server is authorized to access the database with
    whatever database user name they specify (even superuser names).
    Of course, restrictions made in the <literal>database</> and
    <literal>user</> columns still apply.
  ```
- [REL_10_0 · doc/src/sgml/client-auth.sgml:939-939](https://github.com/postgres/postgres/blob/5df0e99bea1c3e5fbffa7fbd0982da88ea149bb6/doc/src/sgml/client-auth.sgml#L939-L939)
  Qualification: Version note: PostgreSQL 10.0 version-floor check.
  Excerpt:
  ```text
  The method <literal>scram-sha-256</> performs SCRAM-SHA-256
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F5

### F7 · Accurate · Factual · Temporary-table DDL fails on hot standby and updates catalogs on the primary
Location: excerpt · section “Why not?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=Temporary%20tables%20cannot%20be%20created,modified%20on%20PostgreSQL%20hot%20standbys.)
Article says:
```text
…Temporary tables cannot be created or modified on PostgreSQL hot standbys.
```
What is true:
Hot standby rejects temporary-table DDL and DML. REL_10_23 doc/src/sgml/high-availability.sgml:1787-1802 documents both restrictions. Relation creation updates catalogs in heap.c:1273-1286. RETURN QUERY avoids that table DDL, but its tuplestore can spill according to work_mem in pl_exec.c:3114-3116.
Charitable reading:
The example describes executing a previously installed function on standby, rather than creating it there.
Review: We checked whether temporary tables escape standby restrictions. The documentation explicitly excludes that exception. The finding does not claim runtime validation. We distinguished installing the function from calling it on standby. The finding correctly limits its claim to avoiding temporary-table DDL.

Sources:
- [REL_10_23 · doc/src/sgml/high-availability.sgml:1787-1802](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/high-availability.sgml#L1787-L1802)
  Excerpt:
  ```text
  Data Definition Language (DDL) - <command>CREATE</>,
       <command>DROP</>, <command>ALTER</>, <command>COMMENT</>.
       This restriction applies even to temporary tables, because carrying
       out these operations would require updating the system catalog tables.
  ```
- [REL_10_23 · src/backend/catalog/heap.c:1266-1286](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/catalog/heap.c#L1266-L1286)
  Excerpt:
  ```text
  AddNewRelationTuple(pg_class_desc,
						new_rel_desc,
						relid,
						new_type_oid,
						reloftypeid,
						ownerid,
						relkind,
						PointerGetDatum(relacl),
						reloptions);
  ```
- [REL_10_23 · src/pl/plpgsql/src/pl_exec.c:3087-3116](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/pl/plpgsql/src/pl_exec.c#L3087-L3116)
  Excerpt:
  ```text
  estate->tuple_store =
		tuplestore_begin_heap(rsi->allowedModes & SFRM_Materialize_Random,
							  false, work_mem);
  ```
- [REL_10_23 · doc/src/sgml/high-availability.sgml:1697-1697](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/high-availability.sgml#L1697-L1697)
  Excerpt:
  ```text
  strictly read-only; not even temporary tables may be written.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F7

### F8 · Accurate · Factual · Verified accurate: “Because it rounds off the fractional part rather than truncating it…”
Location: excerpt · section “Why not?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=Because%20it%20rounds%20off%20the,part%20rather%20than%20truncating%20it)
Article says:
```text
Because it rounds off the fractional part rather than truncating it…
```
What is true:
REL_10_23 src/backend/utils/adt/timestamp.c:337-374 rounds timestamps to the requested precision. Precision 0 uses a 500,000-microsecond offset. The cited range checks precision rounding only.
Review: The cited range verifies precision rounding, including negative timestamps. It contains no date_trunc implementation. The verification must exclude that additional claim. We inspected both positive and negative timestamp branches. Both round fractional seconds rather than truncate them.

Sources:
- [REL_10_23 · src/backend/utils/adt/timestamp.c:331-375](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/utils/adt/timestamp.c#L331-L375)
  Excerpt:
  ```text
  *time = ((*time + TimestampOffsets[typmod]) / TimestampScales[typmod]) *
				TimestampScales[typmod];
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F8

### F9 · Accurate · Factual · psql -W requests a password before connecting
Location: excerpt · section “Why not?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=Using%20the%20%2D%2Dpassword%20or%20%2DW,prompt%20you%20for%20a%20password)
Article says:
```text
Using the --password or -W flags will tell psql to prompt you for a password…
```
What is true:
REL_10_23 src/bin/psql/startup.c:210-214 prompts before the connection attempt when password prompting is forced. Lines 246-255 request a password after a failed attempt when needed. Peer authentication does not verify the entered password.
Charitable reading:
The advice permits the stated benefit of avoiding an initial failed connection attempt.
Review: We checked whether prompting proves password authentication occurred. The documentation explicitly allows an unused password, as the finding states. We checked whether the prompt depends on server authentication. Both implementation and documentation place the forced prompt before connection.

Sources:
- [REL_10_23 · src/bin/psql/startup.c:204-255](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/bin/psql/startup.c#L204-L255)
  Excerpt:
  ```text
  if (pset.getPassword == TRI_YES)
	{
		simple_prompt(password_prompt, password, sizeof(password), false);
		have_password = true;
	}
  ```
- [REL_10_23 · doc/src/sgml/ref/psql-ref.sgml:494-526](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/ref/psql-ref.sgml#L494-L526)
  Excerpt:
  ```text
  Force <application>psql</application> to prompt for a
       password before connecting to a database, even if the password will
       not be used.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F9

### F10 · Accurate · Factual · SQL_ASCII conversion preserves bytes
Location: excerpt · section “Why not?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=SQL_ASCII%20means%20%22no%20conversions%22)
Article says:
```text
SQL_ASCII means "no conversions"…
```
What is true:
REL_10_23 src/backend/utils/mb/mbutils.c:349-356 returns the original bytes for SQL_ASCII conversions. A conversion from SQL_ASCII validates the destination encoding without translating characters. This supports the article's warning about unknown mixed encodings.
Charitable reading:
No conversion does not mean that every conversion path skips destination-encoding validation.
Review: We checked destination validation as a counterexample. The finding distinguishes validation from translation, matching pg_do_encoding_conversion. We checked destination validation as a possible exception. The finding preserves validation and correctly distinguishes it from conversion.

Sources:
- [REL_10_23 · src/backend/utils/mb/mbutils.c:337-357](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/utils/mb/mbutils.c#L337-L357)
  Excerpt:
  ```text
  if (dest_encoding == PG_SQL_ASCII)
		return src;				/* any string is valid in SQL_ASCII */

	if (src_encoding == PG_SQL_ASCII)
	{
		/* No conversion is possible, but we must validate the result */
		(void) pg_verify_mbstr(dest_encoding, (const char *) src, len, false);
		return src;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F10

### F11 · Accurate · Factual · char(n) uses variable-length storage and pads short values
Location: excerpt · section “Why not?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=char%28n%29%20is%20not%20a%20fixed%2Dwidth%20type)
Article says:
```text
…char(n) is not a fixed-width type…
```
What is true:
REL_10_23 src/backend/utils/adt/varchar.c:137-182 distinguishes character count from byte length, allocates a varlena datum, and pads spaces. char(n) does not enforce an exact input length. The documentation supports text or unconstrained varchar for most uses.
Charitable reading:
Fixed-width refers to physical bytes rather than the declared number of characters.
Review: We distinguished character count from physical byte length. varchar.c explicitly handles both and pads short char(n) inputs. We distinguished character width from byte width. The allocation and padding code support the finding's physical-storage claim.

Sources:
- [REL_10_23 · src/backend/utils/adt/varchar.c:125-184](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/utils/adt/varchar.c#L125-L184)
  Excerpt:
  ```text
  result = (BpChar *) palloc(maxlen + VARHDRSZ);
	SET_VARSIZE(result, maxlen + VARHDRSZ);
	r = VARDATA(result);
	memcpy(r, s, len);

	/* blank pad the string if necessary */
	if (maxlen > len)
		memset(r + len, ' ', maxlen - len);
  ```
- [REL_10_23 · doc/src/sgml/datatype.sgml:1068-1176](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/datatype.sgml#L1068-L1176)
  Excerpt:
  ```text
  There is no performance difference among these three types,
     apart from increased storage space when using the blank-padded
     type, and a few extra CPU cycles to check the length when storing into
     a length-constrained column.  While
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F11

### F12 · Accurate · Factual · Identity columns are available at the PostgreSQL 10 version floor
Location: excerpt · section “Don't use serial” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=For%20new%20applications%2C%20identity%20columns%20should%20be%20used%20instead.)
Article says:
```text
…For new applications, identity columns should be used instead.
```
What is true:
REL_10_0 doc/src/sgml/ref/create_table.sgml:65 includes identity-column syntax. REL_10_23 documents its implicit sequence and NOT NULL property at lines 688-692. Identity provides the SQL-standard alternative recommended for new applications.
Charitable reading:
The recommendation targets new applications and preserves exceptions for older releases, inheritance, and shared sequences.
Review: We checked whether identity support arrived after PostgreSQL 10.0. Its CREATE TABLE grammar already includes identity syntax. We checked the initial PostgreSQL 10 release rather than relying solely on 10.23. Identity syntax exists at that floor.

Sources:
- [REL_10_23 · doc/src/sgml/ref/create_table.sgml:685-705](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/ref/create_table.sgml#L685-L705)
  Excerpt:
  ```text
  This clause creates the column as an <firstterm>identity
      column</firstterm>.  It will have an implicit sequence attached to it
      and the column in new rows will automatically have values from the
      sequence assigned to it.
      Such a column is implicitly <literal>NOT NULL</literal>.
  ```
- [REL_10_0 · doc/src/sgml/ref/create_table.sgml:65-65](https://github.com/postgres/postgres/blob/5df0e99bea1c3e5fbffa7fbd0982da88ea149bb6/doc/src/sgml/ref/create_table.sgml#L65-L65)
  Qualification: Version note: PostgreSQL 10.0 version-floor check.
  Excerpt:
  ```text
  GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY [ ( <replaceable>sequence_options</replaceable> ) ] |
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F12

### F15 · Accurate · Factual · SCRAM-SHA-256 starts with PostgreSQL 10
Location: excerpt · section “Don't use trust authentication over TCP/IP ( host , hostssl )” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=scram%2Dsha%2D256%20that%20is%20available%20in%20PostgreSQL%2010%20and%20above)
Article says:
```text
…scram-sha-256 that is available in PostgreSQL 10 and above…
```
What is true:
PostgreSQL 10 added SCRAM-SHA-256 password negotiation and storage. REL_10_23 doc/src/sgml/release-10.sgml:22412–22414 confirms the stated compatibility floor.
Charitable reading:
Availability describes server support. It does not promise support from every older client library.
Review: We distinguished server support from client compatibility. The finding claims only the server version floor, which PostgreSQL 10 release notes confirm. We tested whether client compatibility invalidates the version claim. The claim concerns server availability, which PostgreSQL 10 release notes confirm.

Sources:
- [REL_10_23 · doc/src/sgml/release-10.sgml:22400-22430](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/release-10.sgml#L22400-L22430)
  Excerpt:
  ```text
  Add <link linkend="auth-password">SCRAM-SHA-256</link>
        support for password negotiation and storage (Michael Paquier,
        Heikki Linnakangas)
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F15

### F16 · Accurate · Factual · Identity columns require PostgreSQL 10 or later
Location: excerpt · section “When should you?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=If%20you%20need%20support%20to%20PostgreSQL%20older%20than%20version%2010.)
Article says:
```text
If you need support to PostgreSQL older than version 10.
```
What is true:
PostgreSQL 10 introduced identity columns. REL_10_23 doc/src/sgml/release-10.sgml:23028–23034 describes their addition and SQL-standard syntax. Supporting older PostgreSQL releases justifies retaining serial.
Charitable reading:
The sentence gives backward compatibility as one reason to retain serial. It does not claim serial stopped working in PostgreSQL 10.
Review: We checked whether the finding implies serial stopped working. It does not. PostgreSQL 10 release notes confirm identity's introduction. We checked whether the article claims serial became unavailable. It does not. The backward-compatibility exception agrees with identity's introduction.

Sources:
- [REL_10_23 · doc/src/sgml/release-10.sgml:23020-23045](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/release-10.sgml#L23020-L23045)
  Excerpt:
  ```text
  Add <link linkend="sql-createtable">identity columns</link> for
       assigning a numeric value to columns on insert (Peter Eisentraut)
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F16

### F18 · Accurate · Factual · The character-padding quotation preserves the manual's qualifications
Location: excerpt · section “Why not?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=trailing%20spaces%20are%20treated%20as%20semantically%20insignificant)
Article says:
```text
…trailing spaces are treated as semantically insignificant…
```
What is true:
PostgreSQL ignores trailing spaces when comparing character values. REL_10_23 doc/src/sgml/datatype.sgml:1118–1132 also documents padding, conversion trimming, and pattern-matching qualifications. The article preserves those distinctions.
Charitable reading:
The quotation applies to comparisons between character values. The article separately preserves the text, varchar, and pattern-matching qualifications.
Review: We checked the text, varchar, and pattern-matching exceptions. The article preserves the manual's qualifications. We checked whether the article drops the comparison-type qualification. Its surrounding quotation preserves character comparisons, conversion trimming, and pattern-matching exceptions.

Sources:
- [REL_10_23 · doc/src/sgml/datatype.sgml:1116-1140](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/datatype.sgml#L1116-L1140)
  Excerpt:
  ```text
  stored and displayed that way.  However, trailing spaces are treated as
    semantically insignificant and disregarded when comparing two values
    of type <type>character</type>.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F18

### F19 · Accurate · Factual · A scan subplan can require quadratic work
Location: excerpt · section “Why not?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=the%20plain%20subplan%20is%20horrifically%20slow%20%28in%20fact%20O%28N2%29%29)
Article says:
```text
…the plain subplan is horrifically slow (in fact O(N2))…
```
What is true:
ExecScanSubPlan rescans the inner result for each invocation. src/backend/executor/nodeSubplan.c:339 iterates through its rows. Worst-case work is O(M × N). This becomes O(N²) when both input sizes grow together.
Charitable reading:
O(N2) describes worst-case growth when both input cardinalities scale together.
Review: We tested unequal input sizes and early matches. The finding correctly limits quadratic growth to worst-case inputs growing together. We tested unequal cardinalities and early termination. The finding already limits quadratic growth to worst cases where both inputs scale together.

Sources:
- [REL_10_23 · src/backend/executor/nodeSubplan.c:220-222](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/executor/nodeSubplan.c#L220-L222)
  Excerpt:
  ```text
  /*
 * ExecScanSubPlan: default case where we have to rescan subplan each time
 */
  ```
- [REL_10_23 · src/backend/executor/nodeSubplan.c:339-341](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/executor/nodeSubplan.c#L339-L341)
  Excerpt:
  ```text
  for (slot = ExecProcNode(planstate);
		 !TupIsNull(slot);
		 slot = ExecProcNode(planstate))
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F19

### F20 · Accurate · Factual · Zero timestamp precision can round forward by half a second
Location: excerpt · section “Why not?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=you%20might%20be%20storing%20a,a%20second%20in%20the%20future.)
Article says:
```text
…you might be storing a value half a second in the future.
```
What is true:
timestamp(0) rounds rather than truncates. src/backend/utils/adt/timestamp.c:337 defines a 1,000,000-microsecond scale and a 500,000-microsecond offset. A fractional part of .500000 can round forward by 0.5 seconds.
Charitable reading:
The future offset refers to the represented instant relative to now(), rather than elapsed execution time.
Review: We checked the half-second boundary against integer arithmetic. Adding 500,000 microseconds before division permits the stated forward rounding. We checked the rounding boundary. Adding 500,000 microseconds before division permits a .500000 fraction to advance by 0.5 seconds.

Sources:
- [REL_10_23 · src/backend/utils/adt/timestamp.c:337-355](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/utils/adt/timestamp.c#L337-L355)
  Excerpt:
  ```text
  static const int64 TimestampScales[MAX_TIMESTAMP_PRECISION + 1] = {
		INT64CONST(1000000),
		INT64CONST(100000),
		INT64CONST(10000),
		INT64CONST(1000),
		INT64CONST(100),
		INT64CONST(10),
		INT64CONST(1)
	};

	static const int64 TimestampOffsets[MAX_TIMESTAMP_PRECISION + 1] = {
		INT64CONST(500000),
		INT64CONST(50000),
		INT64CONST(5000),
		INT64CONST(500),
		INT64CONST(50),
		INT64CONST(5),
		INT64CONST(0)
	};
  ```
- [REL_10_23 · src/backend/utils/adt/timestamp.c:366-369](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/utils/adt/timestamp.c#L366-L369)
  Excerpt:
  ```text
  if (*time >= INT64CONST(0))
		{
			*time = ((*time + TimestampOffsets[typmod]) / TimestampScales[typmod]) *
				TimestampScales[typmod];
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F20

### F21 · Accurate · Factual · A varchar length limit adds no per-value storage
Location: excerpt · section “Why not?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=they%20will%20take%20up%20exactly%20the%20same%20amount%20of%20space)
Article says:
```text
…they will take up exactly the same amount of space…
```
What is true:
varchar(n), varchar, and text use the same storage for identical stored strings. REL_10_23 doc/src/sgml/datatype.sgml:1144 describes the shared string overhead. The length limit does not reserve n characters.
Charitable reading:
The three types are varchar(n), unrestricted varchar, and text. The inserted string fits the declared limit.
Review: We checked whether the comparison includes blank-padded char(n). It compares varchar(n), varchar, and text with identical stored strings. We checked the antecedent of three field types. It excludes char(n). The finding correctly assumes identical stored strings that fit.

Sources:
- [REL_10_23 · doc/src/sgml/datatype.sgml:1144-1147](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/datatype.sgml#L1144-L1147)
  Excerpt:
  ```text
  The storage requirement for a short string (up to 126 bytes) is 1 byte
    plus the actual string, which includes the space padding in the case of
    <type>character</type>.  Longer strings have 4 bytes of overhead instead
    of 1.  Long strings are compressed by the system automatically, so
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F21

### F22 · Accurate · Factual · -W can avoid one unsuccessful connection attempt
Location: excerpt · section “When should you?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=It%20will%20save%20a%20round%20trip%20to%20the%20server)
Article says:
```text
It will save a round trip to the server…
```
What is true:
Without an available password, psql first discovers that authentication requires one. src/bin/psql/startup.c:246 closes that connection, prompts, and retries. Supplying the password through -W avoids that initial unsuccessful attempt.
Charitable reading:
Round trip means the initial unsuccessful connection attempt when the server requires an unavailable password.
Review: We checked existing passwords and nonpassword authentication as counterexamples. The finding limits the saving to an otherwise unsuccessful password-discovery connection. We tested peer authentication and passwords available elsewhere. The finding explicitly limits the saving to an otherwise unsuccessful password-discovery connection.

Sources:
- [REL_10_23 · src/bin/psql/startup.c:246-256](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/bin/psql/startup.c#L246-L256)
  Excerpt:
  ```text
  if (PQstatus(pset.db) == CONNECTION_BAD &&
			PQconnectionNeedsPassword(pset.db) &&
			!have_password &&
			pset.getPassword != TRI_NO)
		{
			PQfinish(pset.db);
			simple_prompt(password_prompt, password, sizeof(password), false);
			have_password = true;
			new_pass = true;
		}
	} while (new_pass);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F22

## Notes (not graded) (4)

### F3 · Note ·  · Query rewriting does not make every rule incorrect
Location: excerpt · section “Why not?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=all%20non%2Dtrivial%20rules%20are%20incorrect)
Article says:
```text
…all non-trivial rules are incorrect…
```
What is true:
PostgreSQL documents valid rules alongside equivalent trigger implementations. REL_10_23 doc/src/sgml/rules.sgml:2254-2255 makes the choice depend on database usage. Lines 2296-2297 provide a cascading-delete rule. The article's trigger-first advice remains a reasonable default.
Charitable reading:
The sentence strongly warns against mistaking query rewrites for row-level procedural logic.
Explanation: Not graded: no reader would act differently on it.
Review: We considered the warning rhetorical. The finding already treats it as an ungraded note and preserves trigger-first advice. We tested the rhetorical reading of non-trivial. The existing note preserves that reading while documenting a supported rule example.

Sources:
- [REL_10_23 · doc/src/sgml/rules.sgml:2254-2255](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/rules.sgml#L2254-L2255)
  Excerpt:
  ```text
  For the things that can be implemented by both, which is best
    depends on the usage of the database.
  ```
- [REL_10_23 · doc/src/sgml/rules.sgml:2296-2297](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/rules.sgml#L2296-L2297)
  Excerpt:
  ```text
  CREATE RULE computer_del AS ON DELETE TO computer
    DO DELETE FROM software WHERE hostname = OLD.hostname;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F3

### F4 · Note ·  · Equivalent lc_monetary settings need not invalidate money amounts
Location: Article · exact quote · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=all%20money%20columns%20will%20contain%20the%20wrong%20value.)
Article says:
```text
…all money columns will contain the wrong value.
```
What is true:
lc_monetary controls monetary formatting and fractional precision. REL_10_23 src/backend/utils/adt/cash.c:327-352 reads those locale properties during output. Equivalent settings can preserve the represented amount. doc/src/sgml/datatype.sgml:966-967 explicitly permits the same or equivalent locale when restoring money data.
Charitable reading:
Changing currencies or fractional precision can reinterpret money values exactly as the article warns.
Explanation: Not graded: no reader would act differently on it.
Review: We checked whether every locale change alters monetary meaning. The documentation expressly permits equivalent settings. Note severity preserves the valid warning. We checked whether every locale change alters monetary interpretation. The documentation permits equivalent settings. The ungraded qualification stands.

Sources:
- [REL_10_23 · doc/src/sgml/config.sgml:7171-7173](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/config.sgml#L7171-L7173)
  Excerpt:
  ```text
  Sets the locale to use for formatting monetary amounts, for
        example with the <function>to_char</function> family of
        functions.  Acceptable values are system-dependent; see <xref
  ```
- [REL_10_23 · src/backend/utils/adt/cash.c:306-352](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/utils/adt/cash.c#L306-L352)
  Excerpt:
  ```text
  struct lconv *lconvert = PGLC_localeconv();

	/* see comments about frac_digits in cash_in() */
	points = lconvert->frac_digits;
	if (points < 0 || points > 10)
		points = 2;				/* best guess in this case, I think */
  ```
- [REL_10_23 · doc/src/sgml/datatype.sgml:962-967](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/datatype.sgml#L962-L967)
  Excerpt:
  ```text
  restoring a dump into a new database make sure <varname>lc_monetary</> has
    the same or equivalent value as in the database that was dumped.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F4

### F14 · Note ·  · Note: “…all money columns will contain the wrong value…”
Location: Article · exact quote · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=all%20money%20columns%20will%20contain%20the%20wrong%20value)
Article says:
```text
…all money columns will contain the wrong value…
```
What is true:
Changing lc_monetary need not invalidate money amounts when currency and fractional precision remain equivalent. REL_10_23 datatype.sgml:966-967 permits equivalent locale settings. The article's warning remains valid when currency or precision changes. This is the same qualification recorded in F4.
So what:
Check the old and new monetary currency and fractional precision before deciding to rescale or migrate existing money columns.
Explanation: Not graded: no reader would act differently on it.
Review: F14 repeats F4's locale qualification. The evidence establishes equivalent settings, but does not establish the claimed migration work. Retain an ungraded note. We checked whether formatting necessarily changes monetary meaning. cash_out permits unchanged currency and precision. Checking those properties can avoid unnecessary rescaling.

Sources:
- [REL_10_23 · doc/src/sgml/datatype.sgml:962-967](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/doc/src/sgml/datatype.sgml#L962-L967)
  Excerpt:
  ```text
  restoring a dump into a new database make sure <varname>lc_monetary</> has
    the same or equivalent value as in the database that was dumped.
  ```
- [REL_10_23 · src/backend/utils/adt/cash.c:320-375](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/utils/adt/cash.c#L320-L375)
  Excerpt:
  ```text
  points = lconvert->frac_digits;
	if (points < 0 || points > 10)
		points = 2;
  ```
- [REL_10_23 · src/backend/utils/adt/cash.c:375-400](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/utils/adt/cash.c#L375-L400)
  Excerpt:
  ```text
  *(--bufptr) = ((uint64) value % 10) + '0';
		value = ((uint64) value) / 10;
		digit_pos--;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F14

### F17 · Note ·  · Note: “…anyone with access to the instance running PostgreSQL could log in as any user…”
Location: excerpt · section “Why not?” · as fetched 2026-11-11 · [open in article](https://wiki.postgresql.org/wiki/Don%27t_Do_This#:~:text=anyone%20with%20access%20to%20the,log%20in%20as%20any%20user)
Article says:
```text
…anyone with access to the instance running PostgreSQL could log in as any user…
```
What is true:
The cited PostgreSQL 18 trust documentation permits restricting Unix sockets through filesystem permissions. Host access alone does not guarantee socket access. HBA database and user restrictions also apply. This citation establishes the qualification for PostgreSQL 18.
Explanation: Not graded: no reader would act differently on it.
Review: The fetched trust page identifies PostgreSQL 18. It supports the qualification but cannot establish PostgreSQL 10 behavior by itself. We checked the complete fetched authentication page. It supports socket permissions and HBA restrictions. This current-documentation note makes no PostgreSQL 10-specific claim.

Sources:
- [https://www.postgresql.org/docs/current/auth-trust.html](https://www.postgresql.org/docs/current/auth-trust.html)
  Excerpt:
  ```text
  if you restrict access to the server's Unix-domain socket file using file-system permissions.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508#F17

## Withdrawn findings (0)

None.

## Section checks

- Database encoding · A · 1 verified-accurate · 100% of claims (6 of 6, plus 1 that need data we do not have)
- Password prompting · A · 2 verified-accurate · 100% of claims (7 of 7, plus 1 that need data we do not have)
- Rules · A · none · 100% of claims (3 of 3)
- Temporary tables · A · 1 verified-accurate · 86% of claims (19 of 22, plus 1 that need data we do not have)
- NOT IN · A · 1 verified-accurate · 100% of claims (14 of 14, plus 2 that need data we do not have)
- Identifier case · A- · 1 recipe error (fails loudly) · 100% of claims (13 of 13)
- Timestamp precision · A · 2 verified-accurate · 100% of claims (5 of 5)
- Timezone offset signs · B · 1 inaccuracy · 85% of claims (6 of 7)
- Character padding · A · 2 verified-accurate · 100% of claims (17 of 17, plus 1 that need data we do not have)
- Varying character limits · A · 1 imprecise · 1 verified-accurate · 100% of claims (12 of 12, plus 1 that need data we do not have)
- Money · A · none · 90% of claims (9 of 10, plus 1 that need data we do not have)
- Serial and identity · A · 2 verified-accurate · 100% of claims (5 of 5)
- Trust authentication · A · 2 verified-accurate · 100% of claims (14 of 14)

## Claim coverage

- Page information: no checkable claims; not counted: 1 product or opinion, 3 not a claim
- Database encoding: 6 of 6 Postgres claims checked, plus 1 that need data we do not have
- Password prompting: 7 of 7 Postgres claims checked, plus 1 that need data we do not have
- Rules: 3 of 3 Postgres claims checked; not counted: 1 product or opinion
- Table inheritance: 4 of 4 Postgres claims checked, plus 2 that need data we do not have; not counted: 2 product or opinion
- Temporary tables: 19 of 22 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion; not checked: 3 for other reasons
- NOT IN: 14 of 14 Postgres claims checked, plus 2 that need data we do not have; not counted: 1 product or opinion, 1 duplicate
- Identifier case: 13 of 13 Postgres claims checked; not counted: 1 product or opinion
- BETWEEN: 6 of 6 Postgres claims checked
- Timestamp types: 12 of 13 Postgres claims checked; not counted: 1 duplicate; not checked: 1 for other reasons
- UTC in timezone-free columns: 6 of 6 Postgres claims checked, plus 1 that need data we do not have; not counted: 2 product or opinion, 1 duplicate
- Time with timezone: 2 of 2 Postgres claims checked, plus 1 that need data we do not have; not counted: 2 product or opinion
- Current date and time: 7 of 7 Postgres claims checked
- Timestamp precision: 5 of 5 Postgres claims checked
- Timezone offset signs: 6 of 7 Postgres claims checked; not counted: 1 not a claim; not checked: 1 for other reasons
- Character padding: 17 of 17 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion
- Fixed-length identifiers: 5 of 7 Postgres claims checked, plus 2 that need data we do not have; not counted: 2 duplicate; not checked: 2 for other reasons
- Varying character limits: 12 of 12 Postgres claims checked, plus 1 that need data we do not have; not counted: 3 product or opinion, 1 duplicate
- Money: 9 of 10 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion; not checked: 1 for other reasons
- Serial and identity: 5 of 5 Postgres claims checked; not counted: 1 product or opinion
- Trust authentication: 14 of 14 Postgres claims checked; not counted: 5 product or opinion, 1 duplicate

## What we did not check

- We did not verify the temporal_tables extension recommendation or its version compatibility.
- We did not execute the SQL examples or verify their table definitions, deployment privileges, or runtime performance.
- We could not retrieve the rule-challenge article or the historical-records tutorial.
- We did not inspect the wiki revision history to date changes to individual recommendations.
- We did not reproduce the performance measurements or compare every recommendation across PostgreSQL releases.
- We did not execute the 7 SQL examples or check their dependencies, setup, permissions, and runtime effects.
- We did not fully check the temporal_tables extension, driver-specific index behavior, or locale-specific monetary behavior.
- We did not measure the claimed 100,000-fold NOT IN slowdown.
- reproducibility: benchmark check did not finish
- central claim: evidence check did not finish
- Factual: we did not complete every applicable check.
- Applicable: we did not complete every applicable check.
- Consistent: we did not complete every applicable check.
- Transparent: we did not complete every applicable check.
- Safe: we did not complete every applicable check.
- Transparent: claims sourced check did not finish.
- Transparent: claims dated check did not finish.
- Transparent: interest disclosed check did not finish.
- Transparent: author dated check did not finish.
- We could not decide whether the article depends on finding F1.
- experiments: check did not finish
- production actions: check did not finish
- benchmark: check did not finish
- No code blocks were checked for syntax.
- 7 blocks were not checked for syntax.
- Code blocks 1, 2, 3, 4, 5, 6, 7 were not checked for syntax because the language is not supported or not declared.
- We did not execute any scripts or check dependencies, setup, permissions, embedded SQL, function bodies, inline snippets, or run-time effects.

## Notes

- B — the findings address the article's main subject. What we did not check is listed below. The findings directly check PostgreSQL datatype, query, temporary-table, and authentication recommendations across the article.
- 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.
- We held back some findings this audit's coverage rested on, because we could not stand behind their sources. The letter rests on the findings that remain.
- Average of 5 axes: 3.74 · worst of factual, consistent: B− · result B
- 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_10_23 at commit 02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4 (pinned target); https://community.spiceworks.com/topic/2454825-zone-of-misunderstanding (fetched 2026-11-11T04:47:23.401842Z); https://wiki.postgresql.org/wiki/Main_Page (fetched 2026-11-11T04:47:38.995482Z); https://wiki.postgresql.org/wiki/WikiEditing (fetched 2026-11-11T04:46:58.931322Z); https://www.depesz.com/2010/06/15/to-rule-or-not-to-rule-that-is-the-question/ (fetched 2026-11-11T04:47:11.046920Z); https://www.enterprisedb.com/blog/postgresql-10-identity-columns-explained (fetched 2026-11-11T04:47:31.101971Z); https://www.percona.com/blog/what-hurts-in-postgresql-part-one-temporary-tables/ (fetched 2026-11-11T04:47:21.552223Z); https://www.postgresql.org/docs/current/auth-password.html (fetched 2026-11-11T04:47:33.998089Z); https://www.postgresql.org/docs/current/auth-trust.html (fetched 2026-11-11T04:47:35.771614Z); https://www.postgresql.org/docs/current/client-authentication.html (fetched 2026-11-11T04:47:32.754483Z); https://www.postgresql.org/docs/current/hot-standby.html (fetched 2026-11-11T04:47:18.635939Z); https://www.postgresql.org/docs/current/static/ddl-constraints.html (fetched 2026-11-11T04:47:25.735269Z); https://www.postgresql.org/docs/current/static/plpgsql-trigger.html (fetched 2026-11-11T04:47:07.084240Z); https://www.postgresql.org/docs/current/static/reference-client.html (fetched 2026-11-11T04:47:02.537145Z); https://www.postgresql.org/docs/current/static/runtime-config-client.html (fetched 2026-11-11T04:47:30.207237Z); https://www.postgresql.org/docs/current/static/sql-createrule.html (fetched 2026-11-11T04:47:04.944952Z); https://www.postgresql.org/docs/current/tutorial-inheritance.html (fetched 2026-11-11T04:47:12.688404Z); https://www.postgresql.org/message-id/20130328092819.237c0106@imp (fetched 2026-11-11T04:47:27.641942Z).
- Article captured 2026-11-11T04:46:43.471360Z · SHA-256 9922b36c0c0eada62ca91d5ac4a2823e4cb73acd986109a8c0ee97287b82e4e1 · Text extracted from the article's HTML.
- Policy SHA-256 f6b6ee15fd3e720f5d8860466659cb8dbc3a106a7bffe8dedf04d9727b62e502 · Grading rules SHA-256 6fb334e79d6b9e7ed81d3238cc10d9de602ff87ed65ff2fa781f53bac5798765.
- The article names no individual author or original publication date. We list its last edit: November 11, 2026, at 03:40 UTC.
- We did not check syntax or execute the 7 SQL blocks. We did not verify their dependencies, setup, permissions, function bodies, or runtime effects.
- We did not measure the claimed 100,000-fold NOT IN slowdown.
- We did not fully check temporal_tables compatibility, driver-specific index behavior, or locale-specific monetary behavior.
- We could not retrieve the rule-challenge article or historical-records tutorial.
- We did not inspect revision history to date individual recommendations.
- We did not compare every recommendation across PostgreSQL releases.
- 2 fetched pages are not listed above, because our policy does not allow linking them.
- withheld: F6 — this finding failed a check this edition requires.
- review: the findings were written by one model and reviewed independently by a different model.
- 8 passages in this edition fell short of our own plain-English rules.
- Built from the article text captured above, one pinned source tree, and 17 fetched pages.
- 18 survived · 3 weakened · 0 withdrawn.

## Edition changes

- F1 · recalibrated.
- F2 · recalibrated.
- F3 · recalibrated.
- F4 · recalibrated.
- F5 · recalibrated.
- F7 · recalibrated.
- F8 · weakened.
- F9 · recalibrated.
- F10 · recalibrated.
- F11 · recalibrated.
- F12 · recalibrated.
- F13 · recalibrated.
- F14 · weakened.
- F15 · recalibrated.
- F16 · recalibrated.
- F17 · weakened.
- F18 · recalibrated.
- F19 · recalibrated.
- F20 · recalibrated.
- F21 · recalibrated.
- F22 · recalibrated.

## Revision history

- [Revision 1](https://pgtrue.postgres.ai/shared/brief/01a1c919-c4e7-7fa6-98a4-011599d5f508?v=2) · this page · 2026-11-11 04:46 UTC · B · audited with v1.1.6
  Article as first submitted. 14 accurate · 1 wrong · 1 caveat.
  ElephantSeal: B. Open: central claim not checked.
  Changes: First audit. Open: F1 “The ISO offset explanation reverses east and west” (false); F2 “Lowercase characters alone do not eliminate identifier quoting” (recipe error); F13 “varchar(n) can truncate overlength input without an error” (mostly accurate).

Updated your article? Request a correction. A new edition appears at this address.