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 1kPSD6-0000TW-5y for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 15:15:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPSD5-0003m6-1i for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 15:15:31 +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 1kPSD4-0003ly-Ph for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 15:15:30 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPSD2-0004qC-7t for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 15:15:29 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 23CA85C00D8; Mon, 5 Oct 2020 11:15:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 05 Oct 2020 11:15:27 -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=n /xsRB2D11pywW3ktrlzuBK2eLl7Axo+wkB/mU8HfF0=; b=XYQpf4xnqcpPc9PuJ cNvT4koquBT3MJLSJyR0k9Wv8Fx7YHTCuUX6eA/qle83jx0713JC2Gll1h2ZzUOO vb7vJ77+2DA+iqAcYhN+XTuUXhN1aotBIXzGT77pIW3RQj86EV9nj9aHfE0APS1U Xth3K9K2Tur+v/EZYqYhpBqLZ+26wzlyd/6BHDMmmJvlc7DiFzmy8E6HAg9t3eyV S2YHTIdGtbzDdoQWN1xeNCTQMGFOa25KjJzWQnLfAzdu1TtFhM823G32H3XG7OVi gdWGUoaCdQ2eCryO/QW3vOosoDrTQ7pYHiI0Hcrom7mVtL3tWEZ81hgiwVKi+q08 ZPRUw== 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=n/xsRB2D11pywW3ktrlzuBK2eLl7Axo+wkB/mU8Hf F0=; b=RdK8ZStu40gIrCrrDBpCnKk3DgVI75fRzt/ppMXOOsa9hobEqp+u16Tke M8HLolnuWdXWdVDG2incbQtX3XuxaDQXH15eSE2PaiZ930g6Aa/F9XWFF+IEEFKv eS3DZZABmfRKi/lq+ly0SJtrRVW9uw0O7MyJjGopJs7U6p5PUSFz2EUPR0h9sa+n dJLU+7ywn4lGMZFwha/HfHVXIiCMiDoG3FrzqmZ+p1WOWxsddoVgYi4BR8Srn8v+ 9yFdymG4dIFEbaMD3z2j9hD/X1ljbwLHq4haXKqNYnoTRl1aTVioF5LoBBUuLp32 wQHneK5sweTUmOwnR/D6zD1wjoSDQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrgedvgdekjecutefuodetggdotefrodftvf 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 677ED3280059; Mon, 5 Oct 2020 11:15:26 -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> From: Adrian Klaver Message-ID: Date: Mon, 5 Oct 2020 08:15:25 -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: <13a362eba18fbef24f8170a3e0cd8a9f.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 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@aklaver.com