Skip to content

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

Closed
@archlemon

Description

@archlemon

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions