pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Basil Bourque <basil.bourque@gmail.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: Re: (How to) Make SQLData of UUID?
Date: Sun, 21 Jul 2019 16:08:58 -0700
Message-ID: <C9651950-4F9D-47FF-80CA-631ECAC02A65@gmail.com> (raw)
In-Reply-To: <CAHF95JzG9dAJnmjR000VQMeyLb1+4JsyffDQcSQ5h2LrNTaqHA@mail.gmail.com>
References: <CAHF95JzG9dAJnmjR000VQMeyLb1+4JsyffDQcSQ5h2LrNTaqHA@mail.gmail.com>

> Any hints please?
> 

Does this Answer by Gopinagh.R on Stack Overflow help?

https://stackoverflow.com/a/14197445/642706 <https://stackoverflow.com/a/14197445/642706;

CREATE OR REPLACE FUNCTION generatesurrogat() RETURNS uuid AS
$BODY$DECLARE 
uid UUID;
BEGIN
uid:=(select uuid_generate_v1());
RAISE NOTICE 'My UUID is %',uid;
return uid;
END$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;


—BB=

view thread (5+ messages)  latest in thread

Message-ID: <C9651950-4F9D-47FF-80CA-631ECAC02A65@gmail.com>
Permalink:  ../C9651950-4F9D-47FF-80CA-631ECAC02A65@gmail.com/
Also on:    postgresql.org/message-id/C9651950-4F9D-47FF-80CA-631ECAC02A65@gmail.com

 · 

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-jdbc@postgresql.org
  Cc: basil.bourque@gmail.com
  Subject: Re: (How to) Make SQLData of UUID?
  In-Reply-To: <C9651950-4F9D-47FF-80CA-631ECAC02A65@gmail.com>
  References: <CAHF95JzG9dAJnmjR000VQMeyLb1+4JsyffDQcSQ5h2LrNTaqHA@mail.gmail.com> <C9651950-4F9D-47FF-80CA-631ECAC02A65@gmail.com>

* 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