BUG #13768: JSONB concat - Mailing list pgsql-bugs

From awasarax@yandex.ru
Subject BUG #13768: JSONB concat
Date
Msg-id 20151111115002.2643.11338@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #13768: JSONB concat  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      13768
Logged by:          Roman
Email address:      awasarax@yandex.ru
PostgreSQL version: 9.5beta1
Operating system:   Windows (7, Server 2008 r2)
Description:

if "d" is null then return = null
else
return <> null


CREATE OR REPLACE FUNCTION userfunc(jsonb)
  RETURNS jsonb AS
$BODY$
DECLARE
 r jsonb = null;
 d jsonb = null;
BEGIN
 SELECT to_json(users.*) INTO r FROM users WHERE ///////;
 RETURN r||d; -- return null
END;
$BODY$
  LANGUAGE plpgsql VOLATILE;

pgsql-bugs by date:

Previous
From: postgresql.org@gclough.com
Date:
Subject: BUG #13770: Extending recovery_min_apply_delay on Standby causes it to be unavailable for a while
Next
From: Tom Lane
Date:
Subject: Re: BUG #13768: JSONB concat