Skip to content

omp-postgresql v0.1.0-rc.3

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 02 Nov 07:08
b715a97

Overview

RC.3 is a testing Release Candidate for the asynchronous PostgreSQL component for open.mp. It incorporates the distributed filename migration, worker-admission corrections, improved network diagnostics, stronger qualification tooling, and resource-investigation findings since RC.2.

This release is intended for testing and evaluation. It is not production-certified, and stable v0.1.0 has not yet been published.

RC.3 is built from commit b715a971e71047a9c73f6b85489fc342317ba86b, which successfully completed the seven-job integrated CI qualification.

Previous release: v0.1.0-rc.2

Full comparison: RC.2 → RC.3

What's Changed

Distribution and Installation

PR #43 — Align distributed filenames with open.mp conventions

The component now uses the following installed filenames:

  • Windows: components/PostgreSQL.dll
  • Linux: components/PostgreSQL.so
  • Pawn include: qawno/include/omp_postgresql.inc

The repository name remains omp-postgresql, and the component's internal identity and UID are unchanged.

Previous RC installations must remove the old component binaries and recompile Pawn scripts using the renamed include.

Runtime Reliability

PR #44 — Reject jobs admitted after worker termination

Corrected a race condition where a submission could be accepted after its worker had stopped, potentially leaving a job in a queue without an active consumer.

The correction:

  • Closes job admission during unexpected worker termination.
  • Rejects submissions targeting stopped workers.
  • Preserves completion semantics for previously accepted work.
  • Retains transaction and prepared-statement resource handling.
  • Does not automatically replay uncertain SQL operations.

Deterministic regression tests exercise the affected Engine and worker-queue behavior.

Network Diagnostics and Fixture Cleanup

PR #45 — Improve network diagnostics and recovery evidence

Improved failure capture and validation during network-recovery tests.

Diagnostic collection now retains stronger evidence about client operations, PostgreSQL activity, socket behavior, and relevant runtime identities.

Failed or missing observer snapshots cannot be treated as successful diagnostic observations.

PR #47 — Complete fixture cleanup after evidence-storage failures

Corrected a test-supervisor defect where failure to create or copy a wire-journal file could interrupt further fixture cleanup.

The test supervisor now:

  • Preserves the original workload failure.
  • Continues shutting down remaining disposable resources.
  • Records evidence-retention errors.
  • Rejects successful qualification when required evidence is missing.

These changes improve diagnostic reliability. They do not establish the root cause of the historical timeout tracked by issue #31.

Stability Qualification

PR #46 — Preserve campaign preflight failures and validate metrics

Strengthened stability-campaign preparation and result validation.

Improvements include:

  • Retaining failure evidence when required tools or dependencies are unavailable.
  • Recording the selected PostgreSQL server identity.
  • Rejecting inconsistent counters and invalid metrics.
  • Preventing incomplete or contradictory measurements from producing a passing qualification result.

These checks improve the reliability of future stability campaigns but do not replace prolonged runtime testing.

Windows Resource Investigation

PR #48 — Prepare RC.3 and preserve resource-attribution evidence

Introduced the Windows-only pg_windows_resource_probe diagnostic utility.

Controlled experiments reproduced the previously observed increase of 64 retained Windows handles using direct libpq TLS operations on a joined worker thread, without creating a plugin Engine.

The findings support a dependency/Windows initialization and resource-retention explanation rather than demonstrating an Engine lifecycle leak.

Repeated bounded cycles showed stable handle counts, and process exit released the remaining process handles.

These observations do not prove universal leak freedom. The exact allocation stacks of individual unnamed objects remain unavailable.

API Compatibility

The public Pawn API remains unchanged from RC.1 and RC.2:

  • 69 natives
  • 3 callbacks
  • Unchanged public signatures and constants
  • Unchanged component UID and internal identity

Prepared statements, parameterized queries, asynchronous execution, transactions, savepoints, batching, streaming, logging, and explicit result handling remain supported.

Named SQL sections continue to use:

pg_prepare_file(connection, filename, parameters, prepared, section)

The historical pg_prepare_section native was removed before RC.1 and remains unsupported.

There is no database-schema migration associated with RC.3.

Supported Test Environments

Windows x86

  • Official open.mp 1.5.8.3079
  • PostgreSQL/libpq 17.11
  • Required non-system runtime dependencies included in the distribution
  • Microsoft Visual C++ v14 Redistributable x86 required separately

Linux x86

  • Official open.mp 1.5.8.3079 with dynssl
  • Qualification on Ubuntu 24.04
  • Distributed lib/libpq.so.5
  • Compatible i386 OpenSSL 3, glibc, libstdc++, and libgcc system dependencies required

