Firebird PSQL (5.0.4)

This assessment applies the coupling account β€” coupling as access to a shared resource, and the coupling floor [1], [2] β€” and the knowledge-embodiment theorem [3]; the language is assessed against its official reference [4].

Snapshot PSQL (Firebird 5.0.4) β€” released 17 April 2026 Β· lifecycle current

Family Firebird PSQL β€” shelf: Data and Science

The language’s primary object is a dataset or a numeric array, not a program loop. A shelf groups; it does not classify β€” the tags below carry every use, paradigm, and platform of this snapshot.

Trajectory Firebird 1.0 (25 July 2000 β€” the open-source fork of InterBase 6 ships its first release) Β· Firebird 3.0 (19 April 2016 β€” packages, the UDR engine, and SQL security arrive) Β· Firebird 5.0 (February 2024 β€” multithreaded maintenance and SQL query profiling enter the engine) Β· Firebird 5.0.4 (17 April 2026 β€” assessed release)

Tags

Use β€” Data and statistics, Query

Paradigm β€” Imperative, Procedural, Declarative

Lifecycle β€” Current

Memory β€” Runtime-managed

Typing β€” Static, strong

Resources

The language’s official entry points, and the documents that name the release this page assesses. A link marked this release pins the document to PSQL (Firebird 5.0.4); an unmarked link is the current reference for the language.

Landing page

Specification and reference

1 Assessment

This page assesses PSQL (Firebird 5.0.4) in five parts: core coupling β€” what the language’s own constructs force; ecosystem coupling β€” what the surrounding platform, tooling, and community cost; engineering readiness β€” whether the artifact can be reproduced, verified, observed, worked in quickly, connected to other languages, and governed openly; the profile β€” the unscored facts a score cannot express; and the scoring detail β€” the mechanism marks and the arithmetic behind every score. A βœ… bullet marks a construct that helps. A ⚠️ or ❌ bullet marks a cost; the scoring model does not price every cost named here.

Core coupling 83.1/100 Β· Ecosystem coupling 83.2/100 Β· Engineering readiness 52.0/100

1.1 Core coupling

1.1.1 Type

  • ❌ NULL is a member of every domain: parameters and locals carry NULL unannounced, the NULL guide is its own documentation chapter, and no signature states whether a value may be absent (T10)
  • ⚠️ No sum types: an alternative is a nullable column, a domain, or an EXCEPTION raised by convention, and the consumer re-derives the encoding
  • ❌ Statements state no effect: a selectable procedure that writes tables, fires triggers, and reads context looks like any other in the catalog (T12)
  • ❌ The UDR boundary is hand-written: EXTERNAL NAME declarations bind PSQL to compiled modules through the UDR engine, and the agreement on layout and error convention is checked by neither side (T14)

1.1.2 Construction

  • βœ… One block, one unit: EXECUTE BLOCK and CREATE PROCEDURE gather DECLARE, flow, and SQL into one executable the server parses whole
  • ⚠️ SUSPEND is a hand-rolled yield: a selectable procedure produces its rows where SUSPEND runs, and moving the statement moves the result set’s shape

1.1.3 Memory

  • βœ… Allocation is the engine’s: pages, statement memory, and cursor state live in the firebird process, and the PSQL text allocates nothing

1.1.4 Error

  • ❌ WHEN … DO decides, or the error propagates: EXCEPTION handlers catch by name, SQLSTATE, or ANY, and without one the error leaves the block β€” no value carries the failure (Er3)
  • ❌ No composable result type: failures travel by exception, results by output parameters and SUSPENDed rows, and neither composes through an expression (Er4)

1.1.5 Concurrency

  • ❌ Connection state is shared: session context variables and global temporary tables are visible across every PSQL unit the connection runs (K2)

1.1.6 Platform

  • ❌ The block runs only in Firebird: the parser, the exceptions, and the catalog are the engine’s, and nothing in the language runs without a Firebird server (P1)
  • ❌ A poor fit outside set work: the language has no libraries, no data abstraction beyond tables and domains, and no error values, so application logic builds every abstraction itself (P4)

1.1.7 Trade-offs (not coupling)

  • A community engine with an enterprise surface: packages, UDRs, and query profiling arrive without a vendor’s license meter, and the price is an ecosystem a fraction of the mainstream size
  • Selectable procedures are the abstraction: FOR SELECT … DO with SUSPEND builds streaming result sets inside the engine, and the price is control flow whose meaning sits in where SUSPEND runs
  • Exceptions are engine-wide: named EXCEPTIONs with custom messages give structured recovery, and the price is that unhandled ones leave the block as the engine’s error, with no value to catch
  • The UDR engine opens the door: EXTERNAL NAME declarations bind compiled modules into the database, and the price is an ABI agreement neither side’s compiler checks

