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