Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFWrL-0000To-7e for pgsql-hackers@arkaria.postgresql.org; Tue, 30 May 2017 02:26:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dFWrJ-0007fY-Pu for pgsql-hackers@arkaria.postgresql.org; Tue, 30 May 2017 02:26:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dFWpl-0004qI-Lz for pgsql-hackers@postgresql.org; Tue, 30 May 2017 02:24:33 +0000 Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dFWph-0004ce-Qv for pgsql-hackers@postgresql.org; Tue, 30 May 2017 02:24:32 +0000 Received: by mail-oi0-x233.google.com with SMTP id b204so95361022oii.1 for ; Mon, 29 May 2017 19:24:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=StpcJ4pOBljV1XXW3YDK2uUz9ezpPp/5FDjE8w3YpZc=; b=bbD+mQ9SYuRTPdrQxBRGRuP/jMsTVk+CcYworsHW5zeFKYRmf4AZS4DbfNAZ1VJkmg a3wK45exJamL232Jqtxy5C5xKpAC6cJce3X8TyAR4TYIfUkOmEXKWbnyPMt8dfMUrOHh wf2f/ZJ8z+KMqBIxdBpz+UmIZ7hmYD35YHr2s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=StpcJ4pOBljV1XXW3YDK2uUz9ezpPp/5FDjE8w3YpZc=; b=slzV6VtRvHnKIfdw2Nou3uMPh3h++80uG40aw4jV7Q+pqMDnqVbQR0jIKFX5Htw3VJ Rpy+hu4GPBYZbm+uR5a9unGUNUkBPMkvD34kR6dXF3WByvYoM0PLQmKs8c17IUQaKefs jODIur2L1Iu/Ye3kj2heh5z6R0ezRzeL0oFByjVn8J2OBifUkUzHMMJnSZ9BKFA+droN S9ADrPAqzC7F+mlKSXEondEESFbFjyKoxihyx2BgFXWzamml62FL/kgWI6XI/SPaqrJx VhP78Rc061S0vSk6IdcIQ3VynamLi62lxbg79etRgADC5PWRrEPCXSC1UYl+HwL7gbtM 5bsg== X-Gm-Message-State: AODbwcDTkXeY9HwX/OYV8i3aprO2Ca5pOn0CNV0aUIIxwfmc9WIQ6Eoq MExf3Ua7Vb6YXBOd X-Received: by 10.202.117.87 with SMTP id q84mr7026377oic.18.1496111068213; Mon, 29 May 2017 19:24:28 -0700 (PDT) Received: from gust.leadboat.com ([75.104.69.23]) by smtp.gmail.com with ESMTPSA id c4sm263855otb.38.2017.05.29.19.24.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 May 2017 19:24:27 -0700 (PDT) Date: Tue, 30 May 2017 02:24:06 +0000 From: Noah Misch To: Andrew Dunstan Cc: Nikita Glukhov , Andres Freund , David Steele , Michael Paquier , Tom Lane , Aleksander Alekseev , PostgreSQL mailing lists Subject: Re: PATCH: recursive json_populate_record() Message-ID: <20170530022406.GD116176@gust.leadboat.com> References: <16179.1485380983@sss.pgh.pa.us> <9bf14a7c-0794-f90c-c012-8dd0335ab364@pgmasters.net> <754780af-d905-9704-cf4d-b64e632b86a3@2ndQuadrant.com> <20170403211741.7ommm5dssfv3abo6@alap3.anarazel.de> <45c0aa55-1b62-c622-31fd-cb21e017d5cd@2ndQuadrant.com> <8fcd9e65-acb0-8221-ef23-01e5c2fe90e4@2ndQuadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Mon, May 22, 2017 at 10:19:37PM +0300, Nikita Glukhov wrote: > Attached two small fixes for the previous committed patch: > > 1. I've noticed a difference in behavior between json_populate_record() > and jsonb_populate_record() if we are trying to populate record from a > non-JSON-object: json function throws an error but jsonb function returns > a record with NULL fields. So I think it would be better to throw an error > in jsonb case too, but I'm not sure. > > 2. Also I've found a some kind of thinko in JsGetObjectSize() macro, but it > seems that this obvious mistake can not lead to incorrect behavior. [Action required within three days. This is a generic notification.] The above-described topic is currently a PostgreSQL 10 open item. Andrew, since you committed the patch believed to have created it, you own this open item. If some other commit is more relevant or if this does not belong as a v10 open item, please let us know. Otherwise, please observe the policy on open item ownership[1] and send a status update within three calendar days of this message. Include a date for your subsequent status update. Testers may discover new open items at any time, and I want to plan to get them all fixed well in advance of shipping v10. Consequently, I will appreciate your efforts toward speedy resolution. Thanks. [1] https://www.postgresql.org/message-id/20170404140717.GA2675809%40tornado.leadboat.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers