Skip to content

Create extension#4

Open
kengruven wants to merge 4 commits into
olithissen:mainfrom
kengruven:main
Open

Create extension#4
kengruven wants to merge 4 commits into
olithissen:mainfrom
kengruven:main

Conversation

@kengruven

Copy link
Copy Markdown

I've never made a Postgres extension before, but I looked at a couple tutorials and it looks like all you need for a simple pure-SQL extension is:

  • a control file (telling it about the extension)
  • Makefile (telling it where to find the script)
  • a versioned SQL file (so updates can be cleanly released later)

I did this, typed "sudo make install" (which copied 2 files to my Postgres extensions folder), then ran "CREATE EXTENSION" in a new database, and all of the Suncalc functions were available to me there, so I guess I did something right.

I know there's some kind of test integration capability for extensions, presumably so it can automatically run the tests and compare the output, but I haven't figured those out yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant