pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: C GG <cgg0007@gmail.com>
Cc: tango ward <tangoward15@gmail.com>
Cc: Rob Sargent <robjsargent@gmail.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Insert UUID GEN 4 Value
Date: Thu, 31 May 2018 09:39:43 -0400
Message-ID: <3808.1527773983@sss.pgh.pa.us> (raw)
In-Reply-To: <cf450e00-3e92-4d25-c34e-5d208edfc64c@aklaver.com>
References: <CAA6wQLK1MLj6gL9wQYLNZD541_xJjbv9X5EzVADOtMhQnifc9w@mail.gmail.com>
	<1527738102.2400.1.camel@cybertec.at>
	<CAA6wQLJr6fjzx+ZK6N4yiViZYdFuGGkMT27zsp-mR1SjAzbGEg@mail.gmail.com>
	<1527738710.2400.4.camel@cybertec.at>
	<CAA6wQLLwGQC=szWF46ye+yh6dhuAUtgkwNhM6K5UmUc0M3B97Q@mail.gmail.com>
	<CAA6wQLJ_tpazkwPOuO6yuqaVYaqDK0c1ZPkdp7vQtY0h6xm15Q@mail.gmail.com>
	<74277212-DEDF-4A35-B0BB-25A92088B2A1@gmail.com>
	<CAA6wQL+8TmzT9T7jwkOuBd7ZH22C=Y44Cje7Zt3pMYnx7V6i5w@mail.gmail.com>
	<CAJXW-z8WRRP6Y87gbEPjRSD+jxu_a-HFVpJtXxTurX4wjFpdDQ@mail.gmail.com>
	<cf450e00-3e92-4d25-c34e-5d208edfc64c@aklaver.com>

Adrian Klaver <adrian.klaver@aklaver.com> 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




view thread (21+ messages)  latest in thread

Message-ID: <3808.1527773983@sss.pgh.pa.us>
Permalink:  ../3808.1527773983@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3808.1527773983@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com, cgg0007@gmail.com, tangoward15@gmail.com, robjsargent@gmail.com, laurenz.albe@cybertec.at
  Subject: Re: Insert UUID GEN 4 Value
  In-Reply-To: <3808.1527773983@sss.pgh.pa.us>
  References: <CAA6wQLK1MLj6gL9wQYLNZD541_xJjbv9X5EzVADOtMhQnifc9w@mail.gmail.com> <1527738102.2400.1.camel@cybertec.at> <CAA6wQLJr6fjzx+ZK6N4yiViZYdFuGGkMT27zsp-mR1SjAzbGEg@mail.gmail.com> <1527738710.2400.4.camel@cybertec.at> <CAA6wQLLwGQC=szWF46ye+yh6dhuAUtgkwNhM6K5UmUc0M3B97Q@mail.gmail.com> <CAA6wQLJ_tpazkwPOuO6yuqaVYaqDK0c1ZPkdp7vQtY0h6xm15Q@mail.gmail.com> <74277212-DEDF-4A35-B0BB-25A92088B2A1@gmail.com> <CAA6wQL+8TmzT9T7jwkOuBd7ZH22C=Y44Cje7Zt3pMYnx7V6i5w@mail.gmail.com> <CAJXW-z8WRRP6Y87gbEPjRSD+jxu_a-HFVpJtXxTurX4wjFpdDQ@mail.gmail.com> <cf450e00-3e92-4d25-c34e-5d208edfc64c@aklaver.com> <3808.1527773983@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox