On 10/5/20 7:22 AM, James B. Byrne wrote:


On Mon, October 5, 2020 10:18, Adrian Klaver wrote:
So as same user:

select uuid_generate_v4();

select public.uuid_generate_v4();

\dn+ public


[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 public.uuid_generate_v4();
            uuid_generate_v4
--------------------------------------
  87f70b3b-4dc5-4775-b8f7-b7a351e7b97b
(1 row)

idempiere=# \dn+ public
                               List of schemas
   Name  |  Owner   |      Access privileges       |      Description
--------+----------+------------------------------+------------------------
  public | postgres | postgres=UC/postgres        +| standard public schema
         |          | =UC/postgres                +|
         |


Per Tom's post this does not make sense.

What if you connect doing?:

psql --dbname=idempiere --username=idempiere_dbadmin

And specify the port(-p)

Cut out the sudo.


Then do:

select current_schemas(true);

select uuid_generate_v4();

select public.uuid_generate_v4();

--
Adrian Klaver
adrian.kla...@aklaver.com


Reply via email to