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 1kPT25-0002O2-Of for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 16:08:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPT24-0004fD-Ox for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 16:08:12 +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 1kPT24-0004f6-Hy for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 16:08:12 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPT22-0005Gk-47 for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 16:08:11 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 44EDD5C0110; Mon, 5 Oct 2020 12:08:09 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 05 Oct 2020 12:08:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=G QVPh5nhOChXTgN0iDZvYjgr+fvvYO9AzZQ31gHytks=; b=avmCXiN/vO0DwFO6C QNK4J5s5v6GnakKpRZEnozs+JyjOS4jNpSyfiG/ETqZwSt+ogNzYmL9ZKDx5OAuj cr8Zw7H23cPysm4Htk6eTH4S2ohHWgRTWYjq17j7gc6R5D9YlBbyu7zG1Ma4gJ3o PeaQOxlp6AxTHRR6KoMi+ggCu7NYYZX03si1vOKgye53AVPRmaE79RWAxZJUwquN rtyVO3gDiWJIeT/Uui5rxwoS3LXal+Nxp6SGm3VLp7iB4P4OcVkrItky7Cu7Jir2 E84ujZUvM2nieizBRF3SVKuGOj+IbxHtqXkkLa/B+frtXP7ZpHMjoR9351naEiDl xKQkQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=GQVPh5nhOChXTgN0iDZvYjgr+fvvYO9AzZQ31gHyt ks=; b=WpOPNxEDFU5mcug9MmBq6ajv8e8GE9fmunsX/b3Gu86FqHdM6cYfTRujP TnK/UpDjeFrd+bvMIadEBx+1VPE143xqb9l/ziV5cZe1TvZXc/0xtZjdeulJ1AXw iBLOspVRRjBhSW7zOvH378sUKSuJCq3v3PDzQy9AJDrIUwYwWdWSYclgEFnGLN/w 2RRWaaATPJ/taA+1AFzRH8sB5qKqYQ54DQJtwPUZcyGpPeKH5nGupbi9YwACJTnj 1UPMwN0oYQAigSgNlritsj5Q6DbiJkER1rPshwxrIKWotR8hIHkiNr7mqmNJSZ9i GCOanSqRljWDmJFQ6M8unbFLQNnPg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrgedvgdellecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeetjedvteffje euvdelieeffeehuedthffgvdfhhffhkedvudevgedvjedufefgveenucfkphepjeehrddu jedvrdehrddvfedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 6FFEE3280059; Mon, 5 Oct 2020 12:08:08 -0400 (EDT) Subject: Re: UUID generation problem To: byrnejb@harte-lyne.ca Cc: pgsql-general@lists.postgresql.org References: <271dfd309957472734a7aab8999659b1.squirrel@webmail.harte-lyne.ca> <86544317-8fa2-9193-6af2-6b6e5eab1cba@aklaver.com> <13a362eba18fbef24f8170a3e0cd8a9f.squirrel@webmail.harte-lyne.ca> <91900e671c6f124811856337449555e1.squirrel@webmail.harte-lyne.ca> From: Adrian Klaver Message-ID: <8bbfffec-a084-88bf-b4dc-bbfadfd21df6@aklaver.com> Date: Mon, 5 Oct 2020 09:08:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <91900e671c6f124811856337449555e1.squirrel@webmail.harte-lyne.ca> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/5/20 8:57 AM, James B. Byrne wrote: > > > On Mon, October 5, 2020 11:15, Adrian Klaver wrote: >> >> 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(); >> > > [root@accounting-2 ~ (master)]# psql --dbname=idempiere > --username=idempiere_dbadmin > Password for user idempiere_dbadmin: > psql (11.8) > Type "help" for help. > > idempiere=# select current_schemas(true); > current_schemas > ------------------------ > {adempiere,pg_catalog} Well there is your problem. That is a different search_path and it does not include the 'public' schema. This would indicate you are connecting to a different instance of Postgres then in your previous example. I'm going to bet you are connecting to different ports. I use the following in my .psqlrc(local psql conf file): \set PROMPT1 '%/%R%# ' to get the database name and port. I would try that at least temporarily(at psql prompt) to sort out what/where you are connecting to. > (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 > -------------------------------------- > 066e3298-3c91-4079-98ee-2b279bfc4025 > (1 row) > -- Adrian Klaver adrian.klaver@aklaver.com