From: Michael Paquier <michael.paquier@gmail.com>
To: Raymond O'Donnell <rod@iol.ie>
Cc: Thiemo Kellner, NHC Barhufpflege <thiemo.kellner@gelassene-pferde.biz>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: Pgcrypto (PostgreSQL 10) on Debain 9?
Date: Wed, 7 Feb 2018 14:06:32 +0900
Message-ID: <20180207050632.GA1753@paquier.xyz> (raw)
In-Reply-To: <81228511-72f3-ab97-1402-61d4409b1bbf@iol.ie>
References: <20180206133742.17283hkc1u6gaew4@www.gelassene-pferde.biz>
<CABUevEy_cR_eg1jgf0241AL-h7h6xC715K8_7KGY_KhGbP9+Xg@mail.gmail.com>
<20180206142542.37157bn9dk8l0u0w@www.gelassene-pferde.biz>
<81228511-72f3-ab97-1402-61d4409b1bbf@iol.ie>
On Tue, Feb 06, 2018 at 03:58:14PM +0000, Raymond O'Donnell wrote:
> On 06/02/18 13:25, Thiemo Kellner, NHC Barhufpflege wrote:
>> But why do I get following error?
>> ERROR: function gen_random_uuid() does not exist.
>> create table ENTITY (ID uuid not null default gen_random_uuid());
>
> Only a guess, but maybe you need to install the extension first? -
>
> create extension <whatever>;
For gen_random_uuid(), you need to enable pgcrypto:
create extension pgcrypto;
For a couple of other UUID-related functions, you need to enable
uuid-ossp:
create extension "uuid-ossp";
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: michael.paquier@gmail.com, rod@iol.ie, thiemo.kellner@gelassene-pferde.biz
Subject: Re: Pgcrypto (PostgreSQL 10) on Debain 9?
In-Reply-To: <20180207050632.GA1753@paquier.xyz>
References: <20180206133742.17283hkc1u6gaew4@www.gelassene-pferde.biz> <CABUevEy_cR_eg1jgf0241AL-h7h6xC715K8_7KGY_KhGbP9+Xg@mail.gmail.com> <20180206142542.37157bn9dk8l0u0w@www.gelassene-pferde.biz> <81228511-72f3-ab97-1402-61d4409b1bbf@iol.ie> <20180207050632.GA1753@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox