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 1uCaUt-00H7IL-HL for pgsql-committers@arkaria.postgresql.org; Wed, 07 May 2025 08:51:23 +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 1uCaUr-00Ciqb-SM for pgsql-committers@arkaria.postgresql.org; Wed, 07 May 2025 08:51:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uCaUr-00CiqT-Ju for pgsql-committers@lists.postgresql.org; Wed, 07 May 2025 08:51:21 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uCaUo-000Ys1-2U for pgsql-committers@lists.postgresql.org; Wed, 07 May 2025 08:51:20 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-acb415dd8faso998677866b.2 for ; Wed, 07 May 2025 01:51:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746607878; x=1747212678; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6A/9LkE+fs8BH3fIj5GSExErgS+oBIhjpJvUq1edt5A=; b=dYoyhr6qTwzAsLN7UVG35cwXhvXUPxtUdrV//U/FFD/Q/XfMjG6q5+WtmvllUyDIEO k3DE9WnYCAMyu11Dt9+7KZHmRINrEXTzil9zdXJ5PExR+KEayB5NwOpKuMdwAAqc8Zz0 dhDoF1UF9HYQIsdnVmkzWCZmnagkp60luBh8p/YGkP7kdIjG83yRTy4TCKS2pLm+swbQ f1Zbl/RWH+ZSIcLGO1Sm9CvdzA1UIysOyxBa+WGxF94ya8GCbqanecO4Yt1EAFdpUKAE +Gf9NHVS0kULGYSXEItKqfM0lWBxtiaVxL1T9pZPz/M4p2uNlZJwLHX6GnR10C1oSvKH WDiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746607878; x=1747212678; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6A/9LkE+fs8BH3fIj5GSExErgS+oBIhjpJvUq1edt5A=; b=hlibl+jDJvW9r6h7+30CAu2vyBikOS2aoWOPXvP+Wecuk+zd5QD/nFmI9opGGPiA2A 1ttDbms6YZh8bgedf0LcuM6/GqLEklC1wny+4KenI5ktW1G70l9TyQN99PU0eNrHXTrb ot5FEvavjQt6VcmxYoBgf1lBaan52MVK9aMnB5S7sjJbrn3Y2t0fazcTDLzWRqniRSIz gfVR3qn3AMtN4VD8bDm+oVCnxTdlnHWjvtL0sHKPbbL+uX/6VbPaBs/CfKetHNns6JG/ Rnyhg2upp+4ClMUrVRR6/H2QA/6o+P8J5+pk33P3DGzDa+5VLBB/E22e8u5NsPrYJ80t A9+A== X-Forwarded-Encrypted: i=1; AJvYcCW86qUlX8ly6Dx1ZZy1dWPwtzI4RzpAgr4E/ADW9uIndROXSIUCtTi4gHJrPknTnb6nLpU98zgkpuw6MqSkR2yI@lists.postgresql.org X-Gm-Message-State: AOJu0Yzt2xFX/3NOpO/0t8NH8TIa5L3L0/Tk7uICTq4w9XVw6z/SE80y yRf3l+0otVxvgrmWY6Jnk2O+eEYoCY0MJyf++8/BrTBZXSijm0ibPyvI4VOIGMN1sR8kcqrvGn5 68HLV9X0G4FF/9MTEdnQdHR/EreI= X-Gm-Gg: ASbGncs0G49xeAcycUMlbtgfMKc+1EvGKAp6ehlz1KajQw0zYt/DTZKFDVJmp4bSBUj YLGGzqUchCkW/2meRrvdsBG3yhPsres/IKheDBx/6XowvwHQvMh9x37wXR0jxqQ2ix7r4pQ3Efq C5iio3UaVus6nSloaLBEyrEw== X-Google-Smtp-Source: AGHT+IFPvO5KLCMjN64kTRTmKhPy199bw6l4DC6fF7Rlx11Z+edyU86eFk3AjKJt5RWlvxrtqINiJKyH7P+7mTIzRUY= X-Received: by 2002:a17:907:c01a:b0:ace:9d4e:d0cd with SMTP id a640c23a62f3a-ad1e8bd236bmr252887266b.7.1746607877632; Wed, 07 May 2025 01:51:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Korotkov Date: Wed, 7 May 2025 11:51:06 +0300 X-Gm-Features: ATxdqUG2TN0UxoyurLDcEJoMiBnV4D2d90h4PsNKJNEKFHn13RO4Lq446X_oqdM Message-ID: Subject: Re: pgsql: Refactor ChangeVarNodesExtended() using the custom callback To: Aleksander Alekseev Cc: Alexander Korotkov , pgsql-committers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, May 7, 2025 at 11:47=E2=80=AFAM Aleksander Alekseev wrote: > > Refactor ChangeVarNodesExtended() using the custom callback > > > > fc069a3a6319 implemented Self-Join Elimination (SJE) and put related lo= gic > > to ChangeVarNodes_walker(). This commit provides refactoring to remove= the > > SJE-related logic from ChangeVarNodes_walker() but adds a custom callba= ck to > > ChangeVarNodesExtended(), which has a chance to process a node before > > ChangeVarNodes_walker(). Passing this callback to ChangeVarNodesExtend= ed() > > allows SJE-related node handling to be kept within the analyzejoins.c. > > I believe this was pushed by mistake. Why it should be mistake this time? At least, this time I managed to wait till the end of release freeze. ------ Regards, Alexander Korotkov Supabase