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: PgQ and PgQue: Workflow Engines you might need in PostgreSQL
Article title: PgQ and PgQue: Workflow Engines you might need in PostgreSQL
Article URL: https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql
Report URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530
Audited revision: 4 of 4, 2026-11-03 02:10:20 UTC
Overall letter: A-
## Axes
- Factual: B+ · 1 wrong · 15 checked · 0 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- · 1 wrong · 4 checked · 0 caveats · partly assessed
- Safe: A- · 1 wrong · 1 checked · 0 caveats · partly assessed
ElephantSeal: A-.
Open conditions: central claim not checked.
## Report metadata
- Report: Technical fact-check, edition 2
- pgTrue version: audited with v1.1.5
- Issued: 2026-11-03
- Edition: Updated after review. Corrections are listed below.
- Submitted: Submitted by the PostgresAI team.
- Interest: The software discussed is developed by PostgresAI or a member of its team.
- Author response: No written reply from the author. The article changed 2 times after our first audit; we re-audited each version. See Revisions below. Policy: [right-of-reply and corrections policy](/pgtrue/security).
## Findings needing a change (3)
### F3 · Inaccurate · Factual · PgQue 0.2.0 does not ship a Ruby client
Location: excerpt · section “How to use PgQue in applications” · as fetched 2026-11-03 · [open in article](https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql#:~:text=client%20libraries%20exist%20for%20Python%2C%20Go%2C%20TypeScript%2C%20and%20Ruby)
Article says:
```text
…client libraries exist for Python, Go, TypeScript, and Ruby…
```
What is true:
PgQue 0.2.0 ships Python, Go, and TypeScript clients. README.md:517 lists Ruby without a completion marker. The client parity matrix includes only the three implemented languages.
So what:
For Ruby, use the SQL API or implement a wrapper. Do not plan integration around a shipped Ruby SDK.
Charitable reading:
The design specification discusses Ruby. The release roadmap and client tree distinguish planned support from implemented clients.
Review: We checked whether the Ruby reference described planned support. The roadmap leaves Ruby incomplete. The client documentation identifies three shipped clients. We checked whether Ruby support existed outside the parity matrix. The client tree contains three implementations. Ruby remains an unchecked roadmap entry.
Sources:
- [[email protected] · clients/README.md:1-5](https://github.com/NikolayS/pgque/blob/dff3a906276068ad2433312bbc7c95a577deff53/clients/README.md#L1-L5)
Qualification: Version note: The v0.2.0 client README also specifies three clients.
Excerpt:
```text
PgQue ships three first-party clients. They are thin wrappers over `pgque.*`
```
- [[email protected] · clients/README.md:76-78](https://github.com/NikolayS/pgque/blob/dff3a906276068ad2433312bbc7c95a577deff53/clients/README.md#L76-L78)
Excerpt:
```text
| Capability | Python | Go | TypeScript |
```
- [[email protected] · README.md:512-517](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/README.md#L512-L517)
Excerpt:
```text
| Go library | ✅ |
| TypeScript library | ✅ |
| Python library | ✅ |
| Rust library | |
| Java library | |
| Ruby library | |
```
- [[email protected] · clients/README.md:77-79](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/clients/README.md#L77-L79)
Excerpt:
```text
| Capability | Python | Go | TypeScript |
| --- | :---: | :---: | :---: |
| `connect` / `close` | ✓ | ✓ | ✓ |
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530#F3
### F2 · Recipe Error · Safe · The observability installation command names the wrong directory
Location: excerpt · section “What is new in PgQue” · as fetched 2026-11-03 · [open in article](https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql#:~:text=%5Ci%20devel%2Fsql%2Fexperimental%2Fobservability.sql)
Article says:
```text
…\i devel/sql/experimental/observability.sql…
```
What is true:
PgQue 0.2.0 places observability.sql under sql/experimental/. docs/reference.md:611 gives the matching installation path. The article's extra devel/ directory makes psql fail to open the file.
So what:
From the PgQue repository root, load sql/experimental/observability.sql with psql's include command.
Charitable reading:
A custom checkout could add a devel directory. The release instructions run psql from the repository root.
Review: We tested the alternative working-directory interpretation against the release instructions. Those instructions use the repository root. The extra devel/ component fails there. We tested the directory assumption against the release tree. It contains sql/experimental/observability.sql and no devel directory. The consequence remains fails-loudly.
Sources:
- [[email protected] · docs/reference.md:611-611](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/docs/reference.md#L611-L611)
Excerpt:
```text
These objects are not part of `sql/pgque.sql`. Load them explicitly with `\i sql/experimental/<file>.sql`. **API and stability are not guaranteed** — signatures, semantics, and grants may change before promotion into the default install.
```
- [[email protected] · docs/reference.md:632-646](https://github.com/NikolayS/pgque/blob/dff3a906276068ad2433312bbc7c95a577deff53/docs/reference.md#L632-L646)
Qualification: Version note: The v0.2.0 reference lists the same installation path.
Excerpt:
```text
### `sql/experimental/observability.sql`
```
- [[email protected] · sql/experimental/observability.sql:1-12](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/experimental/observability.sql#L1-L12)
Excerpt:
```text
-- pgque-api/observability.sql -- Observability functions
-- Copyright 2026 Nikolay Samokhvalov. Apache-2.0 license.
--
-- Implements SPECx.md sections 5.1 and 5.2:
-- pgque.queue_stats() -- real-time queue health
-- pgque.consumer_stats() -- per-consumer metrics
-- pgque.queue_health() -- operational diagnostics
-- pgque.otel_metrics() -- OTel-compatible metric export
-- pgque.stuck_consumers() -- consumers that haven't processed
-- pgque.in_flight() -- messages currently being processed
-- pgque.throughput() -- throughput over time (bucketed)
-- pgque.error_rate() -- error rate over time (bucketed)
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530#F2
### F1 · Recipe Error · Factual · PgQue 0.2.0 has no send_idem() or maint_idem()
Location: excerpt · section “What is new in PgQue” · as fetched 2026-11-03 · [open in article](https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql#:~:text=using%20send_idem%28%29%20and%20maint_idem%28%29)
Article says:
```text
…using send_idem() and maint_idem()…
```
What is true:
We found no send_idem() or maint_idem() definitions in PgQue 0.2.0 or 0.2.2. send() delegates to insert_event() without a producer key. The installed SQL does not implement the advertised producer-key deduplication.
So what:
Implement producer deduplication in application SQL. Do not call send_idem() or maint_idem().
Charitable reading:
We checked both named releases and the complete SQL trees. DLQ deduplication protects repeated terminal nacks, not producer retries.
Review: We searched both release SQL trees for the advertised APIs. Neither contains them. The ordinary send path provides no producer-key deduplication. We searched both release SQL trees for the named functions. Neither defines them. Ordinary send() inserts without producer-key deduplication.
Sources:
- [[email protected] · sql/pgque-api/send.sql:104-110](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque-api/send.sql#L104-L110)
Excerpt:
```text
-- pgque.send(queue, payload jsonb) -- send with default type, JSON payload
create or replace function pgque.send(queue_name text, payload jsonb)
returns bigint as $$
begin
return pgque.insert_event(queue_name, 'default', payload::text);
end;
$$ language plpgsql security definer set search_path = pgque, pg_catalog;
```
- [[email protected] · sql/pgque.sql:2879-2892](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque.sql#L2879-L2892)
Excerpt:
```text
_qname := queue_name;
select q.queue_id,
pgque.quote_fqname(q.queue_data_pfx || '_' || q.queue_cur_table::text) as cur_table_name,
nextval(q.queue_event_seq) as next_ev_id,
q.queue_disable_insert
from pgque.queue q where q.queue_name = _qname into qstate;
if not found then
raise exception 'queue not found: %', _qname;
end if;
if ev_id is null then
ev_id := qstate.next_ev_id;
end if;
```
- [[email protected] · sql/pgque.sql:2900-2905](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque.sql#L2900-L2905)
Excerpt:
```text
execute 'insert into ' || qstate.cur_table_name
|| ' (ev_id, ev_time, ev_owner, ev_retry,'
|| ' ev_type, ev_data, ev_extra1, ev_extra2, ev_extra3, ev_extra4)'
|| 'values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)'
using ev_id, ev_time, ev_owner, ev_retry,
ev_type, ev_data, ev_extra1, ev_extra2, ev_extra3, ev_extra4;
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530#F1
## Verified accurate claims (12)
### F4 · Accurate · Factual · The overflow update correctly distinguishes PgQue 0.2.0 from 0.2.1
Location: excerpt · section “Update ( 31-Oct-2026)” · as fetched 2026-11-03 · [open in article](https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql#:~:text=PgQue%200.2.1%20fixed%20the%20data%20loss.)
Article says:
```text
PgQue 0.2.1 fixed the data loss.
```
What is true:
PgQue 0.2.0 stops returning rows at max_return without detecting overflow. Version 0.2.1 raises SQLSTATE 54000 before returning an incomplete batch. Version 0.2.2 retains that SQL behavior. TypeScript, Go, and Python consumers propagate the dedicated overflow error before dispatch or acknowledgement.
Charitable reading:
We read the updated instructions as targeting PgQue 0.2.2. We did not judge those instructions against 0.2.0.
Review: We checked for version conflation and overflow detection after delivery. Version 0.2.1 raises on overflow. Version 0.2.2 retains that check. We checked the overflow boundary and release distinction. Version 0.2.1 raises before returning an incomplete result. Version 0.2.2 preserves that SQL.
Sources:
- [[email protected] · sql/pgque-api/receive.sql:58-60](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque-api/receive.sql#L58-L60)
Excerpt:
```text
cnt := cnt + 1;
exit when cnt >= i_max_return;
end loop;
```
- [[email protected] · sql/pgque-api/receive.sql:53-58](https://github.com/NikolayS/pgque/blob/32bfbe2119c8fcadf6d49efe886435fdde12500d/sql/pgque-api/receive.sql#L53-L58)
Excerpt:
```text
if cnt = i_max_return then
raise exception 'pgque.receive: batch exceeds max_return of %', i_max_return
using
errcode = '54000',
hint = 'Retry with a larger resource-safe max_return to receive the complete batch. Do not acknowledge after this error.';
end if;
```
- [[email protected] · clients/typescript/src/consumer.ts:92-97](https://github.com/NikolayS/pgque/blob/dff3a906276068ad2433312bbc7c95a577deff53/clients/typescript/src/consumer.ts#L92-L97)
Excerpt:
```text
} catch (err) {
if (err instanceof PgqueReceiveOverflowError) throw err;
this.logger.error(`pgque: receive error: ${formatErr(err)}`);
await sleep(this.pollIntervalMs, signal);
continue;
}
```
- [[email protected] · clients/go/consumer.go:131-141](https://github.com/NikolayS/pgque/blob/dff3a906276068ad2433312bbc7c95a577deff53/clients/go/consumer.go#L131-L141)
Excerpt:
```text
if err != nil {
if errors.Is(err, ErrReceiveOverflow) {
return err
}
log.Printf("pgque: receive error: %v", err)
select {
case <-ctx.Done():
return ctx.Err()
case <-time.After(c.pollInterval):
}
continue
```
- [[email protected] · clients/python/pgque/consumer.py:248-265](https://github.com/NikolayS/pgque/blob/dff3a906276068ad2433312bbc7c95a577deff53/clients/python/pgque/consumer.py#L248-L265)
Excerpt:
```text
# Use a transaction block for receive + ack
with conn.transaction():
client = PgqueClient(conn)
if self.subconsumer is not None:
msgs = client.receive_coop(
self.queue,
self.name,
self.subconsumer,
max_messages=self.max_messages,
dead_interval=self.dead_interval,
)
else:
msgs = client.receive(
self.queue, self.name, self.max_messages
)
if not msgs:
return
```
- [[email protected] · sql/pgque-api/receive.sql:53-56](https://github.com/NikolayS/pgque/blob/32bfbe2119c8fcadf6d49efe886435fdde12500d/sql/pgque-api/receive.sql#L53-L56)
Qualification: Version note: The v0.2.2 receive.sql blob matches v0.2.1.
Excerpt:
```text
if cnt = i_max_return then
raise exception 'pgque.receive: batch exceeds max_return of %', i_max_return
using
errcode = '54000',
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530#F4
### F5 · Accurate · Factual · Verified accurate: “…acknowledgement is per batch, not per message…”
Location: excerpt · section “Why this implementation is different” · as fetched 2026-11-03 · [open in article](https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql#:~:text=acknowledgement%20is%20per%20batch%2C%20not%20per%20message)
Article says:
```text
…acknowledgement is per batch, not per message…
```
What is true:
ack() calls finish_batch(). A normal subscription advances sub_last_tick to sub_next_tick. receive() finishes an empty batch itself. nack() routes a failed event to retry or DLQ before the batch closes.
Review: We inspected the cooperative-consumer exception. The finding limits cursor advancement to normal subscriptions. ack() passes the whole batch identifier to finish_batch(). We checked whether cooperative handling invalidated the cursor statement. The cited update belongs to the normal-consumer branch. Empty-batch completion and private retries match.
Sources:
- [[email protected] · sql/pgque-api/cooperative_consumers.sql:442-450](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque-api/cooperative_consumers.sql#L442-L450)
Excerpt:
```text
update pgque.subscription
set
sub_active = now(),
sub_last_tick = sub_next_tick,
sub_next_tick = null,
sub_batch = null
where
sub_queue = v_sub.sub_queue
and sub_consumer = v_sub.sub_consumer;
```
- [[email protected] · sql/pgque-api/receive.sql:67-70](https://github.com/NikolayS/pgque/blob/dff3a906276068ad2433312bbc7c95a577deff53/sql/pgque-api/receive.sql#L67-L70)
Excerpt:
```text
-- Empty batch: finish immediately to advance the consumer cursor.
if cnt = 0 then
perform pgque.finish_batch(v_batch_id);
end if;
```
- [[email protected] · sql/pgque-api/receive.sql:127-136](https://github.com/NikolayS/pgque/blob/dff3a906276068ad2433312bbc7c95a577deff53/sql/pgque-api/receive.sql#L127-L136)
Excerpt:
```text
if coalesce(v_ev.ev_retry, 0) >= v_max_retries then
-- Move to dead letter queue using canonical event data (#98).
-- event_dead() uses ON CONFLICT DO NOTHING for idempotency (#104).
-- ev_txid is bigint in get_batch_events (legacy PgQ signature); text
-- round-trip is the codebase convention to widen to xid8 without loss.
perform pgque.event_dead(i_batch_id, v_ev.ev_id,
coalesce(i_reason, 'max retries exceeded'),
v_ev.ev_time, v_ev.ev_txid::text::xid8, v_ev.ev_retry,
v_ev.ev_type, v_ev.ev_data,
v_ev.ev_extra1, v_ev.ev_extra2, v_ev.ev_extra3, v_ev.ev_extra4);
```
- [[email protected] · sql/pgque.sql:859-865](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque.sql#L859-L865)
Excerpt:
```text
perform pgque.insert_event_raw(rec.queue_name,
rec.ev_id, rec.ev_time, rec.ev_owner, rec.ev_retry,
rec.ev_type, rec.ev_data, rec.ev_extra1, rec.ev_extra2,
rec.ev_extra3, rec.ev_extra4);
delete from pgque.retry_queue
where ev_owner = rec.ev_owner
and ev_id = rec.ev_id;
```
- [[email protected] · sql/pgque.sql:402-403](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque.sql#L402-L403)
Excerpt:
```text
retry_expr := ' and (ev_owner is null or ev_owner = '
|| batch.sub_id::text || ')';
```
- [[email protected] · sql/pgque-api/receive.sql:72-76](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque-api/receive.sql#L72-L76)
Excerpt:
```text
create or replace function pgque.ack(i_batch_id bigint)
returns integer as $$
begin
return pgque.finish_batch(i_batch_id);
end;
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530#F5
### F6 · Accurate · Factual · The ticker sends pg_notify after inserting a tick
Location: excerpt · section “What is new in PgQue” · as fetched 2026-11-03 · [open in article](https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql#:~:text=The%20ticker%20emits%20pg_notify%28%E2%80%98pgque_%3Cqueue%3E%E2%80%99%2C%20tick_id%29%20after%20producing%20a%20tick)
Article says:
```text
…The ticker emits pg_notify(‘pgque_<queue>’, tick_id) after producing a tick…
```
What is true:
The ticker inserts a tick and sends its ID on pgque_\<queue\>. ticker_loop() commits each iteration. Its default cadence is 100 milliseconds. Actual tick creation also checks 500 events, 3 seconds of lag, and the idle period.
Charitable reading:
The article separately describes throttling. Its cadence describes ticker invocations, not an unconditional tick every 100 milliseconds.
Review: We checked whether 100 milliseconds incorrectly promised unconditional tick creation. The finding separates invocation cadence from tick thresholds and transaction commits. We checked whether 100-millisecond invocation implies unconditional tick creation. The finding preserves throttling. The ticker calls pg_notify after inserting a tick.
Sources:
- [[email protected] · sql/pgque.sql:788-794](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque.sql#L788-L794)
Excerpt:
```text
insert into pgque.tick (tick_queue, tick_id, tick_event_seq)
values (q.queue_id, nextval(q.queue_tick_seq), q.event_seq);
-- pgque: notify listeners after tick
perform pg_notify('pgque_' || i_queue_name, currval(q.queue_tick_seq)::text); -- PgQue transformation: LISTEN/NOTIFY wakeup (not in original PgQ)
return currval(q.queue_tick_seq);
```
- [[email protected] · sql/pgque-additions/lifecycle.sql:55-70](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque-additions/lifecycle.sql#L55-L70)
Excerpt:
```text
v_iter_budget := greatest(1, v_window_ms / v_period_ms);
for i in 1 .. v_iter_budget loop
perform pgque.ticker();
commit;
if i = v_iter_budget then
exit;
end if;
v_elapsed_ms := extract(epoch from (clock_timestamp() - v_started_at)) * 1000.0;
if v_elapsed_ms + v_period_ms >= v_window_ms then
exit;
end if;
perform pg_sleep(v_period_ms / 1000.0);
```
- [[email protected] · sql/pgque.sql:110-112](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque.sql#L110-L112)
Excerpt:
```text
queue_ticker_max_count integer not null default 500,
queue_ticker_max_lag interval not null default '3 seconds',
queue_ticker_idle_period interval not null default '1 minute',
```
- [[email protected] · sql/pgque.sql:758-764](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque.sql#L758-L764)
Excerpt:
```text
if state.new_events > 0 then
-- there are new events, should we wait a bit?
if state.new_events < q.queue_ticker_max_count
and state.lag < q.queue_ticker_max_lag
then
return NULL;
end if;
```
- [REL_18_6 · doc/src/sgml/ref/notify.sgml:186-191](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/notify.sgml#L186-L191)
Excerpt:
```text
To send a notification you can also use the function
<literal><function>pg_notify</function>(<type>text</type>,
<type>text</type>)</literal>. The function takes the channel name as the
first argument and the payload as the second. The function is much easier
to use than the <command>NOTIFY</command> command if you need to work with
non-constant channel names and payloads.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530#F6
### F7 · Accurate · Factual · Rotation waits for consumers and preserves a two-hour default rewind window
Location: excerpt · section “Why this implementation is different” · as fetched 2026-11-03 · [open in article](https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql#:~:text=The%20guaranteed%20rewind%20window%20is,period%202%20hours%20by%20default)
Article says:
```text
The guaranteed rewind window is one rotation period 2 hours by default…
```
What is true:
The default rotation period is 2 hours. Rotation checks the oldest subscription's snapshot before truncating a table. The code retains tick history for at least one rotation period. A stalled consumer can prevent reclamation.
Charitable reading:
The guarantee covers retained queue history. It does not promise fixed disk usage when consumers stall.
Review: We checked whether the two-hour window implied bounded storage. The finding preserves the stalled-consumer exception. Rotation checks support that qualification. We checked whether rotation ignores stalled subscriptions or promises fixed disk usage. The snapshot guard can prevent truncation. The default period is two hours.
Sources:
- [[email protected] · sql/pgque.sql:99-101](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque.sql#L99-L101)
Excerpt:
```text
queue_ntables integer not null default 3,
queue_cur_table integer not null default 0,
queue_rotation_period interval not null default '2 hours',
```
- [[email protected] · sql/pgque.sql:917-926](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque.sql#L917-L926)
Excerpt:
```text
select pg_snapshot_xmin(tick_snapshot)::text::bigint into lowest_xmin
from pgque.tick
where tick_queue = cf.queue_id
and tick_id = lowest_tick_id;
if not found then
raise exception 'queue % maint failure: tick % not found', i_queue_name, lowest_tick_id;
end if;
if lowest_xmin <= cf.queue_switch_step2 then
return 0; -- skip rotation then
end if;
```
- [[email protected] · sql/pgque.sql:940-946](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque.sql#L940-L946)
Excerpt:
```text
begin
execute 'lock table ' || pgque.quote_fqname(tbl) || ' nowait';
execute 'truncate ' || pgque.quote_fqname(tbl);
exception
when lock_not_available then
-- cannot truncate, skipping rotate
return 0;
```
- [[email protected] · sql/pgque.sql:962-967](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque.sql#L962-L967)
Excerpt:
```text
-- 2. that way we guarantee to consumers that they an be moved
-- back on the queue at least for one rotation_period.
-- (may help in disaster recovery)
delete from pgque.tick
where tick_queue = cf.queue_id
and pg_snapshot_xmin(tick_snapshot)::text::bigint < cf.queue_switch_step2;
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530#F7
### F8 · Accurate · Factual · The consumer loop places COMMIT outside its exception block
Location: Article · exact quote · [open in article](https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql#:~:text=Run%20it%20at%20the%20top,with%20autocommit%20on%20%28the%20default%29.)
Article says:
```text
…Run it at the top level in psql with autocommit on (the default).
```
What is true:
PostgreSQL 18.6 permits transaction control in top-level DO blocks. It forbids transaction termination inside an exception subtransaction. The example closes its exception block before COMMIT. The array aggregation collects complete results before acknowledgement.
Charitable reading:
We checked the first formatted SQL block. The later copy contains extraction artifacts and repeats the same example.
Review: We checked the exception-block boundary and explicit-transaction restriction. COMMIT follows the inner block. This verifies transaction placement, not the complete recipe. We checked block nesting and PostgreSQL 18.6 transaction rules. COMMIT follows the inner exception block. This finding does not certify complete recipe execution.
Sources:
- [REL_18_6 · doc/src/sgml/plpgsql.sgml:3754-3757](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/plpgsql.sgml#L3754-L3757)
Excerpt:
```text
Transaction control is only possible in <command>CALL</command> or
<command>DO</command> invocations from the top level or nested
<command>CALL</command> or <command>DO</command> invocations without any
other intervening command. For example, if the call stack is
```
- [REL_18_6 · doc/src/sgml/plpgsql.sgml:3771-3775](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/plpgsql.sgml#L3771-L3775)
Excerpt:
```text
Typical usage patterns for savepoints can be replaced by blocks with
exception handlers (see <xref linkend="plpgsql-error-trapping"/>).
Under the hood, a block with exception handlers forms a
subtransaction, which means that transactions cannot be ended inside
such a block.
```
- [REL_18_6 · src/backend/executor/spi.c:238-241](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/spi.c#L238-L241)
Excerpt:
```text
if (_SPI_current->atomic)
ereport(ERROR,
(errcode(ERRCODE_INVALID_TRANSACTION_TERMINATION),
errmsg("invalid transaction termination")));
```
- [REL_18_6 · doc/src/sgml/func.sgml:22062-22062](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/func.sgml#L22062-L22062)
Excerpt:
```text
Collects all the input values, including nulls, into an array.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530#F8
### F9 · Accurate · Factual · PgQue separates producer, consumer, and administrative roles
Location: excerpt · section “What is new in PgQue” · as fetched 2026-11-03 · [open in article](https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql#:~:text=distinct%20security%20roles%20for%20producers,consumers%20via%20pgque_writer%20and%20pgque_reader)
Article says:
```text
…distinct security roles for producers and consumers via pgque_writer and pgque_reader…
```
What is true:
roles.sql creates pgque_writer, pgque_reader, and pgque_admin. The administrative role inherits both application roles. Producer and consumer roles remain separate. Applications that produce and consume need both memberships.
Charitable reading:
Role separation does not imply isolation between different consumers sharing pgque_reader.
Review: We checked whether administrative inheritance erased producer-consumer separation. Only pgque_admin receives both memberships. The finding claims no isolation between consumers. We checked whether administrative inheritance merges producer and consumer roles. It grants both roles to the administrator. The application roles remain distinct.
Sources:
- [[email protected] · sql/pgque-additions/roles.sql:7-15](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque-additions/roles.sql#L7-L15)
Excerpt:
```text
if not exists (select from pg_roles where rolname = 'pgque_reader') then
create role pgque_reader;
end if;
if not exists (select from pg_roles where rolname = 'pgque_writer') then
create role pgque_writer;
end if;
if not exists (select from pg_roles where rolname = 'pgque_admin') then
create role pgque_admin;
end if;
```
- [[email protected] · sql/pgque-additions/roles.sql:45-50](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque-additions/roles.sql#L45-L50)
Excerpt:
```text
if not pg_has_role('pgque_admin', 'pgque_reader', 'member') then
grant pgque_reader to pgque_admin;
end if;
if not pg_has_role('pgque_admin', 'pgque_writer', 'member') then
grant pgque_writer to pgque_admin;
end if;
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530#F9
### F10 · Accurate · Factual · Delayed delivery exists as an optional SQL installation
Location: excerpt · section “What is new in PgQue” · as fetched 2026-11-03 · [open in article](https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql#:~:text=Schedule%20events%20for%20future%20execution%2C,into%20the%20queue%20when%20due)
Article says:
```text
…Schedule events for future execution, promoted into the queue when due…
```
What is true:
sql/experimental/delayed.sql defines send_at() and maint_deliver_delayed(). Future events enter delayed_events. Maintenance removes due entries and inserts them into their destination queues. These objects require a separate installation.
Charitable reading:
The feature list describes available functionality. It does not explicitly say delayed delivery ships in the default installation.
Review: We checked whether optional installation contradicted feature availability. The SQL implements delayed delivery. The finding explicitly states the separate installation requirement. We checked whether delayed delivery belongs to the default installation. The finding correctly identifies separate installation. Maintenance transfers due entries into destination queues.
Sources:
- [[email protected] · sql/experimental/delayed.sql:29-40](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/experimental/delayed.sql#L29-L40)
Excerpt:
```text
create or replace function pgque.send_at(
i_queue text, i_type text, i_payload jsonb, i_deliver_at timestamptz)
returns bigint as $$
begin
if i_deliver_at <= now() then
-- Deliver immediately; returns queue event ID
return pgque.insert_event(i_queue, i_type, i_payload::text);
end if;
insert into pgque.delayed_events
(de_queue_name, de_deliver_at, de_type, de_data)
values (i_queue, i_deliver_at, i_type, i_payload::text);
```
- [[email protected] · sql/experimental/delayed.sql:58-65](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/experimental/delayed.sql#L58-L65)
Excerpt:
```text
for ev in
delete from pgque.delayed_events
where de_deliver_at <= now()
returning *
loop
perform pgque.insert_event(ev.de_queue_name, ev.de_type, ev.de_data,
ev.de_extra1, ev.de_extra2, ev.de_extra3, ev.de_extra4);
cnt := cnt + 1;
```
- [[email protected] · docs/reference.md:609-611](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/docs/reference.md#L609-L611)
Excerpt:
```text
## Experimental (not in default install)
These objects are not part of `sql/pgque.sql`. Load them explicitly with `\i sql/experimental/<file>.sql`. **API and stability are not guaranteed** — signatures, semantics, and grants may change before promotion into the default install.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530#F10
### F12 · Accurate · Factual · Verified accurate: “…returned only the first max_return events, with no error or warning.”
Location: excerpt · section “Update ( 31-Oct-2026)” · as fetched 2026-11-03 · [open in article](https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql#:~:text=returned%20only%20the%20first%20max_return,with%20no%20error%20or%20warning.)
Article says:
```text
…returned only the first max_return events, with no error or warning.
```
What is true:
PgQue v0.2.0 stops returning events at max_return without raising overflow. sql/pgque-api/receive.sql:59 contains the exit condition. ack passes the batch identifier to finish_batch at line 75. The correction accurately identifies the unsafe combination.
Review: We checked whether ack() verifies the returned event count. It accepts only the batch identifier. Version 0.2.0 stops returning events without overflow detection. We checked the historical 0.2.0 implementation rather than the recommended release. receive() exits at the ceiling. ack() accepts the batch identifier without completeness checks.
Sources:
- [[email protected] · sql/pgque-api/receive.sql:58-60](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque-api/receive.sql#L58-L60)
Excerpt:
```text
cnt := cnt + 1;
exit when cnt >= i_max_return;
end loop;
```
- [[email protected] · sql/pgque-api/receive.sql:72-76](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque-api/receive.sql#L72-L76)
Excerpt:
```text
create or replace function pgque.ack(i_batch_id bigint)
returns integer as $$
begin
return pgque.finish_batch(i_batch_id);
end;
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530#F12
### F13 · Accurate · Factual · Verified accurate: “High-level consumers stop at once on this error.”
Location: excerpt · section “Update ( 31-Oct-2026)” · as fetched 2026-11-03 · [open in article](https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql#:~:text=High%2Dlevel%20consumers%20stop%20at%20once%20on%20this%20error.)
Article says:
```text
High-level consumers stop at once on this error.
```
What is true:
Version 0.2.2 makes overflow terminal in the high-level clients. Go returns at clients/go/consumer.go:133. TypeScript throws at clients/typescript/src/consumer.ts:93. Python documents propagation before handlers, acknowledgment, or negative acknowledgment at clients/python/pgque/consumer.py:129.
Review: We checked whether outer Python handling swallowed overflow. Its loop propagates the exception. Go returns it, and TypeScript throws it. We checked whether overflow enters the generic retry branches. Go returns and TypeScript throws first. Python propagates overflow before handlers and acknowledgement.
Sources:
- [[email protected] · clients/go/consumer.go:131-134](https://github.com/NikolayS/pgque/blob/dff3a906276068ad2433312bbc7c95a577deff53/clients/go/consumer.go#L131-L134)
Excerpt:
```text
if err != nil {
if errors.Is(err, ErrReceiveOverflow) {
return err
}
```
- [[email protected] · clients/typescript/src/consumer.ts:92-93](https://github.com/NikolayS/pgque/blob/dff3a906276068ad2433312bbc7c95a577deff53/clients/typescript/src/consumer.ts#L92-L93)
Excerpt:
```text
} catch (err) {
if (err instanceof PgqueReceiveOverflowError) throw err;
```
- [[email protected] · clients/python/pgque/consumer.py:129-131](https://github.com/NikolayS/pgque/blob/dff3a906276068ad2433312bbc7c95a577deff53/clients/python/pgque/consumer.py#L129-L131)
Excerpt:
```text
PgqueReceiveOverflowError: The complete batch exceeds
``max_messages``. This propagates before any handler, ack, or
nack; restart with a resource-safe larger ceiling.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530#F13
### F14 · Accurate · Factual · Verified accurate: “…they treated the error as temporary and retried forever…”
Location: excerpt · section “Update ( 31-Oct-2026)” · as fetched 2026-11-03 · [open in article](https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql#:~:text=they%20treated%20the%20error%20as%20temporary%20and%20retried%20forever)
Article says:
```text
…they treated the error as temporary and retried forever…
```
What is true:
Version 0.2.1 handles receive errors by logging, sleeping, and continuing. Go implements this at clients/go/consumer.go:129-137. TypeScript implements it at clients/typescript/src/consumer.ts:89-93. Neither branch distinguishes batch overflow from temporary errors.
Review: We checked cancellation and logging as counterexamples to endless retry. The finding acknowledges logging and external cancellation. Neither branch distinguishes overflow. We checked cancellation and error logging as counterexamples to “forever.” The finding already acknowledges cancellation. Both 0.2.1 branches retry without distinguishing overflow.
Sources:
- [[email protected] · clients/go/consumer.go:129-137](https://github.com/NikolayS/pgque/blob/32bfbe2119c8fcadf6d49efe886435fdde12500d/clients/go/consumer.go#L129-L137)
Excerpt:
```text
if err != nil {
log.Printf("pgque: receive error: %v", err)
select {
case <-ctx.Done():
return ctx.Err()
case <-time.After(c.pollInterval):
}
continue
}
```
- [[email protected] · clients/typescript/src/consumer.ts:89-93](https://github.com/NikolayS/pgque/blob/32bfbe2119c8fcadf6d49efe886435fdde12500d/clients/typescript/src/consumer.ts#L89-L93)
Excerpt:
```text
} catch (err) {
this.logger.error(`pgque: receive error: ${formatErr(err)}`);
await sleep(this.pollIntervalMs, signal);
continue;
}
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530#F14
### F15 · Accurate · Factual · Verified accurate: “PgQue does not require any binary extensions…”
Location: Article · exact quote · [open in article](https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql#:~:text=PgQue%20does%20not%20require%20any%20binary%20extensions)
Article says:
```text
PgQue does not require any binary extensions…
```
What is true:
PgQue documents a SQL and PL/pgSQL installation without C extensions in README.md:47. Its external-scheduler path supplies ticking and maintenance without pg_cron. The article’s dependency claim holds under that deployment.
Review: We checked pg_cron as a possible mandatory binary dependency. The release documents external scheduling. The finding limits its conclusion to that deployment. We challenged the dependency claim with pg_cron’s binary requirement. PgQue documents installation without C extensions and permits external scheduling. The conditional deployment reading holds.
Sources:
- [[email protected] · README.md:47-47](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/README.md#L47-L47)
Qualification: Version note: pg_cron is optional. The documented alternative uses an application or external scheduler.
Excerpt:
```text
No C extension, no `shared_preload_libraries`, no provider approval, no restart.
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530#F15
### F16 · Accurate · Factual · Verified accurate: “Empty batches require no acknowledgment…”
Location: Article · exact quote · [open in article](https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql#:~:text=Empty%20batches%20require%20no%20acknowledgment)
Article says:
```text
Empty batches require no acknowledgment…
```
What is true:
receive() calls finish_batch when its returned-event count is zero. PgQue v0.2.0 implements this in sql/pgque-api/receive.sql:62-65. Versions 0.2.1 and 0.2.2 preserve that behavior. Callers need no separate acknowledgment for an empty result.
Review: We distinguished an empty batch from no available batch. receive() finishes the former automatically. Neither empty result requires a separate acknowledgment. We distinguished an empty batch from no available batch. receive() finishes an acquired empty batch itself. No separate acknowledgement is required.
Sources:
- [[email protected] · sql/pgque-api/receive.sql:67-70](https://github.com/NikolayS/pgque/blob/dff3a906276068ad2433312bbc7c95a577deff53/sql/pgque-api/receive.sql#L67-L70)
Excerpt:
```text
-- Empty batch: finish immediately to advance the consumer cursor.
if cnt = 0 then
perform pgque.finish_batch(v_batch_id);
end if;
```
- [[email protected] · sql/pgque-api/receive.sql:62-65](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/sql/pgque-api/receive.sql#L62-L65)
Qualification: Version note: The same behavior remains in v0.2.1 and v0.2.2.
Excerpt:
```text
-- Empty batch: finish immediately to advance the consumer cursor.
if cnt = 0 then
perform pgque.finish_batch(v_batch_id);
end if;
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530#F16
## Notes (not graded) (1)
### F11 · Note · · Go Receive requires an explicit maxMessages argument
Location: excerpt · section “Update ( 31-Oct-2026)” · as fetched 2026-11-03 · [open in article](https://www.percona.com/blog/pgq-and-pgque-workflow-engines-you-might-need-in-postgresql#:~:text=the%20low%2Dlevel%20SDK%20receive%20%28,which%20also%20default%20to%20100.)
Article says:
```text
…the low-level SDK receive ( ) , which also default to 100.
```
What is true:
Python and TypeScript default to 100 messages. Go Client.Receive requires maxMessages as an argument. Its ordinary receive API has no omitted-argument default.
Charitable reading:
The default statement fits Python and TypeScript. Go callers must already supply a limit, so this distinction changes no working Go call.
Explanation: Not graded: no reader would act differently on it.
Review: We compared all three receive signatures. Go requires maxMessages. Python and TypeScript default to 100 messages. The ungraded note fits this distinction. We compared all three low-level signatures. Go requires maxMessages. Python and TypeScript default to 100. The note avoids charging an unsupported operational consequence.
Sources:
- [[email protected] · clients/go/pgque.go:127-129](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/clients/go/pgque.go#L127-L129)
Excerpt:
```text
func (c *Client) Receive(ctx context.Context, queue, consumer string, maxMessages int) ([]Message, error) {
rows, err := c.pool.Query(ctx,
"SELECT * FROM pgque.receive($1, $2, $3)", queue, consumer, maxMessages)
```
- [[email protected] · clients/python/pgque/client.py:218-223](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/clients/python/pgque/client.py#L218-L223)
Excerpt:
```text
def receive(
self,
queue: str,
consumer: str,
max_messages: int = 100,
) -> list[Message]:
```
- [[email protected] · clients/typescript/src/client.ts:159-159](https://github.com/NikolayS/pgque/blob/e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6/clients/typescript/src/client.ts#L159-L159)
Excerpt:
```text
async receive(queue: string, consumer: string, maxMessages = 100): Promise<Message[]> {
```
Finding URL: https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530#F11
## Withdrawn findings (0)
None.
## Section checks
- Background · A · 1 verified-accurate · 100% of claims (1 of 1)
- Design · A · 1 verified-accurate · 66% of claims (14 of 21, plus 5 that need data we do not have)
- Features · B+ · 2 recipe error (fails loudly) · 3 verified-accurate · 92% of claims (49 of 53, plus 2 that need data we do not have)
- Application integration · B+ · 1 inaccuracy · 100% of claims (1 of 1)
- Consumer · A · 2 verified-accurate · 100% of claims (14 of 14)
- Consumer recipe · A · 1 verified-accurate · 92% of claims (26 of 28)
- Overflow update · A · 4 verified-accurate · 91% of claims (21 of 23, plus 1 that need data we do not have)
## Claim coverage
- Introduction: 7 claims are the author's own account; nothing checkable; not counted: 9 product or opinion, 2 not a claim
- Background: 1 of 1 Postgres claims checked; not counted: 5 product or opinion
- Design: 14 of 21 Postgres claims checked, plus 5 that need data we do not have; not counted: 2 product or opinion, 2 duplicate, 1 not a claim; not checked: 7 for other reasons
- Features: 49 of 53 Postgres claims checked, plus 2 that need data we do not have; not counted: 1 not a claim; not checked: 4 for other reasons
- Application integration: 1 of 1 Postgres claims checked; not counted: 2 product or opinion, 2 not a claim
- Producer: 9 of 10 Postgres claims checked; not counted: 1 product or opinion, 2 duplicate, 1 not a claim; not checked: 1 for other reasons
- Consumer: 14 of 14 Postgres claims checked; not counted: 3 duplicate, 1 not a claim
- Consumer recipe: 26 of 28 Postgres claims checked; not counted: 3 duplicate; not checked: 2 for other reasons
- Retries: 7 of 8 Postgres claims checked; not counted: 1 product or opinion, 5 duplicate, 1 not a claim; not checked: 1 for other reasons
- Summary: 3 claims are the author's own account; nothing checkable; not counted: 1 product or opinion, 2 duplicate, 2 not a claim
- Overflow update: 21 of 23 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion, 1 duplicate, 1 not a claim; not checked: 2 for other reasons
- Recommendations: 6 of 6 Postgres claims checked; not counted: 4 duplicate
- Page footer: no checkable claims; not counted: 3 product or opinion, 3 not a claim
## What we did not check
- We did not reproduce the throughput, XID-horizon, or consumer-latency measurements.
- We did not execute the SQL examples or check application-specific dependencies and permissions.
- We did not verify the complete delayed-delivery API name because the article ends it at maint_d.
- We did not establish that snapshot batching eliminates every concurrency bottleneck.
- We did not reach the article’s technical links, conference talks, or performance animation.
- We did not reproduce the production measurements or benchmark results.
- We did not check the complete producer and consumer recipes, including dependencies, permissions, and runtime effects.
- We did not complete the retention, ordering, retry-routing, and lifecycle API checks.
- We did not inspect death_spiral.gif or verify its performance measurements.
- We did not verify the reported update and autovacuum frequencies against production logs.
- We did not verify the SQL recipes' dependencies, permissions, setup, function bodies, or runtime effects.
- We did not independently verify the 2-hour retention default, 500-event threshold, or tick scheduling.
- 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 confirm whether finding F2 fails loudly.
- We could not decide whether the article depends on finding F3.
- experiments: check did not finish
- production actions: check did not finish
- benchmark: check did not finish
- No fenced or preformatted code blocks were identified. Inline snippets and other setup instructions were not checked for syntax.
## Notes
- A- — the findings address the article's main subject. What we did not check is listed below. We checked PgQue’s batch acknowledgments, retention, deployment claims, consumer transaction structure, and overflow behavior across versions 0.2.0 through 0.2.2.
- We did not check everything in this article. What we did not check is listed below, in the words we recorded at the time. None of it moved the letter. We never charge our own limits to the article.
- Average of 5 axes: 3.74 · result A-
- Some explanatory text is not shown in this edition; the grade and findings are complete.
- Some checks did not happen for this edition, and each one we know of is listed above.
- Checked against: github.com/postgres/postgres REL_18_6 at commit 724edf9bde9d356724ad384a2e196edc3c9f80f7 (pinned target); github.com/NikolayS/pgque v0.2.0 at commit e8ee488d2c1d87ab09eed2581ec4bbc1e68315f6 (pinned target); github.com/pgq/pgq v3.5.2 at commit be3d2cee3fc7279d9e1480b19cfddb8a62c1450d (pinned target); github.com/citusdata/pg_cron v1.6.8 at commit 5cedfa472ccc83567aa23ec645925ed8489a7797 (pinned target); https://www.percona.com/ (fetched 2026-11-03T02:10:51.616801Z); https://www.percona.com/cloud-native/ (fetched 2026-11-03T02:11:34.511777Z); https://www.percona.com/cloud-native/mysql-kubernetes-calculator/ (fetched 2026-11-03T02:11:11.478258Z); https://www.percona.com/coroot/ (fetched 2026-11-03T02:11:38.081949Z); https://www.percona.com/downloads/ (fetched 2026-11-03T02:11:00.966172Z); https://www.percona.com/mariadb-support/ (fetched 2026-11-03T02:11:16.899031Z); https://www.percona.com/mongodb/ (fetched 2026-11-03T02:11:19.143417Z); https://www.percona.com/mongodb/calculator/ (fetched 2026-11-03T02:11:22.887488Z); https://www.percona.com/mongodb/software/ (fetched 2026-11-03T02:11:21.147945Z); https://www.percona.com/mongodb/support/ (fetched 2026-11-03T02:11:25.439334Z); https://www.percona.com/monitoring/ (fetched 2026-11-03T02:11:36.449049Z); https://www.percona.com/mysql/ (fetched 2026-11-03T02:11:07.010518Z); https://www.percona.com/mysql/software/ (fetched 2026-11-03T02:11:09.729363Z); https://www.percona.com/mysql/support/ (fetched 2026-11-03T02:11:14.031727Z); https://www.percona.com/mysql/vision/ (fetched 2026-11-03T02:11:05.133300Z); https://www.percona.com/postgresql/ (fetched 2026-11-03T02:10:54.554529Z); https://www.percona.com/postgresql/calculator/ (fetched 2026-11-03T02:10:58.910609Z); https://www.percona.com/postgresql/software/ (fetched 2026-11-03T02:10:56.767682Z); https://www.percona.com/postgresql/support/ (fetched 2026-11-03T02:11:03.230695Z); https://www.percona.com/resource/state-of-open-source-db-management/ (fetched 2026-11-03T02:10:48.972879Z); https://www.percona.com/services/database-health-audit/ (fetched 2026-11-03T02:11:51.304313Z); https://www.percona.com/services/database-migrations/ (fetched 2026-11-03T02:11:49.523301Z); https://www.percona.com/services/expert-consulting-and-services/ (fetched 2026-11-03T02:11:47.801267Z); https://www.percona.com/services/expert-support/ (fetched 2026-11-03T02:11:44.076328Z); https://www.percona.com/services/expertops/ (fetched 2026-11-03T02:11:46.001545Z); https://www.percona.com/solution-bundles/ (fetched 2026-11-03T02:11:41.817906Z); https://www.percona.com/toolkit/ (fetched 2026-11-03T02:11:39.986761Z); https://www.percona.com/valkey-redis/ (fetched 2026-11-03T02:11:27.216053Z); https://www.percona.com/valkey-redis/calculator/ (fetched 2026-11-03T02:11:29.213779Z); https://www.percona.com/valkey-redis/support/ (fetched 2026-11-03T02:11:31.920416Z).
- Article captured 2026-11-03T02:10:20.034742Z · SHA-256 9dd9ec7f2cb8a29bb43e6e48b11fceda558036f6f406a3723edd393281d64881 · Text extracted from the article's HTML.
- Policy SHA-256 f600c1f56a08bdf180426e4f0637bff0607b522b7c13bdb819fd3ed4c7253c8b · Grading rules SHA-256 6fb334e79d6b9e7ed81d3238cc10d9de602ff87ed65ff2fa781f53bac5798765.
- We did not reproduce the throughput, XID-horizon, consumer-latency, or production update measurements.
- We did not inspect death_spiral.gif or verify its performance comparisons.
- We did not execute the SQL examples or verify their complete setup, dependencies, permissions, and runtime effects.
- The syntax checks identified no code blocks. They provide no syntax validation for the article’s SQL examples.
- We checked transaction-control rules against PostgreSQL 18.6.
- We did not establish that snapshot batching eliminates every concurrency bottleneck.
- We did not complete the ordering, retry-routing, and lifecycle API checks.
- We did not verify the complete delayed-delivery API name because the article ends it at maint_d.
- We did not reach the article’s technical links or conference talks.
- The article gives a publication date without a time. We list that date at midnight UTC.
- source: the article names postgres 2007, which had no release, so it was read at REL_18_6, the latest release when it was published
- source: the article names no pgq release, so it was read at v3.5.2, the latest release when it was published
- source: the article names no pg_cron release, so it was read at v1.6.8, the latest release when it was published
- review: the findings were written by one model and reviewed independently by a different model.
- 6 passages in this edition fell short of our own plain-English rules.
- Built from the article text captured above, 4 pinned source trees, and 30 fetched pages.
- 16 survived · 0 weakened · 0 withdrawn.
## Edition changes
- F1 · recalibrated.
- F2 · recalibrated.
- F3 · recalibrated.
- F4 · recalibrated.
- F5 · recalibrated.
- F6 · recalibrated.
- F7 · recalibrated.
- F8 · recalibrated.
- F9 · recalibrated.
- F10 · recalibrated.
- F11 · recalibrated.
- F12 · recalibrated.
- F13 · recalibrated.
- F14 · recalibrated.
- F15 · recalibrated.
- F16 · recalibrated.
## Revision history
- [Revision 1](https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530?v=2) · Not assessed · audit version not recorded
Details unavailable.
ElephantSeal: Not assessed.
- [Revision 2](https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530?v=20) · 2026-09-30 20:05 UTC · D · audit version not recorded · regrade version not recorded
Same article text, re-audited. 11 accurate · 3 wrong · 2 caveats.
ElephantSeal: D.
Changes: Details unavailable.
- [Revision 3](https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530?v=26) · 2026-10-19 07:41 UTC · B · audited with v1.0.14 (approx.) · regraded with v1.1.3
Article text changed. 6 accurate · 3 wrong · 0 caveats.
ElephantSeal: B. Open: the production risk is not yet fixed or warned about.
Changes: No longer reported: “The receive-and-ack loop can skip unread events”; “Acknowledging a partial receive skips unreturned events”; “Delayed delivery requires an experimental module”; “…client libraries exist for Python, Go, TypeScript, and Ruby…”. New: F3 “Advanced observability requires a separate experimental installation” (misleading); F4 “Delayed delivery requires a separate experimental installation” (misleading).
- [Revision 4](https://pgtrue.postgres.ai/shared/brief/de1ef044-eef6-4ebd-bac0-a15e88b53530?v=28) · this page · 2026-11-03 02:10 UTC · A- · audited with v1.1.5
Article text changed. 12 accurate · 1 wrong · 0 caveats.
ElephantSeal: A-. Open: central claim not checked.
Changes: Fixed: “The consumer loop can acknowledge events it never fetched”; “Advanced observability requires a separate experimental installation”. No longer reported: “Delayed delivery requires a separate experimental installation”. New: F3 “PgQue 0.2.0 does not ship a Ruby client” (false); F2 “The observability installation command names the wrong directory” (recipe error); F1 “PgQue 0.2.0 has no send_idem() or maint_idem()” (recipe error).