question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve docs for enabling extensions

See original GitHub issue

Improve documentation

Link

Extensions

Describe the problem

The documentation provides an example of how to enable extensions via SQL: create extension pgtap;

However, there seem to be 2 issues with this example:

  • In order to ensure that the extension is installed in the extensions schema, the statement should be create extension pgtap with schema extensions;
  • Enabling some extensions using the statement above leads to permission issues (e.g. dblink, http, pg_cron). More specifically:
    • The extensions CANNOT be enabled with the postgres users, because this leads to the following error: Query 1: ERROR: permission denied to create extension "plpgsql_check" HINT: Must be superuser to create this extension.

    • If the extensions are enabled via the Dashboard query editor (which uses the supabase_admin role), the enabling succeeds, however, other roles (e.g. postgres) cannot use the extensions;

    • NOTE: this does NOT seem to be a problem with all extensions. For example pgtap can be installed with the postgres user (which, unlike the extensions listed above as problematic, has NO native code as far as I know);

Describe the improvement

I think there need to be 2 improvements addressing both issues above:

  • specify the extensions schema in the example;
  • document which users to use when enabling extensions OR specify how to enable extensions with supabase_admin and still allow other roles to have access to extensions;

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
chipilovcommented, Feb 8, 2022

@yeganathan18 Added a couple of comments to the patch.

1reaction
Isaiah-Hamiltoncommented, Jan 31, 2022

@yeganathan18 go for it 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extending Google Docs with Add-ons | Apps Script
Here are a few things you can do with an add-on that extends Google Docs: You can read, edit, visualize, and format text...
Read more >
Install and manage extensions - Chrome Web Store Help
Manage your extensions · Turn on/off: Turn the extension on or off. · Allow incognito: On the extension, click Details. Turn on Allow...
Read more >
` - Google Addons and Extensions
Add-ons are scripts that run inside Google Sheets, Docs, Slides, and Forms, but they're built by users. Google Extensions: Extensions are mini programs...
Read more >
How to Install and Remove Google Docs Add-Ons
Google Docs add-ons operate similarly to Chrome extensions. ... Check out some of our recommended Google Workspace add-ons to improve productivity and boost...
Read more >
25 Best Google Docs Add-Ons and Extensions for 2021
For a free word processor, it's hard to get much better than Google Docs. You can write an article (like this one), create...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found