News for hackers. Stuff that matters.
Re:dbdev - The Database Package Manager for PostgreSQL Trust... by foreigner on Friday April 14, 2023 @12:50PM (#35571665)
Can I use this on AWS RDS?
Re:dbdev - The Database Package Manager for PostgreSQL Trust... by oliverrice on Friday April 14, 2023 @12:59PM (#35571788)
RDS does have the underlying native extension that is required to install user defined packages (pg_tle) from database.dev. It doesn't currently have support for the extension that is necessary to make the in-database client work to install packages directly from the registry.

That's great feedback though: We'll add a new page to the website for each package that provides the snippet you can run on an RDS instance to load the extension and then run `create extension`.

We're also in talks with RDS team and experimenting with a few options that would allow users to query the registry directly. The most promising one we have found so far is using AWS Lambda with RDS's aws_lambda extension to do that http part, and pass the contents back to the database. Still a WIP though!

Re:dbdev - The Database Package Manager for PostgreSQL Trust... by paulddraper on Friday April 14, 2023 @12:52PM (#35571698)
No.

RDS has a strict list of approved extensions. (Since AWS is on the hook for the system stability, security, replication, etc.)

Re:dbdev - The Database Package Manager for PostgreSQL Trust... by supamichelp on Friday April 14, 2023 @12:57PM (#35571771)
RDS for Postgres 14+ does come with pg_tle, but it does not come with pgsql-http, so you cannot use the dbdev installer. But, you can still install TLEs, you just have to do so "by hand" by calling `pgtle.install_extension()` yourself, probably from a migration script depending on your tooling.

See the RDS docs here: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Postg...

Re:dbdev - The Database Package Manager for PostgreSQL Trust... by samwillis on Friday April 14, 2023 @12:59PM (#35571793)
Partially correct, this doesn't work with RDS as you can't install pgsql-http (a requirement for automatic install). However all the extensions listed are "Trusted Language Extensions for PostgreSQL" which was developed by AWS to enable installing extensions written in "Safe" languages. So I believe that all the extensions listed could be installed manually.

https://github.com/aws/pg_tle

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Postg...

Re:dbdev - The Database Package Manager for PostgreSQL Trust... by paulddraper on Friday April 14, 2023 @01:29PM (#35572174)
Oh cool!