Skip to content
New issue

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

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

Already on GitHub? # to your account

How to solve issue when extensions aren't in public #43

Closed
archlemon opened this issue Oct 28, 2019 · 0 comments
Closed

How to solve issue when extensions aren't in public #43

archlemon opened this issue Oct 28, 2019 · 0 comments

Comments

@archlemon
Copy link
Contributor

To fix the issue where your pgcrypto extension is install in a different schema to public, you can create an alias function; replacing YOUR_SCHEMA with the schema you've installed the extension into.

create function public.gen_random_uuid() returns uuid as $$
  select YOUR_SCHEMA.gen_random_uuid();
$$ language sql;
@benjie benjie closed this as completed Oct 28, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants