Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable all supported extensions #91

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mnahkies
Copy link

What kind of change does this PR introduce?

Enables all supported extensions from https://pglite.dev/extensions/

What is the current behavior?

See #82

What is the new behavior?

It can now successfully create schemas / run queries that make use of extensions.

Screenshot from 2024-08-24 13-03-56
Screenshot from 2024-08-24 13-04-03

Additional context

I didn't add a migration to CREATE EXTENSION ... like is present for pgvector as I observed that the AI was able to figure out this is needed and do so on demand, which seems better.

There doesn't seem to be much overhead from doing this, but YMMV.

Copy link
Collaborator

@gregnr gregnr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks @mnahkies! This looks good, but I'm going to wait on merging this until we sort out some details with deployments. We are looking into the ability to deploy in-browser databases to the cloud and want to make sure that the cloud environment is also going to support these extensions.

apps/postgres-new/lib/db/worker.ts Show resolved Hide resolved
apps/postgres-new/lib/db/worker.ts Outdated Show resolved Hide resolved
@mnahkies mnahkies requested a review from gregnr August 30, 2024 07:12
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.

2 participants