Re: UUID generation problem

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: byrnejb(at)harte-lyne(dot)ca, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: UUID generation problem
Date: 2020-10-02 22:14:19
Message-ID: 86544317-8fa2-9193-6af2-6b6e5eab1cba@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/2/20 3:08 PM, James B. Byrne wrote:
> 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?

Per comment over at SO, have you run uuid_generate_v4()/generate_uuid().
in psql to see if it is there and works?

>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2020-10-02 22:46:15 Re: UUID generation problem
Previous Message James B. Byrne 2020-10-02 22:08:57 UUID generation problem