Skip to content

Releases

v1.0.0-rc.16

v1.0.0-rc.16 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Dec 18:17
2182fe0

Added

  • Manual commit mode (#219) and the manual_commit capability: with
    manual_commit on execute_query/execute_query_batch, the plugin sends
    BEGIN before a session's first statement and keeps the connection pinned
    until the new commit_session or rollback_session RPC ends the
    transaction. get_session_state reports whether a session holds one. A
    connection whose COMMIT/ROLLBACK failed is closed instead of returning to
    the pool. Inert until the host sends manual_commit (tabularis#1752).

Changed

  • read_rows reads every column that is not a native JSON type as the
    server's own ::text output instead of decoding PostgreSQL's binary format
    in the plugin (#225, #227). Native types are unchanged: bool,
    int2/int4/int8, oid, float4/float8 (NaN/±Infinity as
    strings), bytea (full base64), text/varchar/bpchar/name, uuid.
    money reads as ::numeric::text ("123.45"). Contract changes:

    • arrays, ranges, multiranges and composites are PostgreSQL text strings
      ("{{1,2},{3,4}}", "[2:3]={1,2}", "(1,2)"), not JSON arrays or objects;
    • timestamptz is read in UTC with a +00 offset (was +00:00);
    • interval follows IntervalStyle = postgres (14 months reads
      1 year 2 mons);
    • json/jsonb is the server's exact text, so 1e400, wide numbers and
      json duplicate keys survive;
    • hstore reads as its text form ("a"=>"1"), not a JSON object;
    • a zero-row result now reports its columns.

    The read pins DateStyle, IntervalStyle, extra_float_digits,
    bytea_output and TimeZone with SET LOCAL, so a connection's startup
    script does not change the text. The binary lossless decoders (PgNumeric,
    the full-precision temporal decoders, PgIntervalText, PgMoneyText, the
    lossless array decoder) are removed.

  • insert_records, insert_record and update_record cast a value that no
    earlier binding step recognizes to the column's schema-qualified type
    (CAST($N AS public.point2d)), so composites, arrays with lower bounds,
    user-defined ranges and hstore text write back. jsonb[] arrays may
    contain JSON objects (#225, #227).

Fixed

  • read_rows: multi-dimensional arrays, array lower bounds, 1e400 and
    wide jsonb numbers, json duplicate keys, tstzrange offsets and
    interval normalization now match the server (#225, #227). These were
    silent nulls or changed values.
  • read_rows one-shot reads always end with ROLLBACK, so a query that sets
    a session setting (set_config(…, false)) can no longer leak it into the
    pooled connection (#225).
  • read_rows behind a transaction pooler runs on a one-shot connection and
    starts with DEALLOCATE ALL, so describing the query cannot fail with
    42P05 prepared statement "sN" already exists (#227).
  • read_rows accepts a statement ending in a -- comment, a block comment
    or ; on the session path (select 1 -- c\n) (#225).
  • read_rows rejects a negative or non-integer limit with -32602 instead
    of using the default of 1000 (#225).
  • A text-family column keeps its value as is: a JSON-array-shaped string
    ([1,2,3]), a UUID-shaped hash, POINT(…) or ST_…(…) is no longer
    rewritten into an array, a uuid, a geometry or raw SQL (#227).
  • A bytea column accepts only the BLOB: wire format. Any other string,
    such as an unresolved BLOB_FILE_REF: or corrupt base64, is an error (#227).
  • The read_rows cursor no longer over-rewinds on a full batch, which
    duplicated rows across pages (#220, #221).
  • read_rows returns NaN/Infinity, date/timestamp infinity,
    24:00:00 and JSON null instead of SQL null, and money as decimal
    text instead of integer cents (#220, #221).
  • insert_records casts types that have no text assignment cast (inet,
    cidr, macaddr, xml, bit, tsvector, geometric and range types),
    writes JSON strings into json/jsonb, uses the column length for
    bit(n), and decodes the BLOB: format only for bytea columns (#220,
    #221, #222, #223).
  • A session cursor rejects a different query under the same session_id
    instead of returning the old cursor's rows (#220, #221).
  • get_columns: is_generated for stored generated and ALWAYS identity
    columns (not BY DEFAULT identity, which accepts values — #224, #226),
    datetime_precision, full_type, domain base types, and materialized
    view columns (#220, #221).
  • Binding errors no longer echo row values (#220, #221).

Known limitations

  • money[], and money inside a composite, read in the server's locale
    form ({"$1,234.50"}): only a scalar money column is read as
    ::numeric::text. Copying such a value to a server with a different
    lc_monetary can misparse or fail.
  • A user-defined composite named like a built-in type (myschema.date,
    myschema.box) is cast to the built-in type on insert, so the write
    fails (column … is of type myschema.date but expression is of type date). Pre-existing.

v1.0.0-rc.15

v1.0.0-rc.15 Pre-release
Pre-release

Choose a tag to compare

@aesslinger aesslinger released this 02 Dec 15:14
de1fffd

Added

  • read_rows RPC, insert_records RPC, and the table_copy capability
    (#207): a lossless table-to-table copy path. read_rows returns
    full-precision values — timestamp(6)/time keep fractional seconds,
    timestamptz keeps the +00:00 UTC offset, and bytea is base64-encoded in
    full (not the 10 KB preview) — plus the PostgreSQL type name and OID per
    column so the host can plan the conversion. With a session_id, the first
    page opens a REPEATABLE READ READ ONLY transaction on a pinned connection
    that subsequent pages reuse, so rows are not skipped or repeated when the
    source table changes mid-copy; release with release_session. insert_records
    is the batch typed insert for the write side: it reuses the bind_pg_value
    typed cascade with column types discovered once per batch, in one transaction
    on a one-shot connection (BEGIN/COMMIT/ROLLBACK), so a batch that fails
    writes none of its rows. The BLOB:...:base64 format from read_rows
    round-trips through bind_pg_value's decode_blob_wire_format, so a PG→PG
    copy preserves every value. The host gates the Transfer feature on the
    table_copy capability (companion to the tabularis host change,
    tabularis#1625). Arrays, ranges, and composites of temporals stay lossy in
    this PR (documented limitation; the copy acceptance criteria are scalar
    columns).
  • read_rows session-pinned cursor paging (#214, #216): with a session_id,
    the read DECLAREs a SCROLL server-side cursor and FETCHes per page — linear,
    one stable order, no LIMIT/OFFSET re-read. A retried page=1 reuses the
    cursor (keyed off the pinned connection, not the page number). The cursor
    lives and dies with the pinned REPEATABLE READ transaction; release_session
    (ROLLBACK) drops it.
  • insert_records on_conflict: "skip" (#214, #216): optional on_conflict
    param ("fail" default, "skip" → ON CONFLICT DO NOTHING). Response reports
    { affected_rows, skipped }.
  • get_columns, get_view_columns, get_materialized_view_columns, and the
    batch fetch now return type (pg_type.typname — the short internal name
    matching read_rows' Type::name()) and oid (#214, #216), so the host can
    plan the conversion with one type vocabulary.
  • execute_read_only_query and the read_only_queries capability (#202):
    protected read-only queries. Each call runs as BEGIN READ ONLY, the query,
    ROLLBACK, so PostgreSQL itself refuses INSERT, UPDATE, DELETE, DDL and
    writing functions; the plugin reads transaction_read_only back and fails the
    call if protection is not in effect. Transaction-control statements are
    refused, including ones hidden behind a -- comment that ends at a carriage
    return. PREPARE, DEALLOCATE, COPY, ANALYZE, CLUSTER, REINDEX,
    CHECKPOINT, LOAD and DISCARD are refused too, because a read-only transaction does
    not stop them from changing state outside it. The connection returns to the
    pool only after ROLLBACK succeeded and the session holds no prepared
    statement or session-level advisory lock the call created; otherwise, and on
    a cancellation or a dropped call, it is detached, its running statement is
    cancelled and it is closed, so protection and session state never leak to a
    writable caller of the same pool. A cancel that lands before the query runs
    stops the call. Role privileges still bound the protection (see the README).
  • A connection with read_only = true now opens on its own pool whose new
    sessions run SET default_transaction_read_only = on, and the plugin never
    runs its startup_script (the host omits it), so connection testing and
    metadata discovery cannot write. It is a statement and not a startup option,
    because PgBouncer rejects the option in every pool mode. Behind a transaction
    pooler the statement is not run and the per-call transaction protects there;
    pooler_mode is part of such a pool's key. There a closed client connection
    does not close the server backend, so a call also releases the session-level
    advisory locks and PREPAREd statements it created in the same message as its
    ROLLBACK, which a real PgBouncer test confirms.
  • import_database_sql (#201): imports a .sql file in a single transaction on
    a dedicated connection, so a failing statement rolls the whole import back
    instead of leaving the database half-imported. Applies the built-in driver's
    session setup with one difference: the requested schema (default public) is
    prepended onto the connection's search_path instead of replacing it. Also
    sets SET CONSTRAINTS ALL DEFERRED and SET LOCAL synchronous_commit = OFF,
    runs deferred constraint checks before COMMIT, reports the failing
    statement's number, line and text, and honors cancel between statements and
    before COMMIT. Statements are streamed and split correctly around quotes,
    dollar quoting, comments and BEGIN ATOMIC bodies, and each runs as exactly
    one command. BEGIN/COMMIT lines in the file are skipped so the import
    stays atomic; ROLLBACK, COPY ... FROM STDIN/TO STDOUT, anything that
    could turn standard_conforming_strings off, and psql meta-commands are
    rejected with an explanation (use pg_dump --inserts). The database the user
    picked wins over the one named in a legacy connection string. Session
    settings from the dump are reset before COMMIT so they do not leak through
    a transaction pooler. No progress events are emitted.
  • get_foreign_keys and get_all_foreign_keys_batch now return ref_schema,
    the schema of the referenced table. A foreign key into another schema
    (billing.carry_forwards.organization_id → core.organizations.id) no longer
    makes the Related Records panel query billing.organizations. Byte-for-byte
    parity with the built-in driver (companion to the tabularis host change).

Changed

  • A statement that reads now takes one network round trip on a direct
    connection, where it took four: the search_path is set in one statement
    instead of a read and a SET, and it goes out together with the statement's
    prepare and its data fetch. On a link with a 200 ms round trip, running a
    query, opening a table, a next page and a row count each drop from about
    0.8 s to 0.2 s. A statement that writes still waits for its search_path
    first. Connections in transaction pooler mode are unchanged.
  • tokio-postgres 0.7.18 is vendored under vendor/tokio-postgres with one
    change: a typed query receives its rows before it looks up a column type the
    connection has not met. Without it, a large result with an enum, domain,
    composite or extension-type column could hang unless the statement was
    prepared first, which is the round trip the plugin used to spend. See
    vendor/tokio-postgres/README.tabularis.md.

Fixed

  • Wide NUMERIC/DECIMAL values and NaN no longer silently decode to null
    on the read_rows lossless path (#214, #216). A new PgNumeric FromSql
    decodes the base-10000 wire bytes directly, reproducing PG16's
    numeric_out/get_str_from_var — values over 29 significant digits and
    NaN/Infinity survive. The write side (bind_pg_numeric_string) always
    binds via TEXT+CAST($N AS numeric), not Decimal::parse (which silently
    rounds high-scale values to 28 significant digits).
  • A read_rows session-cursor response is now bounded by a 16 MB byte budget
    (MAX_RESPONSE_BYTES) so a table with large bytea values can be copied
    without exhausting memory (#215, #217). The cursor DECLAREs SCROLL and
    FETCHes in a batch; when the byte budget is hit, the over-budget rows are
    rewound with MOVE BACKWARD (via query_typed, extended protocol) so the
    next page re-fetches them — no data loss, no host change. A single row
    larger than the budget still goes out as its own response (always at least
    one row). The one-shot path (no session_id) is unchanged: at most limit
    rows, no byte budget. limit is capped at MAX_PAGE_SIZE = 100,000 to
    prevent runaway round-trips on small-row tables.
  • Data-modifying CTE statements (WITH ... INSERT/UPDATE/DELETE ...) no
    longer get SQL pagination appended (#212). A WITH ... INSERT ... RETURNING
    with a limit param got LIMIT appended after RETURNING, causing a syntax
    error; a WITH changed AS (UPDATE ... RETURNING ...) SELECT ... re-executed
    the update on every page, doubling writes. The plugin now parses the CTE
    structure and pages only read-only CTEs (every body and the outer command are
    SELECT/VALUES/TABLE). Data-modifying CTEs and unparseable statements
    fall back to client-side row capping with pagination: null.
  • DATE, TIMESTAMP and TIMESTAMPTZ values beyond year 9999 no longer decode
    to null (#200). The interim jiff port (RUSTSEC-2026-0543) bounded years to
    ±9999, so valid PostgreSQL dates up to ~5.88M AD (DATE) / ~294276 AD
    (TIMESTAMP) silently became null where the old chrono path produced a
    formatted string, and BC dates with 1-3 digit years padded as -050 where
    chrono padded to -0050. The four temporal types now decode via custom
    FromSql impls that read the raw wire bytes and format with chrono-matching
    output over the full PostgreSQL range: %Y puts the sign outside the 4-digit
    field (-0050, +10000), Howard Hinnant's civil_from_days algorithm
    covers 4713 BC to ~5.88M AD, and infinity sentinels (i32::MAX/i64::MAX/
    MIN) decode to null as the old chrono path did. The jiff dependency
    is removed entirely (no calendar-library dependency remains).
    clause was appended to the end of the text, so after a trailing -- note it
    sat inside the comment, PostgreSQL ignored it, and every page returned the
    first rows with has_more still true: an export of such a query repeated
    the first page until cancelled. Pagination now reads the query with a lexer
    that knows -- and nested /* */ comments, strings (including...
Read more

v1.0.0-rc.14

v1.0.0-rc.14 Pre-release
Pre-release

Choose a tag to compare

@aesslinger aesslinger released this 10 Nov 17:59
47cec1a

Added

  • Column comments are now supported through the driver column_comments
    capability (#187). Add Column appends COMMENT ON COLUMN; Modify Column
    adds, replaces, or clears a comment without restating unchanged column
    attributes (type, nullability, default), and a rename plus comment targets
    the new column name. Comment text is emitted as a PostgreSQL escape string
    (E'...'), so apostrophes, backslashes, Unicode, and line breaks survive
    intact and identical to the built-in driver — including under
    standard_conforming_strings = off. Clearing a comment emits
    COMMENT ON COLUMN ... IS NULL. The optional comment field on a column
    definition carries forward older host payloads unchanged (#[serde(default)]).
    Byte-for-byte parity with the built-in driver's implementation (companion
    to host issue tabularis#1448).

Dependencies

  • log 0.4.34 → 0.4.35 (#186). An upstream no-op patch: the 0.4.35 release
    contains no source changes (it reworks log's own CI/CD pipeline), so
    runtime behavior is identical. log writes only to stderr and is never
    on the JSON-RPC response path.

v1.0.0-rc.13

v1.0.0-rc.13 Pre-release
Pre-release

Choose a tag to compare

@aesslinger aesslinger released this 29 Oct 19:14
96e578b

Fixed

  • A prepare failure inside an open transaction no longer cascades to a
    confusing 25P02 ("current transaction is aborted") on every subsequent
    statement in the same session (#170, #180). The pre-resolve prepare in
    exec_query_on_client swallowed its error via .ok() and ran
    query_typed unconditionally; a Parse-time error (e.g. SELECT * FROM missing_table → 42P01) inside an open transaction aborted the
    transaction server-side, so query_typed failed with 25P02 instead of the
    real error — and because transaction_effect("SELECT")=None kept the
    batch caller's in_transaction=true, the aborted connection was re-pinned
    and every subsequent batch 25P02-cascaded until an explicit ROLLBACK.
    The fix gates the swallow on in_transaction: inside an open transaction
    it short-circuits (best-effort ROLLBACK + surface the prepare's real
    SQLSTATE + signal txn_aborted=true so the caller forces
    in_transaction=false and releases the connection); outside a
    transaction the recoverable swallow is preserved (a 42P05 on a real
    PgBouncer bare batch where query_typed's unnamed protocol can still
    succeed). The error message tells the user the transaction was rolled
    back so the state change isn't silent.

  • A query_typed / execute_typed runtime error inside an open
    transaction no longer re-pins the aborted connection and 25P02-cascades
    the next statement (#181, #184). The sibling of #170 from a different
    source: a runtime error at execute time (division by zero, a constraint
    violation at fetch, a failed DDL/write, a 42P01 on a relation dropped
    between prepare and fetch) also aborts the transaction, but #170
    deliberately left those two error arms returning txn_aborted: false.
    The fix classifies on the error's as_db_error() (a server DbError is
    any ERROR-class response — WARNING/NOTICE never arrive as a query
    Error, they're delivered out-of-band as AsyncMessage::Notice, so
    every DbError aborts an open transaction); non-DbError errors
    (transport/timeout) are conservatively assumed to have aborted it. Both
    error arms now ROLLBACK + surface the real error + signal
    txn_aborted=true, gated on transaction_effect(query) being neither
    Closes nor Chains so a failed COMMIT/ROLLBACK/END/COMMIT AND CHAIN — which already ended the transaction server-side and is handled
    by the existing Closes/Chains path — does not get a spurious ROLLBACK
    and "rolled back" notice. Closes the 25P02 cascade end-to-end (#170
    prepare-failure + #181 runtime-error = the two faces).

Dependencies

  • uuid bumped from 1.28.0 to 1.29.0 (#182). Additive only — adds
    versioned constructors to NonNilUuid; the existing Uuid API the
    plugin uses (parse, from_sql, to_string) is untouched. Semver-
    compatible with the existing uuid = "1.20" constraint.

  • tokio bumped from 1.53.3 to 1.54.1 (#183). The 1.54.1 patch reverts
    the only time-subsystem change from 1.54.0 (a timer regression), so
    tokio::time::timeout behavior is back to 1.53.3-equivalent — the
    bound the #170/#181 fixes rely on. All other 1.54.0 changes are
    additive or internal; none touch the APIs the plugin uses
    (time::timeout, sync::Mutex, spawn, #[tokio::test]). MSRV
    bumped to 1.85.

Docs

  • Centered the PostgreSQL banner and converted it to PNG; fixed a stale
    Tabularis logo URL (#179).

v1.0.0-rc.12

v1.0.0-rc.12 Pre-release
Pre-release

Choose a tag to compare

@aesslinger aesslinger released this 23 Oct 18:21
1859c46

Fixed

  • Querying a table with a non-builtin PostgreSQL type (custom enum,
    composite, domain, range, or extension type like citext / Supabase
    auth.uid) no longer hangs on a direct connection (#166, #168) once
    the result is large enough to fill tokio-postgres's bounded response
    channel — the rc.11 fix only covered the transaction-pooler path. The
    direct path now pre-resolves result column types via a prepare on the
    shared cached client before the query_typed data fetch, so
    tokio-postgres's internal typeinfo_statement resolves in a clean window
    (not mid-stream) and the cache hit makes get_type return early. Same
    mechanism the in_transaction batch path uses; preserves pool reuse and
    has zero overhead on builtin types.

  • A batch or interactive-transaction session on a transaction-mode pooler
    no longer deadlocks on a wide non-builtin-typed table (#169, #172) — the
    rc.11 #166 fix and the rc.10 #164 one-shot path both only covered
    non-session single result-set queries. run_batch_in_session now makes
    the same per-query routing decision as the single-query path: a
    result-set query inside an open transaction pre-resolves on the shared
    client (the user's BEGIN pins the backend); one with no open
    transaction routes to the one-shot pinned path. The empty-rows
    column-discovery fallback is guarded for the session-pinned pooler case.

  • A bare batch (no session_id, no BEGIN) that sets session-local state
    in an earlier statement — a session SET (not SET LOCAL) or a
    CREATE TEMP[ORARY] TABLE — then runs a result-set SELECT no longer
    silently loses that state on a pooler_mode = transaction connection
    (#173, #174). The rc.11 #172 fix routed the SELECT to a fresh one-shot
    connection that never saw the SET/temp table (wrong precision, or
    relation does not exist). The fix detects the prior session state and
    keeps the SELECT on the shared batch client with a column-type
    pre-resolve, restoring main's within-batch guarantee. Handles the
    optional deprecated GLOBAL/LOCAL qualifier before TEMP/TEMPORARY
    and excludes SET LOCAL / SET TRANSACTION / SET CONSTRAINTS.

  • A slow or hung query no longer starves ping, test_connection,
    initialize, and the cancel notification for every connection (#167,
    #176). The plugin had 4 workers fed by a single shared queue; every RPC
    type shared them, so 4 stuck calls (any slow query up to the host's 120s
    timeout) blocked health checks and new connects to other databases —
    and the cancel notification that's meant to relieve the stuck workers
    queued behind them (a deadlock: only quitting Tabularis freed the
    workers). RPCs are now routed by method into three lanes before a worker
    pulls the line: a dedicated cancel lane (the relief valve, never queued
    behind the workers it relieves), a 2-worker lifecycle lane
    (ping/test_connection/initialize/shutdown), and the existing
    4-worker general lane. The SHUTDOWN_GRACE drain (#155) covers all
    lanes' worker handles.

Known limitations

  • A bare [SET, SELECT] or [CREATE TEMP TABLE, SELECT] batch on a
    real PgBouncer (pool_mode = transaction, not the direct +
    pooler_mode = transaction flag config) can still lose session state
    between autocommit statements (pre-existing on main — the backend is
    reassigned per transaction) and, in rare cases with non-builtin result
    column types under backend reassignment during the pre-resolve
    prepare, can hang (#175). Wrap such batches in explicit
    BEGIN/COMMIT to pin the backend. Tracked as a follow-up; the
    direct + pooler_mode = transaction config (the common use) is
    unaffected.

  • A SELECT against a table with a composite type that is ALTER TYPE-ed
    (same OID, new field layout) on a recycled pooled connection can read a
    stale cached Type and produce wrong JSON for the composite's fields
    (#171). Pre-existing (a tokio-postgres/deadpool cache-invalidation
    limitation the plugin inherited); the rc.11/#168 pre-resolve widened the
    cache-warming window but did not introduce the bug. Tracked as a
    follow-up pending investigation of tokio-postgres's clear_type_cache
    API.

v1.0.0-rc.11

v1.0.0-rc.11 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 22 Oct 16:05
71fab2e

Fixed

  • Querying a table with a non-builtin PostgreSQL type (custom enum,
    composite, domain, range, or extension type like citext / Supabase
    auth.uid) no longer hangs or errors behind a transaction-mode pooler
    (PgBouncer pool_mode = transaction, Supavisor) — the rc.9/rc.10
    regression (#160, #163). Result-set queries on connections marked
    Pooler Mode = "Transaction" now take a pinned one-shot transaction path:
    BEGIN pins the backend, DEALLOCATE ALL clears stale server-side
    prepared statements, prepare resolves every result column's type
    while pinned (before the data fetch drains anything), and the #149
    unnamed-protocol query_typed runs the data fetch — so tokio-postgres's
    internal cached typeinfo_statement no longer collides across pooler
    backend reassignment. The one-shot client is discarded after each call,
    so its private type-cache handle (which DEALLOCATE ALL can't clear)
    dies with the connection. The whole sequence is bounded by a 90s
    plugin-side timeout (below the host's 120s call timeout) so a Supavisor
    stall surfaces as an actionable error instead of the opaque host timeout.

  • The one-shot pool path skips the redundant startup-script preflight —
    the post_create hook already validates the script on the real
    connection with the same error shape, so the preflight would just open a
    second throwaway connection per query for nothing. Only affects the
    pooler_mode = transaction + startup_script intersection.

  • pooler_mode is now trimmed before the transaction comparison (matching
    how startup_script is normalized in build_pool), so a hand-edited
    connections.json with surrounding whitespace can't silently bypass the
    pinned path.

Changed

  • format_query_error now emits the max_prepared_statements > 0 +
    pooler_mode guidance on all 26000/42P05 errors, not only when
    pooler_mode = transaction is set. is_transaction_pooler now selects
    the phrasing (definitive when the host declared a transaction pooler,
    conditional when it didn't), so users on older hosts that can't send the
    field still see the hint.

Security

  • Bumped rustls-webpki (0.103.15 → 0.103.16) and webpki-root-certs
    (1.0.9 → 1.0.10) to clear the emSign root-cert advisories. cargo audit
    now reports zero vulnerabilities (only the pre-existing chacha20
    yanked-crate warning remains). The existing rustls 0.23.46 and
    rustls-platform-verifier 0.7.1 floors already accept the patched
    versions, so no Cargo.toml change was needed.

Dependencies

  • tokio 1.53.2 → 1.53.3 (#161).
  • sha2 0.11.0 → 0.11.1 (#162).

v1.0.0-rc.10

v1.0.0-rc.10 Pre-release
Pre-release

Choose a tag to compare

@aesslinger aesslinger released this 16 Oct 12:03
a490d5c

Fixed

  • The plugin process no longer hangs forever when Tabularis quits while an
    RPC is in flight. After stdin EOF (the orphan path — the host is gone),
    in-flight RPCs now drain for at most 5s (SHUTDOWN_GRACE), then any
    worker still blocked on an unbounded await is force-cancelled via
    handle.abort(), which drops the held deadpool::Object and closes the
    DB socket server-side. tokio-postgres's connect_timeout bounds only
    the socket-level connect, not the startup handshake, so it could not
    bound the pooler-accepts-but-never-responds case — only this shutdown
    deadline covers every hang mode (connect, handshake, query, pool wait)
    uniformly (#156, #155).

Added

  • pooler_mode field in ConnectionParams for PgBouncer transaction-mode
    pooler awareness. When the host declares "transaction" (companion:
    tabularis#1126), the plugin skips its own prepare() call for
    column discovery on empty result sets (eliminating the plugin's
    named-statement trigger) and rewrites SQLSTATE 26000/42P05 errors
    (from tokio-postgres's internal typeinfo_statement fired by non-builtin
    column types — custom enums, composites, extension types) with actionable
    guidance pointing to max_prepared_statements > 0 in pgbouncer.ini.
    Backward-compatible: pooler_mode defaults to None — no behavior
    change until the host sends the field (#158, #157, tabularis#1097).

v1.0.0-rc.9

v1.0.0-rc.9 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 15 Oct 14:17
f503677

Fixed

  • Every query now uses the unnamed-statement protocol (Parse("") + Bind +
    Describe + Execute in a single flushed message) instead of minting a
    named prepared statement (s{N}) split across two Syncs. A
    transaction-mode connection pooler such as PgBouncer (pool_mode = transaction) can reassign the server connection between those two
    Syncs, so the Bind could land on a backend where the statement was
    never created — ERROR: prepared statement "s42" does not exist
    (SQLSTATE 26000). The unnamed statement has no name to go missing and
    lives only for the single extended-query sequence, so no reassignment can
    orphan it. This matches psql, which uses the unnamed statement by
    default for the same reason (#149, tabularis#1097).

Changed

  • Bumped rustls from 0.23.45 to 0.23.46 (#150).
  • Bumped serde_json from 1.0.151 to 1.0.154 (#152).
  • Bumped uuid from 1.27.0 to 1.28.0 (#153).

v1.0.0-rc.8

v1.0.0-rc.8 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 13 Oct 13:20
9183c17

Fixed

  • real/float4 values no longer show float noise in the grid (89.9
    instead of 89.9000015258789). The shortest f32 decimal is used for
    display, with the two f32 midpoint values (±7.038531e-26) using the
    exact widened value so the JSON number round-trips to the stored f32.
    CRUD, BLOB, and foreign-key row matching cast the WHERE value to real
    when the column type is REAL/FLOAT4, so the shorter value still finds the
    row after the grid sends it back (#144).

  • Selecting a schema prepends it onto the connection's base search_path
    instead of overwriting it, so queries against objects in a different
    schema still resolve. The base is captured once per connection at pool
    creation (after any startup script) into a custom GUC, making the
    prepend idempotent across recycled pooled connections — without it, a
    recycled connection would stack prior selections and leak a previous
    schema into object resolution (#51, #145).

  • numeric/decimal columns generate with their precision and scale
    (numeric(10,2) instead of bare numeric) in CREATE TABLE DDL, and
    composite foreign keys preserve their column order via WITH ORDINALITY
    (#143).

Added

  • get_materialized_view_definition RPC method — the last
    not_implemented stub — now returns a materialized view's DDL. Filters
    by relkind = 'm' so a regular view or table name returns a clean
    "not found" error instead of wrong DDL (#32, #146).

v1.0.0-rc.7

v1.0.0-rc.7 Pre-release
Pre-release

Choose a tag to compare

@aesslinger aesslinger released this 08 Oct 16:48
6d21ca9

Fixed

  • A failed connection attempt (wrong password) no longer poisons the pool
    cache: deadpool-postgres connects lazily, so a pool built with a wrong
    password was cached before the handshake was tested, and the cache key
    excluded the password, so the next request with the correct password
    reused the poisoned pool and failed until the 600s idle sweep dropped
    it. Three layered fixes: (1) get_pool_client evicts the cache entry
    on pool.get() failure, (2) connection_key folds a SHA-256 hash of
    the password so different passwords get distinct pools, (3)
    format_pg_error returns just the severity: message line instead of
    the full tokio_postgres::Error Debug dump that Tabularis showed
    verbatim in its password prompt (#132).

  • When connection_string is set, the pool cache key now folds in a
    SHA-256 hash of the connection string (which carries the password) so
    two strings differing only by password get distinct pools, and TLS
    params + startup_script remain in the key since build_pool reads
    them unconditionally even when connection_string is set (#134).

  • Non-object JSON-RPC input (arrays, numbers, strings, bools, null) now
    returns a -32600 Invalid Request response instead of being silently
    swallowed as a notification, which caused the client to hang (#135).

  • Invalid JSON-RPC objects missing a string method field (e.g. {} or
    {"id":1}) now return -32600 Invalid Request instead of being
    silently swallowed as a notification (no id) or returning a
    misleading -32601 Method Not Found (has id) (#137).

Changed

  • Bumped rustls-platform-verifier from 0.7.0 to 0.7.1 (Windows/Android
    bugfixes) (#128).
  • Bumped uuid from 1.26.1 to 1.27.0 (case-insensitive URN parsing, V7
    ordering fix) (#130).
  • Bumped tokio from 1.53.1 to 1.53.2 (bugfixes in fs/sync/rt/time) (#131).