From: | "James B(dot) Byrne" <byrnejb(at)harte-lyne(dot)ca> |
---|---|
To: | "Adrian Klaver" <adrian(dot)klaver(at)aklaver(dot)com> |
Cc: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: UUID generation problem |
Date: | 2020-10-05 19:30:01 |
Message-ID: | 824f001d62c338ee20dbfc7483fd2860.squirrel@webmail.harte-lyne.ca |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, October 5, 2020 15:20, Adrian Klaver wrote:
>
> The uuid-extension needs to be installed by a super user:
>
. . .
>
> So postgres is probably as good as any.
>
> I was just pointing out that what you posted earlier:
>
> 2000 2020-09-11 16:15:17: psql -d idempiere -U adempiere -c 'CREATE
> EXTENSION
> "uuid-ossp"'
>
> 2001 2020-09-11 16:17:08: su idempiere -c" psql -d idempiere -U
> adempiere -c
> 'CREATE EXTENSION "uuid-ossp"
>
>
> does not match what you showed for the actual installed code:
>
>
> idempiere=# \df+ uuid_generate_v4
>
> List
> of
> functions
> Schema | Name | Result data type | Argument data types |
> Type |
> Volatility | Parallel | Owner | Security | Access privileges |
> Language |
> Source code | Description
> --------+------------------+------------------+---------------------+------+------------+----------+----------+----------+-------------------+----------+------------------+-------------
> public | uuid_generate_v4 | uuid | |
> func |
> volatile | safe | postgres | invoker | | c |
> uuid_generate_v4 |
>
> NOTE: Owner = postgres.
>
>
>
Ah, I copied the wrong line from the history display.
I am so confused by this. I tried to do this:
[root(at)accounting-2 ~ (master)]# psql -E --dbname=idempiere
--username=idempiere_dbadmin --host=localhost
Password for user idempiere_dbadmin:
psql (11.8)
Type "help" for help.
idempiere(5432)=# alter role "idempiere-dbadmin" set search_path = 'adempiere,
pg_catalog, public';
ERROR: role "idempiere-dbadmin" does not exist
idempiere(5432)=#
If the role idempiere-dbadmin does not exist then how did I connect to the
idempiere database?
--
*** 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(at)Harte-Lyne(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2020-10-05 19:33:24 | Re: Writing WAL files |
Previous Message | Robert Inder | 2020-10-05 19:23:49 | Re: Writing WAL files |