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 1kPUL4-00059n-R7 for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 17:31:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPUL3-0001xe-Ps for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 17:31:53 +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 1kPUL3-0001xX-Hw for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 17:31:53 +0000 Received: from [66.111.4.28] (helo=out4-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPUKz-0006bi-QR for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 17:31:52 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 3075F5C0100; Mon, 5 Oct 2020 13:31:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 05 Oct 2020 13:31:38 -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=K OFmZMGYaAtWjfRvGW5jEimfW4OnagNFmmcsGmZVxNw=; b=pc00f7xZiL98M0FFI FzON1GC3jKH9lmuXwvRrLL2YG4/gKj6I0cUP9KKOWqMFnga5NpvdMutvM8Egyt6u c9FkY0XarPyz3QfIga6LwAw1HeTsw/f2sC8TzSJJ2OTpn+LbFc3w7/6luTnc5OHE gc+mftH6RGd63ScsOtWp2Qoe0v9yeNx8gLrPTtMIoSH06AAZ99zn+vuWHJ2Aj1S6 S34ezl5eW41J84V1GltWtjmAHr6o+K8CIrdG4ahdz4FCH15SLNgtocQrWfKUN0cy sYM1HqCpZvAfzGrCql5kggB2SC8VAKOUl6pr3UQK0lIOJjQBSWal2ruVGnW8Y7Ve 9k3lQ== 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=KOFmZMGYaAtWjfRvGW5jEimfW4OnagNFmmcsGmZVx Nw=; b=VgRX5tR23FsOUOSJ5CCP3d0VJApP0SoRChOXzoquobtcfwz1Sm93T+/ue TGxZMyOlxBJZaoLOhq5jmN+KsUnYsJfg2Z+VeyDFu5wF5neGZLQhahSK4/y9DGFo UNgHdwNxgDUT0kRVrfBqI618Fiit7esZ/zsfj7XKhCuJYXwFHdTmdPHsRyDPwqSe 899s1KgpQvqby4ZqCd7iBEH3M4fjLOybc5rArYsoYP1DW5/NUgqvFJZLCPZSNxcX XMKAlv5Z3c9Wmazj4shK04uWmIfgNZBrodnkMttJcEgPPlGnxKha81zDQw+OAcw4 BCF/AtRj3uOepzZ3pPY+W3wchKRCg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrgedvgdduudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepteejvdetff ejuedvleeifeefheeutdfhgfdvhffhhfekvdduveegvdejudefgfevnecukfhppeejgedr leegrdejfedrvddvvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from ranger.suse (unknown [74.94.73.222]) by mail.messagingengine.com (Postfix) with ESMTPA id 6A9063064683; Mon, 5 Oct 2020 13:31:37 -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> <8bbfffec-a084-88bf-b4dc-bbfadfd21df6@aklaver.com> From: Adrian Klaver Message-ID: Date: Mon, 5 Oct 2020 10:31:36 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.28 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/5/20 9:46 AM, James B. Byrne wrote: > > > On Mon, October 5, 2020 12:08, Adrian Klaver wrote: >> 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. >> > > [root@accounting-2 ~ (master)]# cat .psqlrc > \set PROMPT1 '%/%R%# ' > > [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=# \set > . . . > PROMPT1 = '%/%R%# ' > PROMPT2 = '%/%R%# ' > PROMPT3 = '>> ' > . . . > VERSION_NAME = '11.8' > VERSION_NUM = '110008' > idempiere=# > idempiere=# > idempiere=# > > The setting does not appear to alter the actual prompt. That is because I sent the wrong prompt:( It should have been: \set PROMPT1 '%/(%>)%R%# ' > > -- Adrian Klaver adrian.klaver@aklaver.com