From: James B. Byrne <byrnejb@harte-lyne.ca>
To: pgsql-general@lists.postgresql.org
Subject: UUID generation problem
Date: Fri, 2 Oct 2020 18:08:57 -0400
Message-ID: <271dfd309957472734a7aab8999659b1.squirrel@webmail.harte-lyne.ca> (raw)
I have a FreeBSD-12.1p10 system running postgreSQL-11.8. This is a test
platform for Idempiere. When creating a new client in Idempiere I get this
error message:
** org.postgresql.util.PSQLException: ERROR: function uuid_generate_v4() does
not exist Hint: No function matches the given name and argument types. You
might need to add explicit type casts. Where: PL/pgSQL function generate_uuid()
line 3 at RETURN
This usually means that the uuid-ossp extension is not active in the database.
However, I previously installed this and psql shows that it is present:
sudo -u postgres psql --dbname=idempiere
psql (11.8)
Type "help" for help.
idempiere=# \dx
List of installed extensions
Name | Version | Schema | Description
-----------+---------+------------+-------------------------------------------------
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
uuid-ossp | 1.1 | public | generate universally unique identifiers
(UUIDs)
The owner of the idempiere database is idempiere_dbadmin and this is the user
that is attempting to generate the UUID.
idempiere=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype |
Access privileges
---------------------+-------------------+----------+---------+-------+-----------------------
idempiere | idempiere_dbadmin | UTF8 | C | C |
What is the problem?
--
*** e-Mail is NOT a SECURE channel ***
Do NOT transmit sensitive data via e-Mail
Unencrypted messages have no legal claim to privacy
Do NOT open attachments nor follow links sent by e-Mail
James B. Byrne mailto:ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3
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: byrnejb@harte-lyne.ca
Subject: Re: UUID generation problem
In-Reply-To: <271dfd309957472734a7aab8999659b1.squirrel@webmail.harte-lyne.ca>
References: <271dfd309957472734a7aab8999659b1.squirrel@webmail.harte-lyne.ca>
* 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