Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pha5k-0002ig-Dm for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Mar 2023 18:00:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pha5h-0002dD-PH for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Mar 2023 18:00:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pha5h-0002d4-DP for pgsql-hackers@lists.postgresql.org; Wed, 29 Mar 2023 18:00:09 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pha5c-00075t-PW for pgsql-hackers@postgresql.org; Wed, 29 Mar 2023 18:00:09 +0000 Received: by mail-lf1-x129.google.com with SMTP id h11so14335606lfu.8 for ; Wed, 29 Mar 2023 11:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680112803; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=T1rm3kmgfrs2oy83yH84mYiIBUI6O5Wq65ugB0usDQE=; b=NFPu+GIz03KVZUF9cp7FbsbgbXYEY9M3Gwdat/KyzH1hdikUGz6rcSchHcTvuED3yA F+X7FHy2HCcURqf5NdBMh5X9EOxsWShoPRsLj1ZZiWi5Bz7gy/g19+68a8z9iFL/sWCT MGJsrexaGOqqzOxYf1JOEcW2gulq22pvg+UE9CpcVOiChGL3nFS6nFzy+gWOE6FsDx5V iSnEG0FNYXi/7Rei6ViH/NsNR4yGqNpmVvVpySg90HsCr0JzX/7ZJ5O0TvcCRgMlHtM6 t6LKdkuVZp3Dz7GmJJgFBv+HbdxA1qUGdPJ2WHzyjvB2Z0FPptf59xw/HJXv8YSlBzrk FOjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680112803; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=T1rm3kmgfrs2oy83yH84mYiIBUI6O5Wq65ugB0usDQE=; b=lJVUfJK3Oro1lmw9XlSeUgZ3dU0kqp8P052pW2DWJo2YzOrBstgrnMHwTuSEuhLR2k 5icV0oUDpt/BU91v5st97fYyF2/4oAQkqGDnb2JZGBQ4aEFzNcB3RElsU9PTXQhw0HZf o7fmbprUxxhoYcNKiuVZ0z+vWk9gW8dJwNw/dD9bgMySPkN9sijasvQDprLfA8bg0fpD NHJ40UDcCdtKQUSNaRwBEaMvZLfbin3GqiFR/DuJsJ93dB0R3pjbr2TjGeghnq95XZKQ RHVP9RIP1lpwpx9tZTkYuf6ebw6hfHGbY0aLSAxLCQCtgpWbVYWhG3yIyQ28vCSor5Jl z9PQ== X-Gm-Message-State: AAQBX9fmf61KuZZ3/X+xUxl7kahU/ylTIop2UZsXdCLr7yD70CBZWQ0E aW1J/xv2JQyj0mK2rZ3abDI= X-Google-Smtp-Source: AKy350bn0GRdqu6FQgIwWymSbf77S5LmanYTZPIfM6NtWs8c/KRZ76OjoyASbIouCYrSIp3GtAh5FQ== X-Received: by 2002:ac2:5237:0:b0:4ea:f7af:7ee with SMTP id i23-20020ac25237000000b004eaf7af07eemr5742945lfl.45.1680112802764; Wed, 29 Mar 2023 11:00:02 -0700 (PDT) Received: from [1.0.0.7] ([178.155.30.16]) by smtp.gmail.com with ESMTPSA id w9-20020a05651203c900b004db2ac3a522sm5583681lfp.62.2023.03.29.11.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Mar 2023 11:00:02 -0700 (PDT) Message-ID: <60483139-5c34-851d-baee-6c0d014e1710@gmail.com> Date: Wed, 29 Mar 2023 21:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: SQL/JSON revisited Content-Language: en-US To: Alvaro Herrera , Erik Rijkers Cc: Andrew Dunstan , Amit Langote , Peter Eisentraut , Andres Freund , vignesh C , PostgreSQL-development , e.indrupskaya@postgrespro.ru References: <20230329102758.trybzdwbwajrf4mv@alvherre.pgsql> From: Alexander Lakhin In-Reply-To: <20230329102758.trybzdwbwajrf4mv@alvherre.pgsql> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, 29.03.2023 13:27, Alvaro Herrera wrote: > ... and pushed it now, after some more meddling. > > I'll rebase the rest of the series now. Please look at the several minor issues/inconsistencies, I've spotted in the commit: 1) s/JSON_ARRRAYAGG/JSON_ARRAYAGG/ 2) check_key_uniqueness vs check_unique IIUC, these are different names of the same entity. 3) elog(ERROR, "invalid JsonConstructorExprType %d", ctor->type); vs elog(ERROR, "invalid JsonConstructorExpr type %d", ctor->type); I'd choose the latter spelling as the JsonConstructorExprType entity does not exist. 4) In the block:     else     {         res = (Datum) 0;         elog(ERROR, "invalid JsonConstructorExpr type %d", ctor->type);     } res is assigned but never used. 5) (expr [FORMAT json_format]) ->? (expr [FORMAT JsonFormat]) (json_format not found anywhere else) Best regards, Alexander