ssk
SubSet Keys (SSK) - towards native M:N support and 5NF for SQL Databases
ssk · SubSet Keys (SSK) - towards native M:N support and 5NF for SQL Databases
Overview
Usage
Sources:
- Official upstream README
- Official extension control file (ssk.control)
- Official extension SQL (ssk–1.0.sql)
ssk — Note: PostgreSQL serves as host for the reference implementation for SSK, showcasing its universal applicability in a production database environment. While rooted in PostgreSQL, SSK’s concepts extend to any relational database. Use it when an application needs this specific database capability. Upstream describes it as a proof of concept.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
cardinality(ssk)is an extension function and returnsbigint.length(ssk)is an extension function and returnsbigint.size(ssk)is an extension function and returnsbigint.ssk()is an extension function and returnsssk.ssk(bigint)is an extension function and returnsssk.ssk(bigint[])is an extension function and returnsssk.ssk(integer)is an extension function and returnsssk.ssk(integer[])is an extension function and returnsssk.ssk_add(ssk, bigint)is an extension function and returnsssk.ssk_add(ssk, integer)is an extension function and returnsssk.ssk_add_comm(bigint, ssk)is an extension function and returnsssk.ssk_agg_finalfunc(bigint)is an extension function and returnsssk.ssk_agg_sfunc(bigint, bigint)is an extension function and returnsbigint.ssk_cmp(ssk, ssk)is an extension function and returnsint.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - The control file marks the extension as relocatable.
- Upstream describes the project as a proof of concept.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.