From: Adrian Klaver <adrian.klaver@aklaver.com>
To: byrnejb@harte-lyne.ca
Cc: pgsql-general@lists.postgresql.org
Subject: Re: UUID generation problem
Date: Fri, 2 Oct 2020 17:17:11 -0700
Message-ID: <4408c8b2-c253-8087-5450-ab153b58a2ae@aklaver.com> (raw)
In-Reply-To: <21a417875813640de5c5af38cae410bf.squirrel@webmail.harte-lyne.ca>
References: <271dfd309957472734a7aab8999659b1.squirrel@webmail.harte-lyne.ca>
<86544317-8fa2-9193-6af2-6b6e5eab1cba@aklaver.com>
<21a417875813640de5c5af38cae410bf.squirrel@webmail.harte-lyne.ca>
On 10/2/20 5:08 PM, James B. Byrne wrote:
>
>
> On Fri, October 2, 2020 18:14, Adrian Klaver wrote:
>
>>
>> Per comment over at SO, have you run uuid_generate_v4()/generate_uuid().
>> in psql to see if it is there and works?
>>
>
> [root@accounting-2 ~ (master)]# sudo -u postgres psql --dbname=idempiere
> --username=idempiere_dbadmin
> Password for user idempiere_dbadmin:
> psql (11.8)
> Type "help" for help.
>
> idempiere=# select uuid_generate_v4();
> ERROR: function uuid_generate_v4() does not exist
> LINE 1: select uuid_generate_v4();
> ^
> HINT: No function matches the given name and argument types. You might need to
> add explicit type casts.
> idempiere=# select uuid_generate();
> ERROR: function uuid_generate() does not exist
> LINE 1: select uuid_generate();
> ^
> HINT: No function matches the given name and argument types. You might need to
> add explicit type casts.
> idempiere=#
>
>
So per Tom's post:
What does:
show search_path;
return?
Also what does:
select public.uuid_generate_v4();
do?
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, byrnejb@harte-lyne.ca
Subject: Re: UUID generation problem
In-Reply-To: <4408c8b2-c253-8087-5450-ab153b58a2ae@aklaver.com>
References: <271dfd309957472734a7aab8999659b1.squirrel@webmail.harte-lyne.ca> <86544317-8fa2-9193-6af2-6b6e5eab1cba@aklaver.com> <21a417875813640de5c5af38cae410bf.squirrel@webmail.harte-lyne.ca> <4408c8b2-c253-8087-5450-ab153b58a2ae@aklaver.com>
* 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