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 1wFVjP-005EL8-2b for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 11:27:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wFVjP-00DKy5-04 for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 11:26:59 +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 1wFVjO-00DKxw-2M for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 11:26:58 +0000 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wFVjM-00000002Sml-2SGa for pgsql-hackers@postgresql.org; Wed, 22 Apr 2026 11:26:58 +0000 Received: by mail-qt1-x82b.google.com with SMTP id d75a77b69052e-50e97863425so27565171cf.0 for ; Wed, 22 Apr 2026 04:26:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776857215; cv=none; d=google.com; s=arc-20240605; b=UMadgxM+1VCGxHsA8cpW9iTaWrkMlkC2LmpOcJUPrUuXQ9YGpuji7dlIEvJfTn6c1j Wyzk3nHroafhZp3oaY5/fQFqi0aimHBA6Jwf0usZs6/urQ6kR9k6s/sRXKs/tMKeEQl7 o6hfq+XH46Te3KzeZ3fcZqOwFQUTNS/oEu8TsLx26Ogxm00egHiDSTI/NLWPtml2F0P2 rc4GQTwP9xDpPA+n6WNgphJj3B3ElwSw1OeGQwCfR2pvryso6LSBmbI9tRB1b6JlL75V 8m5t43OdOl6YppzzzUNhhcBnf0hynAha4t2cwfDo+vrJOX9vj3RC1ohF/9uHAQJ/3XFr O4FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=SdWIssX3UlipZd2mlKN3drczp3qZUGtM9tMY1jDasSE=; fh=09d/kAmvsiQK/9H6QfD2IVd8Uj4z7hjqLNotI89tN/8=; b=NFPSsCx9Mxmp1b3q5dzzbg9Ghv/lV0+rg4yW8Yp6+AuU/0wVQCRtlc6PqACzFm1JDZ 9rN4nsmBiLQ9kEqknHmp5fjoDV4nuviYbJDg6R4bS2POep/5fPBN9YpbPl08jUHWs5dy QTp2iDdygoIFDpGRsi8bDqx7upFGpwijBq5pl0cs318p2L0/lXy6bTkAft4mRutEGrnh RtA6otTtXqxR34jPs6SXlZn4Gytf+4yeBOxTZ/RdX4eV5l2qj+9bLk1gAh7Z1oFbg3ib IzvtWzfAUEY5fRTzoCSfbVJgOlk5I6O6sCjfDG7ZX9H5Vmza0RAPgz4u2o/WWm+Zz+KZ UZzQ==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776857215; x=1777462015; 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=SdWIssX3UlipZd2mlKN3drczp3qZUGtM9tMY1jDasSE=; b=S2lUQnvJ2kyL0LQh//SAmT5nmO62RygzP/xjM0zwuqfAMf/F49Y3Dn+O4xnF2/c3tB dovHyEB+oY7NKDMksJF2eIZwu5bLePVx5VTqSQFBuItQ9nHh8DuyAe9GdAylfQyAB9W4 J+uma61dDYlghGaGGP7ZixvgrHs1tRmiKmmzYPib4yucA620n+akGgHSojd4WvrQBQJH LFUWXboMsCWLrqPLIRHAOpX3qULMMN83bxj60xXWVpEEJR0Zs/CudcdUx3F2mj1BZY7R 6nVN9qK7r/eYfzWZQXCkjOSrhamdFzL35iMicEiVzElCHUEsvRnSI4N0PuCyDdv4kgJe NeYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776857215; x=1777462015; 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=SdWIssX3UlipZd2mlKN3drczp3qZUGtM9tMY1jDasSE=; b=qKIBvTAU//TpfjEjceY5RwHHelv69TBKPFnco9QCdoIvFKmA1/PDIzDD+yEgzCy0C6 ZPgBv7vP0PcOx59f9hAkjedr0qoD2chPtszZeR9Zboh74rE2EQOa/kJ/c6FubnaOu5a9 pMoW6rlyCF5zn+RfyKpDEeR4CqGLbx9pAc4INsEhIZLDQ8lIed1VB6T8CruEIwXtX9ph 9OCbCuNl4tburSHwZM7IwtVx4XYglYuIx3AcWer/7psIw/GthJACW9XBXKUPD8kcU8Jy kLGMl/pitOJs8I2c1HsZFbFVUGWoHyeStPIUPxqJ9DxVNnkmayE61Vf2a8VbzUtBUx51 832Q== X-Forwarded-Encrypted: i=1; AFNElJ8TDBR6eux0irUvtY6UJ4up6J22/1NaoombSdo3trMy4kPRLT2rCthuR4b6ApURFyKrPKD0FN2rnioGWe/z@postgresql.org X-Gm-Message-State: AOJu0YxF8qtcOLfdQ6yLowR0imuMsD2sYTZHPAJJXLJy3d1oBB84VOpv iPiYkmasSpa4BI9S4oK2WFkwvGpoWHGGJId3MnBjlbnysKAlinfuEiJJaB6wicGeQnL0weJdk0V 9p4GFYe2pR0xJVT1PScktH7yImS5KRFI= X-Gm-Gg: AeBDietYPt53Rf+kKZPAwcU77z6Tuy4EazHdq0MjcKviRpD6vYzIGCHAdykm69ieORi ADfvWSWe1aNs1dgunwlbQ2zV/Sb5cVbj3OGVD76xZWH/SnZPJ5ISPNx2NLpsJbo1hjlRc73iZtL aMumLiDBSmOh9rFdilW6oDdzISiqoIS9d/ENY1tOCyrW6lcwssQMPe+zldH+LaK39vmZY59v6Xu Y2YdvrHK5kSmoRo0w2/Yz3GjvZiKVUhFJPbpCRYCkwnsWYkXk2FQdXyjx6UNS4wHSA12Nk+s2Q8 zsrgH/p9H0LUVUKvIv8rDFaeQOHStYOGarcBErzVN1mVLNpAauSSZ52y99ms6WOWMRvmAHF4r03 55mLGL1VJTHXtSmdx X-Received: by 2002:a05:622a:8d07:b0:50f:c65f:a4fb with SMTP id d75a77b69052e-50fc65fb260mr7953661cf.11.1776857214841; Wed, 22 Apr 2026 04:26:54 -0700 (PDT) MIME-Version: 1.0 References: <31d04a1b-c0cb-4e6f-a344-0db048a3b673@gmail.com> <414c3430-77a9-438e-9dc0-c66033f6be63@postgrespro.ru> <271ebb35-8d8f-41c3-9d95-5c1e5b416216@gmail.com> In-Reply-To: From: Kirill Reshke Date: Wed, 22 Apr 2026 16:26:43 +0500 X-Gm-Features: AQROBzC448OUonx2abJRaLiwnK7zGKRQ91gNOQvQ_mNzQd9QuE4YQDbpruJ3eXQ Message-ID: Subject: Re: MERGE PARTITIONS and DEPENDS ON EXTENSION. To: Alexander Korotkov Cc: Matheus Alcantara , Dmitry Koval , pgsql-hackers 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, 22 Apr 2026 at 16:24, Alexander Korotkov wro= te: > > On Wed, Apr 22, 2026 at 1:48=E2=80=AFPM Kirill Reshke wrote: > > Some minor comments: > > > > > +-- Sanity check: the extension can't be dropped while dependencies e= xist. > > >+DROP EXTENSION test_ext3; > > > > This exercises something that already works on HEAD (note this is DROP > > before first MERGE partition call ). Do we really need this? > > I've removed this. > > > > +-- An index created directly on a partition has no parent in the par= titioned > > > +-- index tree; merge must ignore such indexes (they disappear with t= he old > > > +-- partition). > > > +CREATE INDEX part_extdep_3_extra_idx ON part_extdep_3(x); > > > +ALTER TABLE part_extdep MERGE PARTITIONS (part_extdep_merged, part_e= xtdep_3) > > > + INTO part_extdep_merged2; > > > +SELECT relname FROM pg_class > > > +WHERE relname LIKE 'part_extdep_merged2%idx' ORDER BY relname; > > > > Looks like this test is also redundant? This does not test new DEPENDS = ON logic. > > I've added the dependency on this index to check index disappears with > its dependency. I think this would make this test more relevant. > > Kirill, Matheus, are you ok with these change? > > ------ > Regards, > Alexander Korotkov > Supabase v7 WFM --=20 Best regards, Kirill Reshke