pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: andreas.dijkman@cygnis.nl
Subject: BUG #17349: Function gen_random_uuid duplicates in pgcrypto and core
Date: Tue, 28 Dec 2021 16:31:15 +0000
Message-ID: <17349-24d61e214429e8c1@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17349
Logged by:          Andreas Dijkman
Email address:      andreas.dijkman@cygnis.nl
PostgreSQL version: 14.1
Operating system:   Oracle Linux 8
Description:        

As stated in
https://www.postgresql.org/docs/current/pgcrypto.html#id-1.11.7.35.10, the
function gen_random_uuid is now part of core PostgreSQL. Shouldn't this
function be removed from the pgcrypto-extension as of PostgreSQL 13?
I'm installing this extension in a PostgreSQL 14.1 database on Oracle Linux
8 (I think this is valid for every OS with every version of PostgreSQL 13
and up).

If you install the pgcrypto-extension in the pg_catalog-schema (yes, I'm
aware if installing it in public the error doesn't occur) you get an
error:
postgres=# create database testdb;
CREATE DATABASE
postgres=# \c testdb
You are now connected to database "testdb" as user "postgres".
testdb=# create extension pgcrypto schema pg_catalog;
ERROR:  function "gen_random_uuid" already exists with same argument types

If you install the pgcrypto-extension in the public-schema, the function
gen_random_uuid probably never gets used because the same function in
pg_catalog (probably) has precedence by default.



view thread (8+ messages)  latest in thread

Message-ID: <17349-24d61e214429e8c1@postgresql.org>
Permalink:  ../17349-24d61e214429e8c1@postgresql.org/
Also on:    postgresql.org/message-id/17349-24d61e214429e8c1@postgresql.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, andreas.dijkman@cygnis.nl
  Subject: Re: BUG #17349: Function gen_random_uuid duplicates in pgcrypto and core
  In-Reply-To: <17349-24d61e214429e8c1@postgresql.org>

* 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