1.2 Ecosystem coupling

1.2.1 Performance

  • βœ… The engine ships its own profiler: Firebird 5.0 introduces SQL query profiling as a documented server feature, so a block’s statements can be timed inside the toolchain

1.2.2 Ecosystem

  • ❌ A niche ecosystem: Firebird’s tooling and hiring pool concentrate in its legacy application base, a fraction of the PostgreSQL or MySQL worlds (Ec3)
  • ⚠️ Third-party tools carry the day: FlameRobin, IBExpert, and DBeaver fill the tooling space, and no official editor analysis or IDE ships with the server

1.2.3 Evolution

  • ⚠️ Three lines maintained at once: 5.0, 4.0, and 3.0 receive simultaneous sub-releases, so a block’s available surface depends on which maintained line the deployment runs

1.2.4 Domain

  • ❌ The language exists to serve the database: procedures, triggers, and packages deploy into the catalog, and the security model and storage engine define what they can say (D1)

1.2.5 Learning

  • ⚠️ The Language Reference is one volume: the PSQL chapters cover statements, exceptions, and cursors with worked examples, and the wider engine documentation surrounds them

1.2.6 Syntax

  • ⚠️ A dialect inside a dialect: PSQL shares syntax with Firebird SQL but adds SUSPEND, block-scoped DECLARE, and EXCEPTION handling that plain SQL statements do not accept

1.2.7 Testing

  • ❌ No standard test harness for user blocks: the project’s own QA is internal, and the documented testing story for PSQL is application-side tests against a live database (G1)
  • βœ… Profiling is a server feature: the 5.0 query profiler answers what a block’s statements cost, so the instrument is part of the engine rather than a third-party tool (G2)

1.2.8 Security

  • ❌ EXECUTE STATEMENT is string-built: dynamic SQL text assembled from parameters reaches the parser, and the mitigation is the statement-level privilege model plus bound inputs (Q3)

1.2.9 Delivery targets

What ships from a producer to a consumer, and whether the interface across a release boundary is promised. Ec8 is present when one compiled target crosses with no promise.

Target Ships as Crosses a producer boundary Cross-release promise
stored program source (procedures, functions, triggers, packages) script no the database stores the source text and parses it at creation and use; no compiled unit crosses a boundary

1.3 Engineering readiness

1.3.1 Reproducibility

  • βœ… A block is stored source: the same text on the same engine version and data reproduces the same result, and nothing is compiled ahead of the call
  • ❌ No toolchain pin exists: the repository names no engine version, and the executing release is a deployment fact a manager must supply (Y14)

1.3.2 Supply chain

  • ❌ No signed provenance for published code: UDRs and client drivers move through distribution channels without signature checks, and a deployment trusts what it installs (Y3)
  • ❌ No advisory feed names the product’s dependencies: fixes land in release notes of three maintained lines at once, with no CVE-mapped advisory database (Y16)

1.3.3 Observability

  • ❌ No tracing standard is part of the language: the trace and audit facilities are server configuration, and the PSQL text carries no trace hook (Y5)
  • ❌ No structured logging in the language: exceptions and the server’s firebird.log are the whole output surface, and no logging construct exists in PSQL (Y6)

1.3.4 Feedback

  • ❌ No editor analysis ships with the server: isql is the official interface, and code assistance lives in third-party tools (Y8)
  • ❌ No debugger ships with the engine: diagnosis goes through profiling output, exception messages, and logging tables the procedure itself must write (Y13)

1.3.5 Interop

  • ❌ No portable target: the block compiles in one engine’s parser, and nothing in the language runs without a Firebird server (Y10)

1.3.6 Governance

  • ❌ No public specification exists: the Language Reference documents the implemented behavior in detail, and no independent implementation follows from a published standard document (Y12)
  • ❌ Correctness is what the engine does: no conformance suite exists for PSQL, and the one implementation is the oracle (Y17)
  • βœ… The source is public and readable: the engine and the documentation build from public repositories under the IPL/IDPL, so the parser’s ground truth is inspectable (Y19)

1.4 Profile

Unscored, and kept separate from every score on purpose. The profile records what a mechanism price cannot express: what a running program costs, how well a coding model and an agent work in the language, and whether a safety-critical path exists.

1.4.1 Energy and cost

What this axis asks: what does a running program cost in energy and time?

  • ⚠️ Energy is the firebird process’s: page cache, sweep, and statement memory pay, and the reader’s levers are index and statement design the block exposes but does not control.

1.4.2 AI and agent readiness