The x64 Engine test configurations do not constitute qualification of x64 open.mp component distributions.

Source builds require CMake 3.24+, Git, a C++20 compiler, and compatible libpq 17+ libraries with TLS and threading support.

Documentation:

Validation

RC.3 was qualified against the exact integrated commit:

b715a971e71047a9c73f6b85489fc342317ba86b

Integrated GitHub Actions run #41372458054

All seven required jobs completed successfully:

Configuration Result CTest
Linux normal PASS 36
Linux ASan/UBSan PASS 34
Linux ThreadSanitizer PASS 40
Windows x64 Engine PASS 29
Windows x86 MSVC/open.mp PASS 31
Linux x86/open.mp PASS 36
Downloaded distribution verification PASS —

Qualification results:

  • 206 main CTest executions passed.
  • Five additional directed CTest executions passed.
  • No recorded failures, errors, skips, or disabled qualification tests.
  • ASan/UBSan qualification included leak detection.
  • Official open.mp x86 qualification passed using source-built and extracted-package installations.
  • 92 real-session scenarios passed across four campaigns.
  • All 13 public Pawn examples compiled with warnings treated as errors.
  • Package manifests, dependencies, architecture checks, and license inventories were verified.
  • Source and release asset identities were checked against the exact qualified commit.
  • English documentation and frozen historical-evidence checks passed.

The release contains eight assets, including Windows and Linux distribution archives, the source archive, checksum sidecars, release notes, the release inventory, and SHA256SUMS.

Source archive SHA-256:

3003ba74a3dcc54f57d0fa033d4e0706ce502aaf8302e10f64d5e956691508d5

Verify the applicable archive checksums before installing or redistributing packages.

Successful qualification demonstrates the tested behavior within the documented environments and scenarios. It does not establish compatibility with every host, provider, workload, or operating-system configuration.

Known Issues and Limitations

Historical Network Cleanup Timeout

Issue #31 remains open.

A historical ASan network-cleanup timeout has not been attributed to a confirmed root cause.

Later successful diagnostic runs do not explain the original failure. A recurrence with actionable evidence requires focused investigation and correction.

Resource and Runtime Limitations

  • Windows resource experiments reproduced the 64-handle residual without a plugin Engine, but do not establish general leak freedom.
  • Historical intermittent Windows connection stalls and a Linux logging anomaly retain unresolved diagnostic limitations.
  • Local MinGW/PostgreSQL 18.4 failures remain documented. A component-independent libpq control reproduced a backend exception in that environment.
  • The dedicated 24-hour sustained stability campaign has not been completed.
  • Some platform combinations, external providers, instrumented dependencies, and physical-storage failure scenarios remain outside the verified qualification scope.
  • Diagnostic logging may drop events under bounded-queue pressure.
  • File logging does not guarantee durable flushing or a hard shutdown deadline.

SQL Outcome Semantics

SQL operations that enter an UNCERTAIN state are never automatically replayed.

Applications must reconcile potentially executed writes before retrying them.

Automatic restoration of active transactions or player authentication is not provided.

COPY, LISTEN/NOTIFY reception, Engine pipeline mode, ORM functionality, and database migration management remain outside this release.

See the security guidance, transaction documentation, and validation report.

Upgrading from RC.1 or RC.2

  1. Stop the test server and preserve a backup of the existing component, Pawn include, and runtime dependencies.
  2. Download the RC.3 package for the supported target platform.
  3. Verify the archive's SHA-256 checksum and inspect its manifest.json.
  4. Remove the previously installed components/omp-postgresql.dll or components/omp-postgresql.so.
  5. Install the matching components/PostgreSQL.dll or components/PostgreSQL.so.
  6. Replace the old omp-postgresql.inc with omp_postgresql.inc.
  7. Update the Pawn include directive and recompile the application.
  8. Run connection, query, transaction, lifecycle, and failure-recovery checks in an isolated environment before deployment.

The updated Pawn include directive is:

#include <open.mp>
#include <omp_postgresql>

Do not retain duplicate component binaries with the same internal UID.

Release Identity

Field Value
Version 0.1.0-rc.3
Release channel rc
Git tag v0.1.0-rc.3
Source commit b715a971e71047a9c73f6b85489fc342317ba86b
Supported distributions Windows x86, Linux x86
Classification Pre-release

RC.3 is published for testing and evaluation. The project will continue stability qualification and documented risk review before the first stable v0.1.0 release.