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.

create pgcrypto extension by default for uuid support

See original GitHub issue

Right now, when a UUID column is created from console, console executes CREATE EXTENSION IF NOT EXISTS pgcrypto WITH SCHEMA public;

But if the user try to create a table with UUID column from run SQL or psql, as shown in this blog it will fail.

We should create the pgcrypto extension on graphql engine init step.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
shahidhkcommented, Sep 7, 2018

@jasonmorganson If you haven’t already done so, you can fix this issue by executing the following statement as a superuser:

CREATE EXTENSION IF NOT EXISTS pgcrypto;
1reaction
shahidhkcommented, Sep 6, 2018

Thanks for reporting this @jasonmorganson. We’re working on a fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set uuid-ossp as a default extension for whole server?
I installed uuid-ossp for the default PostgreSQL database (postgres) using the following sql commands but whenever I create a new database I ...
Read more >
Documentation: 15: CREATE EXTENSION - PostgreSQL
CREATE EXTENSION loads a new extension into the current database. ... new SQL objects such as functions, data types, operators and index support...
Read more >
Generate a UUID as PostgreSQL default value | by Shawn OY
This extension provides many functions to generate a UUID, support version 1, 3, 4 and 5, pgcrypto only generates a version 4 UUID,...
Read more >
How to use a uuid as default ID with postgres? - Stack Overflow
The pgcrypto extension provides a function for creating random uuids as well. CREATE EXTENSION IF NOT EXISTS pgcrypto; CREATE TABLE my_table ( ...
Read more >
Need a UUID generator for Postgres? Here are two ... - Arctype
In this article, you'll learn about Postgres UUIDs and how to generate them with examples from ... To install pgcrypto extension, use the...
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