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.96) (envelope-from ) id 1vc7bB-002GST-0y for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Jan 2026 19:47:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vc7b9-00Djn8-1G for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Jan 2026 19:47:40 +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.96) (envelope-from ) id 1vc7b9-00Djmz-0G for pgsql-hackers@lists.postgresql.org; Sat, 03 Jan 2026 19:47:39 +0000 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vc7b6-004If3-2T for pgsql-hackers@postgresql.org; Sat, 03 Jan 2026 19:47:39 +0000 Received: by mail-qt1-x829.google.com with SMTP id d75a77b69052e-4f34c5f2f98so146144361cf.1 for ; Sat, 03 Jan 2026 11:47:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767469655; x=1768074455; darn=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=T4B/LqxG/aBv7vWIYgv5w0XezyPrWZPBvjZu/mwqaqk=; b=c2fZ9UkCYpG17qC7fYbE1IoGbGNihmLt2/NS3RPxZ4UlhFhy77ABD1x/AbsNYPrtMt 0kh9xwmgaI5jVTPX1xnNZsEGkAM5dKB/W0fZMimnqTODpOry/DCzi/ZQSZT+Q4XToGxJ RC7eCoFN1H0kI0fXmf+cpr3jSwfky2zrM8iZWb7qdtHhbyL/zIImFUw4NLHF62bi8JdN alzbct0QwoAlzaKu5G1Vvg/+fA5yfwoQfvT9o9VarHY+2hUFxTAYNPXuWPPX/bP168Px 7kMN5SmThXTasV4uFqHtgUgrkdrexfB9Y8WQOE2/YHdXoRtbPjPCR2T8B+TY98jlKEQT Bldg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767469655; x=1768074455; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=T4B/LqxG/aBv7vWIYgv5w0XezyPrWZPBvjZu/mwqaqk=; b=sny8+kPiXr+WJJ3Q4q+4XyiQc31f615dIpsXUJZY3GnKaDLDzQ9M9PQGVuuuTwLlyD SLuC87bCAbfMw1kMM9NNJoE+dGm7VEBivJizkIkuVyucsWC3csFSNiEULMuAYvKVXho0 SM9zKVHMlb0OZxSuLdUGRQc+aYn2ArG90m22wM9sGbtRdo0/YOXbMZOPgDGd1/nWPlUZ egzyIKjWrdC0D+Z3GftqPD5+ucd8Ga7XWIayeYOSm5Ix/HFEVbfftnQwbiWqwTWninbH HnDr1dkZSNBybHj01kZsiFHT0S+IVR1ss3VWp9p6eHpvGi92GRSqEJ0AcCbDolVs7xA3 Gf7A== X-Forwarded-Encrypted: i=1; AJvYcCX+L3tzQ3+OdGaDGszcXX257rfSb3gSFo66zi2o6L/Fgli4qN3S2PAAymKTjOpPFJKCgv/VyseBQQvHaJTs@postgresql.org X-Gm-Message-State: AOJu0YzU93oVP+wabazFpfwb1IGb/jqradPkXBe+SltLO4FO5G74/p7d 5Hd8LslEgW3afuiRMmqsfi9L3Sec3QQUjBvYZkm9HzM6s5MpAxWQlthwyNQBUOgogfs7ESc70KK nqY6kKV/FqJShIi1P1ZtjRKvlJ6p+eLg= X-Gm-Gg: AY/fxX6MTQmSjga5tmyd2D5HkOI6r++rVDgCxOz0+T9sXx38vkYZYlK8GB5uuLKOXBA +A5egzXv75f6HSY6thf+vc4U+wBIFPBLnmwMkzW31ezrSctpLzfqGnVy6s/EegP4zeowv0XOOET 4PPyEHe3XZ9zhkzQnzhapU5vQiMrrtAN3BejAvWwU38nmgpXvBr1oGKwYN2CbBh0oCMBzYV7edO ZG1b3kNIb2gi4vM35VQGYvnGG2lwdQsViEwVbsvFOfk20pf5haEedzvuvThzbFxP32AGjPuQEps mIyWkYRB X-Google-Smtp-Source: AGHT+IHxQhOQ7VTI2X35aBynjbHG3UDPgss/tzflr5C59DuVjUOWWzRRlWZ9x3UvVa8IpBzz7Jf7F9tlbJv86FXZyyo= X-Received: by 2002:a05:622a:4013:b0:4ee:4a8b:d9ed with SMTP id d75a77b69052e-4f4abda9f56mr607527511cf.58.1767469654673; Sat, 03 Jan 2026 11:47:34 -0800 (PST) MIME-Version: 1.0 References: <202510120822.opybjj5dv345@alvherre.pgsql> In-Reply-To: From: Kirill Reshke Date: Sun, 4 Jan 2026 00:47:23 +0500 X-Gm-Features: AQt7F2rxD6UJuebiVCsd-Kbxfj6Is6LOMJgjcQUkDwhcj1Almvlk-edTR9JLI20 Message-ID: Subject: Re: remove unnecessary include in src/backend/commands/policy.c To: Japin Li Cc: Shinya Kato , jian he , =?UTF-8?Q?=C3=81lvaro_Herrera?= , PostgreSQL-development 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 Fri, 26 Dec 2025 at 14:29, Japin Li wrote: > > > Hi, Shinya > > On Fri, 26 Dec 2025 at 16:30, Shinya Kato wrote= : > > On Wed, Oct 22, 2025 at 3:30=E2=80=AFPM Shinya Kato wrote: > >> Thank you for updating the patch. > >> But I said "except for access/relation.h". I think access/relation.h > >> is not necessary if you replace relation_open to table_open. > > > > I've fixed it, and marked the patch as Ready for Committer. > > > > Found a typo in the commit message. > > > RangeVarCallbackForPolicy already ensures policies apply only to tables > > or partitioned tables, so table_* isthe appropriate API for > > opening/closing the target relation. > > s/isthe/is the/ > > > -- > Regards, > Japin Li > ChengDu WenWu Information Technology Co., Ltd. > > Hi hackers! We also can reflect that our new coding practice is to use table/index open over relation_open in the commit message (I guess so after[0]). Overall LGTM. [0] https://git.postgresql.org/cgit/postgresql.git/commit/?id=3D9d0f7996e58= c2a92efe06c901c6dfe1f6ced0a1d --=20 Best regards, Kirill Reshke