42803 — Grouping error
42803 is grouping_error: a grouped query projects a value that is neither grouped nor aggregated. The case groups category while selecting label.
English manual coverage begins with PostgreSQL 8.1. Source history and runtime observations have their own recorded version boundaries.
Reading PG 18·Select a recorded version
- aliases
- Unknown
- class name
- Syntax Error or Access Rule Violation
- condition name
- grouping_error
- lang
- en
- sqlstate
- 42803
Definition PG 18
42803 — Grouping error
At a glance {#at-a-glance}
42803 is grouping_error: a grouped query projects a value that is neither grouped nor aggregated. The case groups category while selecting label.
Meaning {#meaning}
The analyzer must assign one value to each selected expression per group. The fixed message is column "%s.%s" must appear in the GROUP BY clause or be used in an aggregate function. PostgreSQL can allow an otherwise ungrouped column when the inspected relation is proven functionally dependent on the grouping columns; the fixed check_functional_grouping path requires the GROUP BY columns to contain every column of that table's primary key, so this is not a blanket exception for any unique-looking expression. The selected VALUES relation has no such table constraint. Adding label therefore deliberately changes the report grain from one row per category to one row per (category,label), rather than being a semantics-neutral repair. The selected autocommit error leaves IDLE.
Diagnosis {#diagnosis}
Check every nonaggregate expression in SELECT, HAVING, and relevant ordering expressions. Inspect the relation's constraints before relying on functional dependency, and decide whether the desired cardinality is one row per category or one row per category/label before editing GROUP BY. Ordered-set aggregate direct arguments have a separate grouped-column rule; the DETAIL for that branch is source-backed below, but it is not the selected ordinary query.
Response {#response}
Add the intended expression to GROUP BY or aggregate it with a deliberate rule, then check cardinality. The case repairs with GROUP BY category, label and returns two rows because the two labels are distinct groups. If the business result is one row per category, choose an aggregate or an explicit rule for which label to retain instead. In an explicit transaction, the failed statement leaves the transaction in INERROR; roll it back or use an appropriate savepoint before retrying. The selected autocommit path is the case that returns to IDLE.
Observed diagnostics {#messages}
The fixed parse_agg.c group is explicit ERROR. The selected primary is column "%s.%s" must appear in the GROUP BY clause or be used in an aggregate function. When the ungrouped variable is an ordered-set aggregate's direct argument, the same source branch adds the source-only DETAIL Direct arguments of an ordered-set aggregate must use only grouped columns.; that condition is guarded by context->in_agg_direct_args and was not produced by the selected ordinary grouped query.
Representative case {#case}
The registry uses two (category,label) values, triggers with only GROUP BY category, then repairs with GROUP BY category, label ORDER BY ... and asserts (1,a,1) and (1,b,1).
SELECT category, label, count(*) FROM (VALUES (1, 'a'), (1, 'b')) AS grouping_rows(category, label) GROUP BY category;
SELECT category, label, count(*) FROM (VALUES (1, 'a'), (1, 'b')) AS grouping_rows(category, label) GROUP BY category, label ORDER BY category, label;
The selected 18.6 and 10.21 runs passed SQLSTATE, severity, state/recovery, repair, cleanup, and isolated-target stop assertions. See case JSON and authored evidence; private manifest and registry hashes are recorded there.
Versions {#versions}
The locked catalogue contains this condition from the 7.4 presence bound through the listed snapshots. The selected natural case passed on PostgreSQL 18.6 and 10.21; that bounded result does not infer every intermediate release or every source branch.
Related {#related}
Sources {#sources}
src.errcodes.REL_18_6— fixed definition at724edf9bde9d356724ad384a2e196edc3c9f80f7; SHA-2566e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba(source).src.grouping-error.18.6—src/backend/parser/parse_agg.clines 1552–1558 at724edf9bde9d356724ad384a2e196edc3c9f80f7; blob SHA-2566e80a805fddbfc9c7e0f3047b348bf992a20c99f16ce7fee89c7067753027f72(source).src.grouping-error.10.23—src/backend/parser/parse_agg.clines 1356–1362 at02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4; blob SHA-2564c7e12bba2ffd465eb55d22c2adc593afa97e5a5f9a93045a882afab1401cb28(source).src.grouping-functional-dependency.18.6—src/backend/catalog/pg_constraint.clines 1728–1778 at724edf9bde9d356724ad384a2e196edc3c9f80f7; blob SHA-2560aa324acd355da955f8eb6cec17f1a0138277a8bebd2c6e999cd2a603d3bfa01(source).src.grouping-functional-dependency.10.23—src/backend/catalog/pg_constraint.clines 1057–1107 at02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4; blob SHA-256c90dff2d1d863e6b43102d762cec6e08b6c4ba40458045b525a14b49865d8a65(source).src.calls.REL_18_6/src.calls.REL_10_23— fixed call scans, SHA-2569ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf/00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c.manifest.42803/snippet-registry.42803— hashes are recorded inevidence/42803.jsonand each runtime record.
Compare versions
SQLSTATE evidence and recorded runtime versions
cases · grouping_non_grouped_column
{
"assertions": [
"SQLSTATE is 42803 and the diagnostic identifies the ungrouped label",
"The failed autocommit session remains IDLE",
"Grouping both selected nonaggregate columns returns two deterministic rows"
],
"case_id": "grouping_non_grouped_column",
"cleanup": "Close the runner connection; the case uses VALUES only.",
"has_snippet": true,
"position": 0,
"preconditions": [
"A runner-owned disposable target is provisioned."
],
"repair": "Decide whether the label should be grouped or aggregated; adding GROUP BY blindly can change the intended cardinality.",
"trigger": "Select a nonaggregate label while grouping only the category column.",
"versions": [
"10",
"18"
]
}claims · identity.class-and-condition
{
"claim_id": "identity.class-and-condition",
"limits": "Identity does not identify every backend call that can reuse this SQLSTATE.",
"method": "Read fixed errcodes.txt and locked catalogue metadata.",
"position": 0,
"runtime": [],
"sources": [
"src.errcodes.REL_18_6"
],
"statement": "42803 is the grouping_error condition in Class 42."
}claims · mechanism.selected-source-path
{
"claim_id": "mechanism.selected-source-path",
"limits": "This is one mechanism boundary, not an exhaustive inventory of the code.",
"method": "Trace the REL_18_6 and REL_10_23 source-call records at the locked commits.",
"position": 1,
"runtime": [],
"sources": [
"src.grouping-error.18.6",
"src.grouping-error.10.23"
],
"statement": "The selected grouping_non_grouped_column follows a resolved PostgreSQL source-call group; other branches can use different dynamic fields."
}claims · mechanism.reader-boundary
{
"claim_id": "mechanism.reader-boundary",
"limits": "The claim describes the selected path and does not generalize to every branch sharing this SQLSTATE.",
"method": "Combine the selected source call, registry SQL, and passed structured assertions.",
"position": 2,
"runtime": [],
"sources": [
"src.grouping-error.18.6",
"src.grouping-error.10.23",
"src.grouping-functional-dependency.18.6",
"src.grouping-functional-dependency.10.23",
"snippet-registry.42803"
],
"statement": "Grouped output must define one value per group; the inspected functional-dependency exception is proven only when the GROUP BY columns contain every column of the table primary key, while adding label in the selected unconstrained VALUES relation changes report cardinality."
}claims · mechanism.ordered-set-detail
{
"claim_id": "mechanism.ordered-set-detail",
"limits": "The selected ordinary grouped query did not exercise ordered-set direct arguments.",
"method": "Read the complete fixed parse_agg.c error branch around the selected primary.",
"position": 3,
"runtime": [],
"sources": [
"src.grouping-error.18.6",
"src.grouping-error.10.23"
],
"statement": "The grouping walker adds the DETAIL Direct arguments of an ordered-set aggregate must use only grouped columns only when context-\u003ein_agg_direct_args is true; that branch is source-only for this review."
}claims · runtime.representative-case
{
"claim_id": "runtime.representative-case",
"limits": "Scope is limited to these statements, psycopg, and two versions.",
"method": "Run the shared SQL registry and inspect SQLSTATE, severity, state, repair, cleanup, and target stop.",
"position": 4,
"runtime": [
"runtime.syntax2-42803-latest.latest",
"runtime.syntax2-42803-pg10.pg10"
],
"sources": [
"manifest.42803",
"snippet-registry.42803"
],
"statement": "The selected grouping_non_grouped_column passed on isolated PostgreSQL 18.6 and 10.21 targets."
}claims · versions.catalogue-boundary
{
"claim_id": "versions.catalogue-boundary",
"limits": "Definition presence is not an exact behavioral introduction; two runtime versions do not prove every intermediate behavior.",
"method": "Read generated facts, fixed calls, and selected summaries.",
"position": 5,
"runtime": [],
"sources": [
"src.errcodes.REL_18_6",
"src.calls.REL_18_6",
"src.calls.REL_10_23"
],
"statement": "The locked catalogue records 42803 from the 7.4 presence bound through the listed snapshots; runtime scope is 18.6 and 10.21."
}messages · message.grouping_non_grouped_column
{
"limits": "",
"message_id": "message.grouping_non_grouped_column",
"path": "",
"position": 0,
"raw": {
"detail_variants": [
{
"condition": "context-\u003ein_agg_direct_args",
"scope": "source-only ordered-set direct-argument branch",
"sources": [
"src.grouping-error.18.6",
"src.grouping-error.10.23"
],
"template": "Direct arguments of an ordered-set aggregate must use only grouped columns."
}
],
"id": "message.grouping_non_grouped_column",
"primary_template": "column \"%s.%s\" must appear in the GROUP BY clause or be used in an aggregate function",
"severity_source": "explicit ERROR",
"sources": [
"src.grouping-error.18.6",
"src.grouping-error.10.23"
],
"sqlstate": "42803"
},
"severity": "explicit ERROR",
"sources": [
"src.grouping-error.18.6",
"src.grouping-error.10.23"
],
"templates": [
{
"kind": "primary",
"literal": "column \" . \" must appear in the GROUP BY clause or be used in an aggregate function",
"position": 0,
"role": "",
"template": "column \"%s.%s\" must appear in the GROUP BY clause or be used in an aggregate function"
},
{
"kind": "detail",
"literal": "Direct arguments of an ordered-set aggregate must use only grouped columns.",
"position": 1,
"role": "",
"template": "Direct arguments of an ordered-set aggregate must use only grouped columns."
}
]
}runtimes · runtime.syntax2-42803-latest.latest · 18.6 (Homebrew) · passed
{
"cases": [
"grouping_non_grouped_column"
],
"limits": "",
"position": 0,
"raw": {
"assertions": [
{
"expected": "42803",
"name": "42803 SQLSTATE",
"observed": "42803",
"passed": true
},
{
"expected": "ERROR",
"name": "42803 ERROR severity",
"observed": "ERROR",
"passed": true
},
{
"expected": "grouping_rows.label must appear...",
"name": "grouping diagnostic names the ungrouped column",
"observed": "column \"grouping_rows.label\" must appear in the GROUP BY clause or be used in an aggregate function",
"passed": true
},
{
"expected": "IDLE",
"name": "grouping error leaves autocommit session usable",
"observed": "IDLE",
"passed": true
},
{
"expected": {
"rows": [
[
1,
"a",
1
],
[
1,
"b",
1
]
],
"status": "IDLE"
},
"name": "grouping every selected nonaggregate repairs the query",
"observed": {
"error": true,
"rows": [
[
1,
"a",
1
],
[
1,
"b",
1
]
],
"status": "IDLE"
},
"passed": true
}
],
"case_manifest": {
"id": "manifest.42803",
"kind": "local_artifact",
"path": "verify/cases/42803/cases.json",
"sha256": "e34cb132807bb039dc5464b64812e72d2062480867206ca9cdb2fee25c7accc0",
"source_role": "case_manifest"
},
"cases": [
"grouping_non_grouped_column"
],
"cleanup": {
"errors": [],
"passed": true
},
"environment": {
"TimeZone": "Asia/Shanghai",
"backend_pid": 29762,
"binary": {
"bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
"pg_config": "/opt/homebrew/bin/pg_config",
"pg_config_version": "PostgreSQL 18.6 (Homebrew)",
"postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
},
"connection_scope": "runner-owned localhost port",
"current_user": "runner",
"docker": {},
"lc_messages": "C",
"libpq_version": "18.6",
"locale": "C.UTF-8",
"log_destination": "csvlog,jsonlog",
"log_error_verbosity": "verbose",
"log_min_error_statement": "error",
"log_min_messages": "error",
"logging_collector": "on",
"machine": "arm64",
"max_connections": "100",
"platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
"psycopg_version": "3.3.5",
"python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
"server_encoding": "UTF8",
"server_version": "18.6 (Homebrew)",
"server_version_num": "180006",
"target_kind": "latest",
"wal_level": "logical"
},
"id": "runtime.syntax2-42803-latest.latest",
"observed": {
"connection_autocommit": true,
"diagnostic": {
"column_name": null,
"constraint_name": null,
"context": null,
"datatype_name": null,
"exception_type": "GroupingError",
"internal_position": null,
"internal_query": null,
"message_detail": null,
"message_hint": null,
"message_primary": "column \"grouping_rows.label\" must appear in the GROUP BY clause or be used in an aggregate function",
"schema_name": null,
"severity": "ERROR",
"severity_nonlocalized": "ERROR",
"source_file": "parse_agg.c",
"source_function": "substitute_grouped_columns_mutator",
"source_line": "1558",
"sqlstate": "42803",
"statement_position": "18",
"table_name": null,
"text": "column \"grouping_rows.label\" must appear in the GROUP BY clause or be used in an aggregate function\nLINE 1: SELECT category, label, count(*) FROM (VALUES (1, 'a'), (1, ...\n ^"
},
"failed_status": "IDLE",
"repair_rows": [
[
1,
"a",
1
],
[
1,
"b",
1
]
],
"repair_status": "IDLE"
},
"raw": "verify/results/syntax2-42803-latest/latest/raw.jsonl",
"raw_sha256": "3665e3efd3e238030d493a54e012a3c08198f149697f49035a1e9e08a385f3e1",
"run_id": "syntax2-42803-latest",
"server_version": "18.6 (Homebrew)",
"server_version_num": 180006,
"snippet_registry": {
"id": "snippet-registry.42803",
"kind": "local_artifact",
"path": "verify/cases/42803/snippets.json",
"sha256": "90fe9aa4bccfd8dca5c4b5a1a2e9e792a62a73bc1ef49fe99430fea80e58b5df",
"source_role": "snippet_registry"
},
"status": "passed",
"summary": "verify/results/syntax2-42803-latest/latest/summary.json",
"summary_sha256": "3869b8a34fba037b9d4b9c2da39b9ab2bbfd8ad77ffeb6c5b4ea5e7884b4284e",
"target": "latest",
"target_stop": {
"argv": [
"/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
"-D",
"/Users/vonng/pgcenter/err-code/.cache/runtime/syntax2-42803-latest/latest/data",
"-m",
"fast",
"-w",
"stop"
],
"elapsed_seconds": 0.106,
"returncode": 0,
"stderr": "",
"stdout": "waiting for server to shut down.... done\nserver stopped\n"
}
},
"run_id": "syntax2-42803-latest",
"runtime_id": "runtime.syntax2-42803-latest.latest",
"server_version": "18.6 (Homebrew)",
"status": "passed",
"target": "latest"
}runtimes · runtime.syntax2-42803-pg10.pg10 · 10.21 (Debian 10.21-1.pgdg90+1) · passed
{
"cases": [
"grouping_non_grouped_column"
],
"limits": "",
"position": 1,
"raw": {
"assertions": [
{
"expected": "42803",
"name": "42803 SQLSTATE",
"observed": "42803",
"passed": true
},
{
"expected": "ERROR",
"name": "42803 ERROR severity",
"observed": "ERROR",
"passed": true
},
{
"expected": "grouping_rows.label must appear...",
"name": "grouping diagnostic names the ungrouped column",
"observed": "column \"grouping_rows.label\" must appear in the GROUP BY clause or be used in an aggregate function",
"passed": true
},
{
"expected": "IDLE",
"name": "grouping error leaves autocommit session usable",
"observed": "IDLE",
"passed": true
},
{
"expected": {
"rows": [
[
1,
"a",
1
],
[
1,
"b",
1
]
],
"status": "IDLE"
},
"name": "grouping every selected nonaggregate repairs the query",
"observed": {
"error": true,
"rows": [
[
1,
"a",
1
],
[
1,
"b",
1
]
],
"status": "IDLE"
},
"passed": true
}
],
"case_manifest": {
"id": "manifest.42803",
"kind": "local_artifact",
"path": "verify/cases/42803/cases.json",
"sha256": "e34cb132807bb039dc5464b64812e72d2062480867206ca9cdb2fee25c7accc0",
"source_role": "case_manifest"
},
"cases": [
"grouping_non_grouped_column"
],
"cleanup": {
"errors": [],
"passed": true
},
"environment": {
"TimeZone": "Etc/UTC",
"backend_pid": 79,
"binary": {},
"connection_scope": "runner-owned localhost port",
"current_user": "postgres",
"docker": {
"architecture": "arm64",
"command": "/usr/local/bin/docker",
"digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
"id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
"image": "postgres:10",
"image_created": "2022-06-23T09:11:18.374607054Z",
"image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
"log_destination": "csvlog",
"os": "linux",
"repo_digests": [
"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
]
},
"lc_messages": "en_US.utf8",
"libpq_version": "18.6",
"locale": "C.UTF-8",
"log_destination": "csvlog",
"log_error_verbosity": "verbose",
"log_min_error_statement": "error",
"log_min_messages": "error",
"logging_collector": "on",
"machine": "arm64",
"max_connections": "100",
"platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
"psycopg_version": "3.3.5",
"python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
"server_encoding": "UTF8",
"server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
"server_version_num": "100021",
"target_kind": "pg10",
"wal_level": "logical"
},
"id": "runtime.syntax2-42803-pg10.pg10",
"observed": {
"connection_autocommit": true,
"diagnostic": {
"column_name": null,
"constraint_name": null,
"context": null,
"datatype_name": null,
"exception_type": "GroupingError",
"internal_position": null,
"internal_query": null,
"message_detail": null,
"message_hint": null,
"message_primary": "column \"grouping_rows.label\" must appear in the GROUP BY clause or be used in an aggregate function",
"schema_name": null,
"severity": "ERROR",
"severity_nonlocalized": "ERROR",
"source_file": "parse_agg.c",
"source_function": "check_ungrouped_columns_walker",
"source_line": "1362",
"sqlstate": "42803",
"statement_position": "18",
"table_name": null,
"text": "column \"grouping_rows.label\" must appear in the GROUP BY clause or be used in an aggregate function\nLINE 1: SELECT category, label, count(*) FROM (VALUES (1, 'a'), (1, ...\n ^"
},
"failed_status": "IDLE",
"repair_rows": [
[
1,
"a",
1
],
[
1,
"b",
1
]
],
"repair_status": "IDLE"
},
"raw": "verify/results/syntax2-42803-pg10/pg10/raw.jsonl",
"raw_sha256": "67b9f9426fd251f16c63c5878b602cc91ced819d0aa29d6de572a78e7d2d5301",
"run_id": "syntax2-42803-pg10",
"server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
"server_version_num": 100021,
"snippet_registry": {
"id": "snippet-registry.42803",
"kind": "local_artifact",
"path": "verify/cases/42803/snippets.json",
"sha256": "90fe9aa4bccfd8dca5c4b5a1a2e9e792a62a73bc1ef49fe99430fea80e58b5df",
"source_role": "snippet_registry"
},
"status": "passed",
"summary": "verify/results/syntax2-42803-pg10/pg10/summary.json",
"summary_sha256": "986f9a1306927403b911f43fc9763d426ab747641908883bd9b6cf33956a6f1f",
"target": "pg10",
"target_stop": {
"cleanup": {
"argv": [
"/usr/local/bin/docker",
"rm",
"-f",
"-v",
"sqlstate42803_syntax242803pg10_pg10"
],
"elapsed_seconds": 0.277,
"returncode": 0,
"stderr": "",
"stdout": "sqlstate42803_syntax242803pg10_pg10\n"
},
"inspect": {
"argv": [
"/usr/local/bin/docker",
"inspect",
"sqlstate42803_syntax242803pg10_pg10"
],
"elapsed_seconds": 0.02,
"returncode": 0,
"stderr": "",
"stdout": "[\n {\n \"Id\": \"2e7ca2753c4946740c949e3cc83073a89239fee7de639fbb84f281559645683d\",\n \"Created\": \"2026-09-09T16:40:11.885674096Z\",\n \"Path\": \"docker-entrypoint.sh\",\n \"Args\": [\n \"postgres\",\n \"-c\",\n \"listen_addresses=*\",\n \"-c\",\n \"log_destination=csvlog\",\n \"-c\",\n \"logging_collector=on\",\n \"-c\",\n \"log_directory=log\",\n \"-c\",\n \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n \"-c\",\n \"log_min_messages=error\",\n \"-c\",\n \"log_min_error_statement=error\",\n \"-c\",\n \"log_error_verbosity=verbose\",\n \"-c\",\n \"wal_level=logical\",\n \"-c\",\n \"max_wal_senders=10\",\n \"-c\",\n \"max_replication_slots=10\"\n ],\n \"State\": {\n \"Status\": \"running\",\n \"Running\": true,\n \"Paused\": false,\n \"Restarting\": false,\n \"OOMKilled\": false,\n \"Dead\": false,\n \"Pid\": 62691,\n \"ExitCode\": 0,\n \"Error\": \"\",\n \"StartedAt\": \"2026-09-09T16:40:11.961642638Z\",\n \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n },\n \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n \"ResolvConfPath\": \"/var/lib/docker/containers/2e7ca2753c4946740c949e3cc83073a89239fee7de639fbb84f281559645683d/resolv.conf\",\n \"HostnamePath\": \"/var/lib/docker/containers/2e7ca2753c4946740c949e3cc83073a89239fee7de639fbb84f281559645683d/hostname\",\n \"HostsPath\": \"/var/lib/docker/containers/2e7ca2753c4946740c949e3cc83073a89239fee7de639fbb84f281559645683d/hosts\",\n \"LogPath\": \"/var/lib/docker/containers/2e7ca2753c4946740c949e3cc83073a89239fee7de639fbb84f281559645683d/2e7ca2753c4946740c949e3cc83073a89239fee7de639fbb84f281559645683d-json.log\",\n \"Name\": \"/sqlstate42803_syntax242803pg10_pg10\",\n \"RestartCount\": 0,\n \"Driver\": \"overlayfs\",\n \"Platform\": \"linux\",\n \"MountLabel\": \"\",\n \"ProcessLabel\": \"\",\n \"AppArmorProfile\": \"\",\n \"ExecIDs\": null,\n \"HostConfig\": {\n \"Binds\": null,\n \"ContainerIDFile\": \"\",\n \"LogConfig\": {\n \"Type\": \"json-file\",\n \"Config\": {}\n },\n \"NetworkMode\": \"bridge\",\n \"PortBindings\": {\n \"5432/tcp\": [\n {\n \"HostIp\": \"127.0.0.1\",\n \"HostPort\": \"\"\n }\n ]\n },\n \"RestartPolicy\": {\n \"Name\": \"no\",\n \"MaximumRetryCount\": 0\n },\n \"AutoRemove\": false,\n \"VolumeDriver\": \"\",\n \"VolumesFrom\": null,\n \"ConsoleSize\": [\n 0,\n 0\n ],\n \"CapAdd\": null,\n \"CapDrop\": null,\n \"CgroupnsMode\": \"private\",\n \"Dns\": null,\n \"DnsOptions\": [],\n \"DnsSearch\": [],\n \"ExtraHosts\": null,\n \"GroupAdd\": null,\n \"IpcMode\": \"private\",\n \"Cgroup\": \"\",\n \"Links\": null,\n \"OomScoreAdj\": 0,\n \"PidMode\": \"\",\n \"Privileged\": false,\n \"PublishAllPorts\": false,\n \"ReadonlyRootfs\": false,\n \"SecurityOpt\": null,\n \"UTSMode\": \"\",\n \"UsernsMode\": \"\",\n \"ShmSize\": 67108864,\n \"Runtime\": \"runc\",\n \"Isolation\": \"\",\n \"CpuShares\": 0,\n \"Memory\": 0,\n \"NanoCpus\": 0,\n \"CgroupParent\": \"\",\n \"BlkioWeight\": 0,\n \"BlkioWeightDevice\": [],\n \"BlkioDeviceReadBps\": [],\n \"BlkioDeviceWriteBps\": [],\n \"BlkioDeviceReadIOps\": [],\n \"BlkioDeviceWriteIOps\": [],\n \"CpuPeriod\": 0,\n \"CpuQuota\": 0,\n \"CpuRealtimePeriod\": 0,\n \"CpuRealtimeRuntime\": 0,\n \"CpusetCpus\": \"\",\n \"CpusetMems\": \"\",\n \"Devices\": [],\n \"DeviceCgroupRules\": null,\n \"DeviceRequests\": null,\n \"MemoryReservation\": 0,\n \"MemorySwap\": 0,\n \"MemorySwappiness\": null,\n \"OomKillDisable\": null,\n \"PidsLimit\": null,\n \"Ulimits\": [],\n \"CpuCount\": 0,\n \"CpuPercent\": 0,\n \"IOMaximumIOps\": 0,\n \"IOMaximumBandwidth\": 0,\n \"MaskedPaths\": [\n \"/proc/acpi\",\n \"/proc/asound\",\n \"/proc/interrupts\",\n \"/proc/kcore\",\n \"/proc/keys\",\n \"/proc/latency_stats\",\n \"/proc/sched_debug\",\n \"/proc/scsi\",\n \"/proc/timer_list\",\n \"/proc/timer_stats\",\n \"/sys/devices/virtual/powercap\",\n \"/sys/firmware\"\n ],\n \"ReadonlyPaths\": [\n \"/proc/bus\",\n \"/proc/fs\",\n \"/proc/irq\",\n \"/proc/sys\",\n \"/proc/sysrq-trigger\"\n ]\n },\n \"Storage\": {\n \"RootFS\": {\n \"Snapshot\": {\n \"Name\": \"overlayfs\"\n }\n }\n },\n \"Mounts\": [\n {\n \"Type\": \"volume\",\n \"Name\": \"86e7d9a024c8320d8ebe1851f2b6deac30d179b626747b0f98e4a84babe7c041\",\n \"Source\": \"/var/lib/docker/volumes/86e7d9a024c8320d8ebe1851f2b6deac30d179b626747b0f98e4a84babe7c041/_data\",\n \"Destination\": \"/var/lib/postgresql/data\",\n \"Driver\": \"local\",\n \"Mode\": \"\",\n \"RW\": true,\n \"Propagation\": \"\"\n }\n ],\n \"Config\": {\n \"Hostname\": \"2e7ca2753c49\",\n \"Domainname\": \"\",\n \"User\": \"\",\n \"AttachStdin\": false,\n \"AttachStdout\": false,\n \"AttachStderr\": false,\n \"ExposedPorts\": {\n \"5432/tcp\": {}\n },\n \"Tty\": false,\n \"OpenStdin\": false,\n \"StdinOnce\": false,\n \"Env\": [\n \"POSTGRES_HOST_AUTH_METHOD=trust\",\n \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n \"GOSU_VERSION=1.14\",\n \"LANG=en_US.utf8\",\n \"PG_MAJOR=10\",\n \"PG_VERSION=10.21-1.pgdg90+1\",\n \"PGDATA=/var/lib/postgresql/data\"\n ],\n \"Cmd\": [\n \"postgres\",\n \"-c\",\n \"listen_addresses=*\",\n \"-c\",\n \"log_destination=csvlog\",\n \"-c\",\n \"logging_collector=on\",\n \"-c\",\n \"log_directory=log\",\n \"-c\",\n \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n \"-c\",\n \"log_min_messages=error\",\n \"-c\",\n \"log_min_error_statement=error\",\n \"-c\",\n \"log_error_verbosity=verbose\",\n \"-c\",\n \"wal_level=logical\",\n \"-c\",\n \"max_wal_senders=10\",\n \"-c\",\n \"max_replication_slots=10\"\n ],\n \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n \"Volumes\": {\n \"/var/lib/postgresql/data\": {}\n },\n \"WorkingDir\": \"\",\n \"Entrypoint\": [\n \"docker-entrypoint.sh\"\n ],\n \"Labels\": {},\n \"StopSignal\": \"SIGINT\",\n \"StopTimeout\": 1\n },\n \"NetworkSettings\": {\n \"SandboxID\": \"c3330f4c643b29dfcff0825c620ae0f96c499fef4421d454f3aa00f536588dc5\",\n \"SandboxKey\": \"/var/run/docker/netns/c3330f4c643b\",\n \"Ports\": {\n \"5432/tcp\": [\n {\n \"HostIp\": \"127.0.0.1\",\n \"HostPort\": \"54119\"\n }\n ]\n },\n \"Networks\": {\n \"bridge\": {\n \"IPAMConfig\": null,\n \"Links\": null,\n \"Aliases\": null,\n \"DriverOpts\": null,\n \"GwPriority\": 0,\n \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n \"EndpointID\": \"941ead733488a9fb8ca31ba38104063a88a07f3de48f2aecc230ccfe33851ddc\",\n \"Gateway\": \"172.17.0.1\",\n \"IPAddress\": \"172.17.0.53\",\n \"MacAddress\": \"3e:fa:97:94:30:46\",\n \"IPPrefixLen\": 16,\n \"IPv6Gateway\": \"\",\n \"GlobalIPv6Address\": \"\",\n \"GlobalIPv6PrefixLen\": 0,\n \"DNSNames\": null\n }\n }\n },\n \"ImageManifestDescriptor\": {\n \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n \"size\": 3246,\n \"platform\": {\n \"architecture\": \"arm64\",\n \"os\": \"linux\",\n \"variant\": \"v8\"\n }\n }\n }\n]\n"
}
}
},
"run_id": "syntax2-42803-pg10",
"runtime_id": "runtime.syntax2-42803-pg10.pg10",
"server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
"status": "passed",
"target": "pg10"
}sources · src.errcodes.REL_18_6
{
"commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
"docs_url": "",
"kind": "upstream_source",
"location": "",
"path": "src/backend/utils/errcodes.txt",
"position": 0,
"sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
"source_id": "src.errcodes.REL_18_6",
"tag": "REL_18_6",
"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt"
}sources · src.calls.REL_18_6
{
"commit": "",
"docs_url": "",
"kind": "local_artifact",
"location": "",
"path": "raw/calls/REL_18_6.jsonl",
"position": 1,
"sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf",
"source_id": "src.calls.REL_18_6",
"tag": "",
"url": ""
}sources · src.calls.REL_10_23
{
"commit": "",
"docs_url": "",
"kind": "local_artifact",
"location": "",
"path": "raw/calls/REL_10_23.jsonl",
"position": 2,
"sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c",
"source_id": "src.calls.REL_10_23",
"tag": "",
"url": ""
}sources · src.grouping-error.18.6
{
"commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
"docs_url": "",
"kind": "upstream_source",
"location": "",
"path": "src/backend/parser/parse_agg.c",
"position": 3,
"sha256": "6e80a805fddbfc9c7e0f3047b348bf992a20c99f16ce7fee89c7067753027f72",
"source_id": "src.grouping-error.18.6",
"tag": "REL_18_6",
"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_agg.c#L1552-L1558"
}sources · src.grouping-error.10.23
{
"commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
"docs_url": "",
"kind": "upstream_source",
"location": "",
"path": "src/backend/parser/parse_agg.c",
"position": 4,
"sha256": "4c7e12bba2ffd465eb55d22c2adc593afa97e5a5f9a93045a882afab1401cb28",
"source_id": "src.grouping-error.10.23",
"tag": "REL_10_23",
"url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/parser/parse_agg.c#L1356-L1362"
}sources · src.grouping-functional-dependency.18.6
{
"commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
"docs_url": "",
"kind": "upstream_source",
"location": "",
"path": "src/backend/catalog/pg_constraint.c",
"position": 5,
"sha256": "0aa324acd355da955f8eb6cec17f1a0138277a8bebd2c6e999cd2a603d3bfa01",
"source_id": "src.grouping-functional-dependency.18.6",
"tag": "REL_18_6",
"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/pg_constraint.c#L1728-L1778"
}sources · src.grouping-functional-dependency.10.23
{
"commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
"docs_url": "",
"kind": "upstream_source",
"location": "",
"path": "src/backend/catalog/pg_constraint.c",
"position": 6,
"sha256": "c90dff2d1d863e6b43102d762cec6e08b6c4ba40458045b525a14b49865d8a65",
"source_id": "src.grouping-functional-dependency.10.23",
"tag": "REL_10_23",
"url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/catalog/pg_constraint.c#L1057-L1107"
}sources · manifest.42803
{
"commit": "",
"docs_url": "",
"kind": "local_artifact",
"location": "",
"path": "verify/cases/42803/cases.json",
"position": 7,
"sha256": "e34cb132807bb039dc5464b64812e72d2062480867206ca9cdb2fee25c7accc0",
"source_id": "manifest.42803",
"tag": "",
"url": ""
}sources · snippet-registry.42803
{
"commit": "",
"docs_url": "",
"kind": "local_artifact",
"location": "",
"path": "verify/cases/42803/snippets.json",
"position": 8,
"sha256": "90fe9aa4bccfd8dca5c4b5a1a2e9e792a62a73bc1ef49fe99430fea80e58b5df",
"source_id": "snippet-registry.42803",
"tag": "",
"url": ""
}Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · english-manuals:bf22cb6c3a33d5343d2a860489c34bb7cc2495ae0708d57e6c5acf14866ea612
Text language: en · english-manuals:bf22cb6c3a33d5343d2a860489c34bb7cc2495ae0708d57e6c5acf14866ea612