Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qjbOy-00BTMg-6r for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Sep 2023 08:20:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qjbOv-001ywJ-8o for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Sep 2023 08:20:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qjbOu-001yw5-UW for pgsql-hackers@lists.postgresql.org; Fri, 22 Sep 2023 08:20:36 +0000 Received: from ewsoutbound.kpnmail.nl ([195.121.94.168]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qjbOr-006s1P-BD for pgsql-hackers@postgresql.org; Fri, 22 Sep 2023 08:20:36 +0000 X-KPN-MessageId: e52b04be-5920-11ee-af88-005056aba152 Received: from smtp.kpnmail.nl (unknown [10.31.155.37]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id e52b04be-5920-11ee-af88-005056aba152; Fri, 22 Sep 2023 10:20:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:from:to:subject:mime-version:date:message-id; bh=L7WN3N+QpQrwI7pNGhzGlK9Q/gxNSMb1m6WDtz9B7T8=; b=TCaCGEoq7yC1psMmBvXzzJWaJg0pQNAq88xd29lMUdrxDaZkrFB5N5Z50VIsOY8U3X3A7F5WNH7on mrd7TyCzvcmXElMJQxq27RKbh80o0f5X1C4hnUuv1yHlTfUsBCkTXgBiR+j3+0d89/r9x6W0MYgk4s aFMVnFYWb+Eq63P9RltKb6zo2TL7ojZRAxuWU2LAMwdCToNgb/QP721ZfoTkAyVtm616t4KwncAISr YGBRo9geSvLvyEL8ukO49LzICsc6d6IrJskl+fiUeig1JYCD+EQnQ9WT+8xVUcZZ3uzGub9wLmSniu GpaRO/JyAf/LRR4sNjH7qO6mhN9+Igw== X-KPN-MID: 33|8Mz4c3SXP+120NXtHJufhv+/9LNBrIU8qOFXEEAJhBFVCpb8a2nOYRhhNLOU/0C kMr7+nxfaOfmVvxCIhCMQkSo6eAOSvwE8rfcSQ1XA1fE= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|NH0BCdhYovWfKxP48nKm1h/NE/qNrmKq2g6+T2NQg2raQyGRlWIJnKEll3nAFVQ HFBhQBRh9tUIDoSDnvjP3lw== X-Originating-IP: 45.83.234.25 Received: from [192.168.178.31] (unknown [45.83.234.25]) by smtp.xs4all.nl (Halon) with ESMTPSA id e538e9dc-5920-11ee-8241-005056ab1411; Fri, 22 Sep 2023 10:20:31 +0200 (CEST) Message-ID: Date: Fri, 22 Sep 2023 10:23:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: Row pattern recognition Content-Language: en-US To: Tatsuo Ishii , vik@postgresfriends.org Cc: pgsql-hackers@postgresql.org References: <20230912.151843.1810014897541305662.t-ishii@sranhm.sra.co.jp> <20230912.174457.1842965393591953201.t-ishii@sranhm.sra.co.jp> <20230922.141640.288673971790249857.t-ishii@sranhm.sra.co.jp> From: Erik Rijkers In-Reply-To: <20230922.141640.288673971790249857.t-ishii@sranhm.sra.co.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Op 9/22/23 om 07:16 schreef Tatsuo Ishii: >> Attached is the fix against v6 patch. I will include this in upcoming v7 patch. > > Attached is the v7 patch. It includes the fix mentioned above. Also (Champion's address bounced; removed) Hi, In my hands, make check fails on the rpr test; see attached .diff file. In these two statements: -- using NEXT -- using AFTER MATCH SKIP TO NEXT ROW result of first_value(price) and next_value(price) are empty. Erik Rijkers > this time the pattern matching engine is enhanced: previously it > recursed to row direction, which means if the number of rows in a > frame is large, it could exceed the limit of stack depth. The new > version recurses over matched pattern variables in a row, which is at > most 26 which should be small enough. > > Best reagards, > -- > Tatsuo Ishii > SRA OSS LLC > English: http://www.sraoss.co.jp/index_en/ > Japanese:http://www.sraoss.co.jp