Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPTWN-0003Ok-Kh for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 16:39:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPTWM-00067S-Gf for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 16:39:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPTWM-00067L-7X for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 16:39:30 +0000 Received: from mx32.harte-lyne.ca ([216.185.71.32]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPTWJ-0005b3-Mh for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 16:39:29 +0000 Received: from mx32.harte-lyne.ca (localhost [127.0.32.1]) by mx32.harte-lyne.ca (Postfix) with ESMTP id 48F5C5B81E; Mon, 5 Oct 2020 12:39:26 -0400 (EDT) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from mx32.harte-lyne.ca ([127.0.32.1]) by mx32.harte-lyne.ca (mx32.harte-lyne.ca [127.0.32.1]) (amavisd-new, port 10024) with ESMTP id U4zwCsOfTerW; Mon, 5 Oct 2020 12:39:24 -0400 (EDT) Received: from webmail.harte-lyne.ca (webmail.hamilton.harte-lyne.ca [216.185.71.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx32.harte-lyne.ca (Postfix) with ESMTPSA id 930365B813; Mon, 5 Oct 2020 12:39:23 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1601915963; bh=2LfwHJLzsq9+9G7F3mMhvriCopqV/eAObyXQwbA7DW4=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=QvY1Hb7Gx3TvrXgOSgUyrF9b8UKoDGnyCPHOO4bwhyFqVZSF0GhV52MRin2KzU0o/ lGuoPad7KDYCqZwHa3wqi1TyLLebdqogaXbVkv8XdOt7eDzrlAIgVOvPwrBw4bKTxL o9G/P78JjVKg78NvcX2OeQCVaz2A1R+e7l+NpPvd+82MRS725yQ0AcFiG3TMSZZr1o 3vrB5gdn6+Arys1avpXWtmfUpxJP5r/CW0W4P5YGURf1QZs6900QmUyHcY2BCfLgbS z5FjjDy1VtHaZvqD+ICmiKu6ylmR0Lx2gCRtNMQOMj1t6WUZfecK7LXoVKsW2/ybmg z/obwyyNEvI9A== Received: from 216.185.71.41 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Mon, 5 Oct 2020 12:39:23 -0400 Message-ID: In-Reply-To: <1732745.1601914016@sss.pgh.pa.us> References: <271dfd309957472734a7aab8999659b1.squirrel@webmail.harte-lyne.ca> <86544317-8fa2-9193-6af2-6b6e5eab1cba@aklaver.com> <13a362eba18fbef24f8170a3e0cd8a9f.squirrel@webmail.harte-lyne.ca> <1721392.1601909600@sss.pgh.pa.us> <1732745.1601914016@sss.pgh.pa.us> Date: Mon, 5 Oct 2020 12:39:23 -0400 Subject: Re: UUID generation problem From: "James B. Byrne" To: "Tom Lane" Cc: "Adrian Klaver" , pgsql-general@lists.postgresql.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, October 5, 2020 12:06, Tom Lane wrote: > "James B. Byrne" writes: >> On Mon, October 5, 2020 10:53, Tom Lane wrote: >>> I continue to suspect that you are somehow >>> confusing yourself by testing in different databases and/or >>> with different user accounts. > >> Possibly. I do not make any definitive claims at this point. However, the >> application properties of the DB connection are: > >> Connection=xyzCConnection[name\=accounting.harte-lyne.ca >> {localhost-idempiere-idempiere_dbadmin}, >> AppsHost\=accounting.harte-lyne.ca, >> WebPort\=8080, >> SSLPort\=8443, >> type\=PostgreSQL, >> DBhost\=localhost, >> DBport\=5432, >> DBname\=idempiere, >> BQ\=false, >> FW\=false, >> FWhost\=, >> FWport\=0, >> UID\=idempiere_dbadmin, >> PWD\=xxxxxxxxxxxxxxxx] > > Hm, is "UID" really how they spell "database user name"? Doesn't seem > terribly consistent with the other field names you show here. That is extracted directly from the properties file created by the install process, excepting that the password has been edited. > >> [root@accounting-2 ~ (master)]# psql --dbname=idempiere >> --username=idempiere_dbadmin > > psql, by default, is going to try to connect to a Unix socket. > I wonder if you've got two postmasters on that machine and the > other one is what's answering TCP port 5432. . . I see only one master process [root@accounting-2 ~ (master)]# ps -auwx | grep postgres postgres 19108 0.0 0.2 177972 30540 - IsJ 11:58 0:00.01 postgres: idempiere_dbadmin idempiere 127.0.88.1(52228) (postgres) postgres 19109 0.0 0.2 178608 36876 - IsJ 11:58 0:00.03 postgres: idempiere_dbadmin idempiere 127.0.88.1(52229) (postgres) postgres 19110 0.0 0.3 182712 51688 - IsJ 11:58 0:00.09 postgres: idempiere_dbadmin idempiere 127.0.88.1(52230) (postgres) postgres 20028 0.0 0.2 178676 37624 - IsJ 12:18 0:00.03 postgres: idempiere_dbadmin idempiere 127.0.88.1(22758) (postgres) postgres 20029 0.0 0.2 178728 36784 - IsJ 12:18 0:00.03 postgres: idempiere_dbadmin idempiere 127.0.88.1(22759) (postgres) postgres 68949 0.0 0.2 175504 34656 - IsJ Fri18 0:00.85 postgres: checkpointer (postgres) postgres 68950 0.0 0.1 175468 23420 - SsJ Fri18 0:00.82 postgres: background writer (postgres) postgres 68951 0.0 0.1 175468 23416 - SsJ Fri18 0:01.48 postgres: walwriter (postgres) postgres 68952 0.0 0.1 175800 23800 - SsJ Fri18 0:04.95 postgres: autovacuum launcher (postgres) postgres 68953 0.0 0.1 32012 14076 - SsJ Fri18 0:18.87 postgres: stats collector (postgres) postgres 68954 0.0 0.1 175644 23644 - IsJ Fri18 0:00.08 postgres: logical replication launcher (postgres) root 20522 0.0 0.0 11348 2216 2 S+J 12:32 0:00.00 grep --color=auto postgres postgres 68947 0.0 0.1 175468 23408 2 SJ Fri18 0:19.13 /usr/local/bin/postgres -D /var/db/postgres/data11 [root@accounting-2 ~ (master)]# service postgresql status pg_ctl: server is running (PID: 68947) /usr/local/bin/postgres "-D" "/var/db/postgres/data11" >. . . You might try > explicitly saying "--host=localhost" here. > > regards, tom lane > [root@accounting-2 ~ (master)]# psql --dbname=idempiere --username=idempiere_dbadmin --host=localhost Password for user idempiere_dbadmin: psql (11.8) Type "help" for help. idempiere=# select current_schemas(true); current_schemas ------------------------ {adempiere,pg_catalog} (1 row) 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 -------------------------------------- 5ba19b69-ec8e-4d8e-8968-7c84eccc4351 (1 row) -- *** 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@Harte-Lyne.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