pgwtc
Dataset and counterpoint-analysis tools for Bach’s Well-Tempered Clavier fugues.
pgwtc · Dataset and counterpoint-analysis tools for Bach’s Well-Tempered Clavier fugues.
Overview
| Relationships | |
|---|---|
| Requires | ly2pg |
Usage
Sources:
- Official upstream README
- Official extension control file (pgwtc.control)
- Official extension SQL (pgwtc–0.1.sql)
pgwtc — This directory contains two extensions for PostgreSQL 17:. Use it when an application needs this specific database capability. Its extension dependencies must be installed and validated first.
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
lilypond_book_subjects()is an extension function and returnsSETOF.lilypond_voice(src text , vox vox , start_id int DEFAULT NULL , max_count bigint DEFAULT NULL , add_key boolean DEFAULT false , add_time boolean DEFAULT false , add_clef boolean DEFAULT false , add_rest boolean DEFAULT false)is an extension function and returnstext.answeris an extension-defined type.notes_prettyis an extension-defined view.subject_occurrencesis an extension-defined view.subject_occurrences_prettyis an extension-defined view.subject_patternsis an extension-defined view.subjectsis an extension-defined view.subjects_prettyis an extension-defined view.metadatais a table installed or managed by the extension.notesis a table installed or managed by the extension.
Requirements and Caveats
- The reviewed control file declares default version
0.1. - Install the confirmed extension dependencies first:
ly2pg. - The control file marks the extension as non-relocatable.
- The control file does not require superuser-only installation.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.