Re: Pgcrypto (PostgreSQL 10) on Debain 9?

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Pgcrypto (PostgreSQL 10) on Debain 9?
Дата
Msg-id 20180207050632.GA1753@paquier.xyz
обсуждение исходный текст
Ответ на Re: Pgcrypto (PostgreSQL 10) on Debain 9?  (Raymond O'Donnell <rod@iol.ie>)
Список pgsql-general
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

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Jeremy Finzel
Дата:
Сообщение: Re: Alter table set logged hanging after writing out all WAL
Следующее
От: Shreeyansh Dba
Дата:
Сообщение: Re: Fwd: postgres instalation