File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33SuperStack supports PostgreSQL extensions, letting you add powerful
44features like cryptographic functions or JWT handling.
55
6- ## 🔌 Loading a Built-In Extension
7-
8- To load a standard extension (like pgcrypto), create a migration file such
9- as:
10-
11- ``` sql
12- -- File: postgres/migrations/01-extensions.sql
13-
14- create extension pgcrypto;
15- ```
16-
17- > ⚠️ ` create extension ` is non-transactional, so don’t wrap this in
18- > ` BEGIN/COMMIT ` .
19-
206## 🛠️ Building an Extension from Source
217
228Some extensions (like [ pgjwt] ( https://github.com/michelp/pgjwt ) ) must be
@@ -56,3 +42,14 @@ docker compose build postgres
5642```
5743
5844That’s it — the extension is now available to load in your migrations.
45+
46+ ## 🔌 Loading an Extension
47+
48+ To load a standard extension (like pgcrypto), create a migration file such as:
49+
50+ ``` sql title="postgres/migrations/01-extensions.sql"
51+ create extension pgcrypto;
52+ ```
53+
54+ > ⚠️ ` create extension ` is non-transactional, so don’t wrap this in
55+ > ` BEGIN/COMMIT ` .
You can’t perform that action at this time.
0 commit comments