What this axis asks: how well does a coding model and an agent work in this language?

  • ⚠️ Generated PSQL arrives in migration and admin tooling, and the traps are the procedural layer: SUSPEND placement, exception scope, and context variables that no generated snippet names.

1.4.3 Safety certification

What this axis asks: is there a certified or standards-qualified path to a safety-critical system?

  • ⚠️ No certified path; the engine’s transaction model (read consistency options in 5.0) and its security classes are the project’s, stated in its own documentation.

1.5 Scoring detail

1.5.1 Core coupling Dimensions

Dimension Mechanism Description Imposed by Present Weight
Type T1 dynamic no static check language β€” 0
T2 weak static language β€” 0
T3 dynamic/duck dispatch language β€” 0
T4 no sum types language β€” 0
T5 no generics language β€” 0
T6 no namespaces language β€” 0
T7 type erasure/reflection language β€” 0
T8 operator overloading language β€” 0
T9 inheritance required for polymorphism language β€” 0
T10 no null-safety language βœ… βˆ’8
T11 no module boundary language β€” 0
T12 no effect tracking language βœ… βˆ’8
T13 async/sync colouring language β€” 0
T14 unchecked foreign boundary language βœ… βˆ’4
T15 chars are encoding units language β€” 0
Type cost βˆ’5.7 (βˆ’20)
Construction C1 global mutable state by default language β€” 0
C2 no immutability by default language β€” 0
C3 constructors coupled to allocation language β€” 0
C4 no constructor/validation language β€” 0
C5 unpinned collection order language β€” 0
C6 aliasing by default language β€” 0
C7 undeclared control transfer language β€” 0
C8 no source-visible init order language β€” 0
Construction cost 0
Memory M1 manual deallocation runtime β€” 0
M2 GC non-deterministic pauses runtime β€” 0
M3 no RAII language β€” 0
M4 no ownership model language β€” 0
M5 uninitialized reads language β€” 0
M6 unchecked reinterpretation language β€” 0
Er6 uncatchable runtime fault language β€” 0
M7 reference cycles leak runtime β€” 0
Memory cost 0
Error Er1 no structured path language β€” 0
Er2 unchecked exceptions only language β€” 0
Er3 errors ignored/non-exhaustive language βœ… βˆ’4
Er4 no composable result type language βœ… βˆ’4
Er5 no isolation unit for a fault runtime β€” 0
Error cost βˆ’2.3 (βˆ’8)
Concurrency K1 GIL/no parallel runtime β€” 0
K2 shared mutable state default language βœ… βˆ’8
K3 manual sync no race detection runtime β€” 0
K4 no structured concurrency language β€” 0
K5 no primitives language β€” 0
K6 thread-per-task cost runtime β€” 0
Concurrency cost βˆ’2.3 (βˆ’8)
Platform P1 cannot function outside one vendor/domain context βœ… βˆ’15
P2 single-vendor but other uses context β€” 0
P3 legacy/discontinued platform context β€” 0
P4 poor domain fit context βœ… βˆ’8
Platform cost βˆ’6.6 (βˆ’23)

Core coupling score: 83.1/100 β€” 59 of the 350 inventory points are present, so the axis cost is 100 Γ— 59 Γ· 350 = 16.9 and the score is 100 βˆ’ 16.9. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

1.5.2 Ecosystem coupling Dimensions

Dimension Mechanism Description Imposed by Present Weight
Performance R1 interpreted no AOT/JIT runtime β€” 0
R2 GC pauses runtime β€” 0
R3 JIT warmup runtime β€” 0
Performance cost 0
Ecosystem Ec1 no package manager context β€” 0
Ec2 fragmented tooling context β€” 0
Ec3 small/niche/discontinued context βœ… βˆ’8
Ec4 proprietary context β€” 0
Ec5 platform-locked tooling context β€” 0
Ec6 monoculture context β€” 0
Ec7 legacy burden context β€” 0
Ec8 unpromised binary boundary context β€” 0
Ec9 unpromised data boundary context β€” 0
Ecosystem cost βˆ’3.1 (βˆ’8)
Evolution V1 breaking changes language β€” 0
V2 frozen context β€” 0
V3 discontinued context β€” 0
V4 glacial standards context β€” 0
V5 silent default drift runtime β€” 0
V7 build-variant state space context β€” 0
Evolution cost 0
Domain D1 domain/vendor lock-in context βœ… βˆ’15
D3 framework forces architecture context β€” 0
Domain cost βˆ’5.9 (βˆ’15)
Learning L1 steep context β€” 0
L2 large surface/multi-paradigm context β€” 0
L3 sparse docs context β€” 0
Learning cost 0
Syntax S1 verbose language β€” 0
S2 inconsistent language β€” 0
S3 punctuation-heavy language β€” 0
Syntax cost 0
Testing G1 weak tooling context βœ… βˆ’8
G2 poor debugging context β€” 0
G3 runtime-only errors context β€” 0
G4 no published monotonic clock runtime βœ… βˆ’4
Testing cost βˆ’4.7 (βˆ’12)
Security Q1 memory-unsafe language β€” 0
Q2 dynamic/weak typing risk language β€” 0
Q3 known vulnerability/injection context βœ… βˆ’8
Q4 silent integer overflow language β€” 0
Security cost βˆ’3.1 (βˆ’8)

Ecosystem coupling score: 83.2/100 β€” 43 of the 256 inventory points are present, so the axis cost is 100 Γ— 43 Γ· 256 = 16.8 and the score is 100 βˆ’ 16.8. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

1.5.3 Engineering readiness Dimensions

Dimension Mechanism Description Imposed by Present Weight
Reproducibility Y1 build not reproducible context β€” 0
Y2 dependencies not pinned context β€” 0
Y14 no toolchain version pin context βœ… βˆ’8
Y18 no machine-read project contract context β€” 0
Reproducibility cost βˆ’4.7 (βˆ’8)
Supply chain Y3 no signed provenance context βœ… βˆ’15
Y4 registry without namespacing context β€” 0
Y16 no advisory feed context βœ… βˆ’8
Supply chain cost βˆ’13.5 (βˆ’23)
Observability Y5 no stable tracing standard context βœ… βˆ’8
Y6 no structured logging context βœ… βˆ’4
Y15 no post-mortem diagnostics runtime β€” 0
Observability cost βˆ’7.0 (βˆ’12)
Feedback Y7 slow build context β€” 0
Y8 no fast in-editor analysis context βœ… βˆ’4
Y13 no bundled debugger context βœ… βˆ’8
Feedback cost βˆ’7.0 (βˆ’12)
Interop Y9 no foreign-function interface language β€” 0
Y10 no portable target context βœ… βˆ’4
Interop cost βˆ’2.3 (βˆ’4)
Governance Y11 single-vendor governance context β€” 0
Y12 closed specification context βœ… βˆ’15
Y17 no conformance mechanism context βœ… βˆ’8
Y19 no published parser context β€” 0
Governance cost βˆ’13.5 (βˆ’23)

Engineering readiness score: 52.0/100 β€” 82 of the 171 inventory points are present, so the axis cost is 100 Γ— 82 Γ· 171 = 48.0 and the score is 100 βˆ’ 48.0. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

Verdict: Firebird’s PSQL is the procedural SQL of a community-owned engine: EXECUTE BLOCK, stored procedures, functions, triggers, and packages over DECLARE, FOR SELECT … INTO … DO, SUSPEND, named EXCEPTIONs with WHEN … DO handlers, and EXECUTE STATEMENT for dynamic SQL, with the UDR engine binding compiled modules through EXTERNAL NAME declarations. Its costs are the engine family’s own: NULL in every domain, failures that travel only by exception, connection-wide session state, and a niche ecosystem with no conformance suite. Main strengths: profiling built into 5.0, one-volume documentation with worked examples, public source under community licenses, community governance with no vendor meter, and a release line (5.0.4, with 4.0 and 3.0 maintained in parallel) the project states plainly. Main weaknesses: no official IDE analysis or debugger, no standard test harness for user blocks, string-built dynamic SQL as the standing injection surface, and no specification an independent implementation could follow.


The formal development. The definitions, theorems, and proofs behind this page are published in:

  • On the Nature of Coupling: All Coupling as Shared Resource Access β€” Zenodo, 2026 β€” doi:10.5281/zenodo.21925122
  • Coupling as a Consequence of Cohesion: Decomposition, the Coupling Floor, and Domain-Imposed Coupling β€” Zenodo, 2026 β€” doi:10.5281/zenodo.21925201
  • On the Nature of Cohesion: Cohesion as Correctness Relative to a Partitioning Rule β€” Zenodo, 2026 β€” doi:10.5281/zenodo.21703193

All published papers

References

[1]
Y. Loth, β€œOn the nature of coupling: All coupling as shared resource access.” Zenodo, Aug. 2026. doi: 10.5281/zenodo.21925121.
[2]
Y. Loth, β€œCoupling as a consequence of cohesion: Decomposition, the coupling floor, and domain-imposed coupling.” Zenodo, Aug. 2026. doi: 10.5281/zenodo.21925201.
[3]
Y. Loth, β€œOn the nature of cohesion: Cohesion as correctness relative to a partitioning rule.” Zenodo, Jul. 2026. doi: 10.5281/zenodo.20492912.
[4]