Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fONo9-0007Px-Au for pgsql-general@arkaria.postgresql.org; Thu, 31 May 2018 13:40:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fONo8-0006T6-2o for pgsql-general@arkaria.postgresql.org; Thu, 31 May 2018 13:40:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fONo7-0006Su-Nl for pgsql-general@lists.postgresql.org; Thu, 31 May 2018 13:39:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fONo5-00067p-DK for pgsql-general@lists.postgresql.org; Thu, 31 May 2018 13:39:58 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w4VDdjGU001899; Thu, 31 May 2018 09:39:46 -0400 From: Tom Lane To: Adrian Klaver cc: C GG , tango ward , Rob Sargent , Laurenz Albe , "pgsql-generallists.postgresql.org" Subject: Re: Insert UUID GEN 4 Value In-reply-to: References: <1527738102.2400.1.camel@cybertec.at> <1527738710.2400.4.camel@cybertec.at> <74277212-DEDF-4A35-B0BB-25A92088B2A1@gmail.com> Comments: In-reply-to Adrian Klaver message dated "Thu, 31 May 2018 06:11:24 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3807.1527773983.1@sss.pgh.pa.us> Date: Thu, 31 May 2018 09:39:43 -0400 Message-ID: <3808.1527773983@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Adrian Klaver writes: > My suspicion is it had to do with this from a post upstream: > "When I tried it, I am getting an error: Invalid input syntax for UUID: > uuid_generate_v4()," Yeah. We haven't seen the actual query yet, but I'm betting the OP really wrote INSERT ... , 'uuid_generate_v4()', ... not INSERT ... , uuid_generate_v4(), ... There might be some layers of client-side parameter mangling obscuring what's actually happening. regards, tom lane