[RFC on language-extensions]: plperlu / plpython3u extensions, structural fit?

Aperta
#396 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
go, perl, postgresql, python
Ambito
databases

Direzione di ricerca

Start by reading the Extensions Requirements and the existing PostgreSQL language extension implementation to see how extensions are organized into image containers. Compare that structure with the listed plperl and plpython3u package files, then decide whether language and datatype conversion extensions can fit the project’s requirements. Done means the CNPG team has a clear approach for supporting these language extensions.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I am finding myself needing to implement a CNPG installation with plperlu and plpython3u language support.

Based on https://github.com/cloudnative-pg/cloudnative-pg/issues/9487#issuecomment-3669351028 , I believe the preferred canonical solution would be to implement these as extensions-containers shipped extensions.

However, looking at the implementation of the postgres language extensions, I am unsure the Extensions Requirements, as quoted are a good fit.

Namely, the structure of a postgres language extension does not fit the 'one extension per folder' structural requirement, as language extensions actually ship multiple extensions:

  • The language implementation itself
  • Datatype conversion extensions (sample filelist at end)

Given the conflict in extensions-containers' requirements, and how language extensions ship, I think I may be left with going back to building personalized base container images, as I do not think shipping multiple ImagePlugins per language would really be a good idea. What are the CNPG team's thoughts on this sort of situation?

Extension bundling example:

$ dpkg -L postgresql-plperl-18 postgresql-plpython3-18 | grep /usr/share/postgresql/18/extension | grep -vE 'extension$'
/usr/share/postgresql/18/extension/bool_plperl--1.0.sql
/usr/share/postgresql/18/extension/bool_plperl.control
/usr/share/postgresql/18/extension/bool_plperlu--1.0.sql
/usr/share/postgresql/18/extension/bool_plperlu.control
/usr/share/postgresql/18/extension/hstore_plperl--1.0.sql
/usr/share/postgresql/18/extension/hstore_plperl.control
/usr/share/postgresql/18/extension/hstore_plperlu--1.0.sql
/usr/share/postgresql/18/extension/hstore_plperlu.control
/usr/share/postgresql/18/extension/jsonb_plperl--1.0.sql
/usr/share/postgresql/18/extension/jsonb_plperl.control
/usr/share/postgresql/18/extension/jsonb_plperlu--1.0.sql
/usr/share/postgresql/18/extension/jsonb_plperlu.control
/usr/share/postgresql/18/extension/plperl--1.0.sql
/usr/share/postgresql/18/extension/plperl.control
/usr/share/postgresql/18/extension/plperlu--1.0.sql
/usr/share/postgresql/18/extension/plperlu.control
/usr/share/postgresql/18/extension/hstore_plpython3u--1.0.sql
/usr/share/postgresql/18/extension/hstore_plpython3u.control
/usr/share/postgresql/18/extension/jsonb_plpython3u--1.0.sql
/usr/share/postgresql/18/extension/jsonb_plpython3u.control
/usr/share/postgresql/18/extension/ltree_plpython3u--1.0.sql
/usr/share/postgresql/18/extension/ltree_plpython3u.control
/usr/share/postgresql/18/extension/plpython3u--1.0.sql
/usr/share/postgresql/18/extension/plpython3u.control
Lingua principale
Go
Stelle
58
Fork
43
Merge medio
1g 10h
PR unite (30g)
27

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cloudnative-pg/postgres-extensions-containers

Tutte le issue di cloudnative-pg/postgres-extensions-containers

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.