Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aQdfA-0005Mz-Dq for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Feb 2016 16:18:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aQdfA-0007RC-0c for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Feb 2016 16:18:44 +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.84) (envelope-from ) id 1aQdf8-0007Ka-Jn for pgsql-bugs@postgresql.org; Tue, 02 Feb 2016 16:18:42 +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.84) (envelope-from ) id 1aQdf6-0002p3-A2 for pgsql-bugs@postgresql.org; Tue, 02 Feb 2016 16:18:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u12GIc40021245; Tue, 2 Feb 2016 11:18:38 -0500 From: Tom Lane To: petrum@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13905: Inconsistent code modification In-reply-to: <20160202074744.2780.43822@wrigleys.postgresql.org> References: <20160202074744.2780.43822@wrigleys.postgresql.org> Comments: In-reply-to petrum@gmail.com message dated "Tue, 02 Feb 2016 07:47:44 +0000" Date: Tue, 02 Feb 2016 11:18:38 -0500 Message-ID: <21244.1454429918@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org petrum@gmail.com writes: > Location: file src/include/catalog/pg_proc.h > Lines 4613 and 4615 looks to be copies of lines 4252 and 4254, > respectively. It's generally better to show the actual lines you're talking about; line numbers tend to not be all that stable. But I guess you are talking about the DESCR lines for jsonb_to_record() and jsonb_to_recordset()? > They are parts of a larger code fragment duplicated and modified by > replacing *json* with *jsonb*. However, lines 4613 and 4615 are not modified > accordingly i.e., they still contain the *json* sub-string and not the > *jsonb* as it would be expected according to their neighbor source code > lines. Hmm, yeah. You could argue it either way perhaps as to whether these comments should refer to JSON or the specific type name, but since all the other jsonb functions do the latter, these should too. Thanks for noticing! regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs