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 1kPTpT-00044l-Qn for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 16:59:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPTpR-0006Yr-QW for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 16:59:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPTpR-0006Yj-JE for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 16:59:13 +0000 Received: from mx32.harte-lyne.ca ([216.185.71.32]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPTpO-0006L5-26 for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 16:59:12 +0000 Received: from mx32.harte-lyne.ca (localhost [127.0.32.1]) by mx32.harte-lyne.ca (Postfix) with ESMTP id D19BC5B881; Mon, 5 Oct 2020 12:59:07 -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 QlmE87VrcbOg; Mon, 5 Oct 2020 12:59:05 -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 1277B5B876; Mon, 5 Oct 2020 12:59:05 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1601917145; bh=k3VSd3Gu+8ZybnuM4+SiTGYEz8oa3Nh7PlXsKf9T63M=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=xJvpnedy9uswvZIg3QXH6L32r5RNGkRN23U905iZV/06R6aEKcBfrPCKYya4H3Db3 bwV4r9ZZdNleIyQzAwkt7fMresaU3vJv8vBY1JMV/1FmIGpH6b9cwJX0qZjgDdnQEU kbxL0PUdAD2FCpyBQRpXloDrT4Hmm/6unL8BiuFlF5r3A0fJPI6HIVdhJvGitTLT1R GxqNJf1mtq5yEnGtq3ZRxRKGs9+Td2u74yLf1lRB3by7881L7oYrW6qJHp3+3VfEm2 OyJrngLjaFMFqc69REUL+Pe7OjiYmNg6IQDCw/vKZ43bqlCdgbJMea5Y3hU1Zp6dAs expwKX23wNHtg== Received: from 216.185.71.41 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Mon, 5 Oct 2020 12:59:05 -0400 Message-ID: <403a14de3dc784c868813d275b938866.squirrel@webmail.harte-lyne.ca> In-Reply-To: <1778495.1601916688@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> <1778495.1601916688@sss.pgh.pa.us> Date: Mon, 5 Oct 2020 12:59:05 -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:51, Tom Lane wrote: > "James B. Byrne" writes: >> [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) > > Well, at least here we have consistent results: "public" is not in > your search_path. (Presumably, "show search_path" would confirm > that.) The question is what did you do differently before that > led to the other current_schemas result? If the *only* difference > is whether you use --host=localhost or not, it's hard to conclude > anything but that you're connecting to two different databases. > I don't quite see how that could be, with only one postmaster on > the machine, but maybe it's time to wonder about rogue connection > poolers or the like. specifying the connection host does not change the observed behaviours. > > It might be worth poking into the pg_db_role_setting catalog, > which is the most likely source of a different search_path for > different connections. It seems so: idempiere=# SELECT * FROM pg_db_role_setting; setdatabase | setrole | setconfig -------------+---------+--------------------------------------- 0 | 21328 | {"search_path=adempiere, pg_catalog"} (1 row) > > Another line of thought is maybe you have a ~/.psqlrc that's > altering the search_path setting. > Up until 5 minutes ago I did not have a ~/.psqlrc file. And there is no system psqlrc file. -- *** 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