Vonng / pigsty

Free RDS for PostgreSQL —— Pigsty
https://pigsty.io
GNU Affero General Public License v3.0
3.39k stars 259 forks source link

New Extension: `pg_graphql` #313

Closed Vonng closed 1 year ago

Vonng commented 1 year ago

The extension pg_graphql introduce GraphQL capability to PostgreSQL, which is also required by supabase.

We can compile it and add it to Pigsty's RPM to allow installing it via yum

This extension is written in rust, which cloud be a little bit tricy, but we can manage that:

https://supabase.github.io/pg_graphql/installation/

curl --proto '=https' --tlsv1.2 -sf https://sh.rustup.rs | sh
cargo install --locked cargo-pgrx@0.9.8
cargo pgrx init

#....

cd pg_graphql-1.3.0/
cargo pgrx install --release

cargo pgrx package
Vonng commented 1 year ago

Resolved by https://github.com/Vonng/pigsty/commit/a032b4a10f537c7900d0b1362a848bbb5efefe5b