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 1kPRrm-0008AJ-94 for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 14:53:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPRrl-0006QX-6s for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 14:53:29 +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 1kPRrk-0006QJ-VS for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 14:53:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPRri-0004gi-Mu for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 14:53:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 095ErKDN1721393; Mon, 5 Oct 2020 10:53:20 -0400 From: Tom Lane To: byrnejb@harte-lyne.ca cc: "Adrian Klaver" , pgsql-general@lists.postgresql.org Subject: Re: UUID generation problem In-reply-to: <13a362eba18fbef24f8170a3e0cd8a9f.squirrel@webmail.harte-lyne.ca> References: <271dfd309957472734a7aab8999659b1.squirrel@webmail.harte-lyne.ca> <86544317-8fa2-9193-6af2-6b6e5eab1cba@aklaver.com> <13a362eba18fbef24f8170a3e0cd8a9f.squirrel@webmail.harte-lyne.ca> Comments: In-reply-to "James B. Byrne" message dated "Mon, 05 Oct 2020 10:22:48 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1721391.1601909600.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 05 Oct 2020 10:53:20 -0400 Message-ID: <1721392.1601909600@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "James B. Byrne" writes: > idempiere=3D# 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=3D# select public.uuid_generate_v4(); > uuid_generate_v4 > -------------------------------------- > 87f70b3b-4dc5-4775-b8f7-b7a351e7b97b > (1 row) That seems to show quite definitively that public is not in your search_path, which contradicts the current_schemas() result you gave earlier. I continue to suspect that you are somehow confusing yourself by testing in different databases and/or with different user accounts. Possibly connected to this is that the "#" mark in your psql prompt implies that you are running as superuser. I sure hope you are not letting your application do that. regards, tom lane