Search Postgresql Archives

Re: UUID generation problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.klaver@xxxxxxxxxxx





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux