3 ms·
Development-wise they're completely different. Extensions are much easier / more isolated. Developing a pg extension is all about compiling some C code into a
by fforflo 2y ago
Development-wise they're completely different. Extensions are much easier / more isolated.
Developing a pg extension is all about compiling some C code into a .so object and dynamically using a templated Makefile to load it into the running Postgres process.
If you want some boilerplate to get you started I've been using this cookie-cutter template to bootstrap lots of extensions https://github.com/Florents-Tselai/cookiecutter-postgres-extension https://github.com/Florents-Tselai/cookiecutter-postgres-ext...
Demo walkthrough: https://www.youtube.com/watch?v=zVxY3ZmE5bU https://www.youtube.com/watch?v=zVxY3ZmE5bU
Contributing to core Postgres, it's an entirely different story.