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 1wFVrN-005Eb1-12 for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 11:35:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wFVrM-00DTeg-12 for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 11:35:12 +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.96) (envelope-from ) id 1wFVrM-00DTeY-08 for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 11:35:12 +0000 Received: from mail-oo1-xc36.google.com ([2607:f8b0:4864:20::c36]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wFVrK-00000002FDc-0GDL for pgsql-hackers@postgresql.org; Wed, 22 Apr 2026 11:35:11 +0000 Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-6949192b843so983572eaf.1 for ; Wed, 22 Apr 2026 04:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776857710; cv=none; d=google.com; s=arc-20240605; b=kGliB9rAZUPkSeMls69E5sPucbndej8nW4uW4Pus8XN8RiCX1gDdXv9/VhZgjxHwr+ L94vYMh+eoJ4rwLbYJATvRPhFy/qAJ0qJeg4NX9rb2x4ooix61X3seJKw3ayD7pfW5ol /+JXTWIYLCvfN8SA1DdbnZOyDcYgtiSnr83GnMysOArYXGERfa5eEWUcZKVhSjsCisQ9 tdR+4oRkJUnQ/CNbFla5rUCTb0v8IgXeJQJtZ6GDaUk+a5EgY6X5+4v1liMCw0WfcfLS lUzILufgDkO0BUOdZhPL4sxyCwD9ae1oOBlCLmh8GjFIJs6YGMOTg6RzyVjZ0mCEyWEp sptQ== 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=kwZ1tgJtDaSTimVnytzvUei7nPC+kqKRLVeY1eZmPe0=; fh=o229m3pqIzoh+/Uf2y2LvWxjHfLTsruqhY0DPoqxJqw=; b=h3w0xHl1gqiVTpOZuBrU6tf+HZvMtCm4+fAVDHwC+Aole8+yAGVi3U3fJnLmTNED9E YK+Y1N3M9RJXvmp91VtivJzFcj2Kjp4iUJvVD8y7+IcIgKCJxpatdtSBz8c5tA4Kew2z EJOEVOJB/WKVyYuViSxlhIG5B04KZZOv5DvboXrUzidKwKJuPE8QqsDkWOWTiPCg63BF Eg54WrO/1i3VfljrEKG99d1tF8QEahL7mpQsE04WOmXD+eZ1ILl2Vh8Ac0ixiDEQuCWF E2hqmtX/r5rh5y8sEpup1sCfz9th1iM7KTfqjtfNHJkdtlIcMuBt/l9bjO+anIU6a0pT zfLA==; 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=1776857710; x=1777462510; 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=kwZ1tgJtDaSTimVnytzvUei7nPC+kqKRLVeY1eZmPe0=; b=jfwyupHnWtpM7FAppfmrAqRJbrJ+OCsHQXeiU/e8jnR3QUZZShATWYGCWOLVqwgJjS fgzq5prFFFK+h31Sdvxu+QPmcUHN/TPhnkg1woe7oyYYCIbMc/n3GTSzDf/7mqKGRLqs SIN8Vx9l3qG+cN0Fh2G9TRtKqmcpKaNvM8tBxHbNsXYc+ESMWgR7gdI3tcrkM1H0hpVm tspR7VXkHLUADwkraw9Im7tfmLtHV71aodFJ9xi8qIypwFacO3z0UfYFy8TGrDvrPrLi OWDebj4r+/xA5wae3ScPiz4q285UR9uJZteo0I4LLVjTT4t96VrR2449dPYkPNBR+TRS BaLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776857710; x=1777462510; 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=kwZ1tgJtDaSTimVnytzvUei7nPC+kqKRLVeY1eZmPe0=; b=CJcRkfInqG35AjAGJ+lZVjjBAdMDeYjO79AK1LoPZo+xR9ECm1t5+UvZtDqkqa/jlz 5rDI9JEhFhRXpoajvtJWpSFc0qDeoBisA0fEk0C+wqasI61DPS5bF8V/YrMCLfG2ckS3 B8jyO4RqzPyJjGYvvIarbao4GpWrL6XAfzeISv9++jSOLpAfR/3YxXDLxLRCDJgb9piA 6Pd4BGZt23FU2ds/vFp8z6SXKvGkZ2s9Xq+mqoMgS+ujM/RdZ02BPGgIUiA7a/gt5eI0 CKJ91GaYBEPKWOxQzfLi8KtLP1jiN/mDwTO38eFtm/PCCtAqIhk6GEfNkdKF4UWS1P/B oyYA== X-Forwarded-Encrypted: i=1; AFNElJ9R/IWgWBXBk/el8i75r4KS0ujqGxhUpxNwqV/OTSHGL1BGn/WRNLOnc+sdoI2nevxFDpqAiN561gD5HQlb@postgresql.org X-Gm-Message-State: AOJu0Yzhhb1KcU1cOctTy94JGtz7EsB2yz4+fFG9nTp/UySX5aC5iFnl uHSSxGX8KgalEOvbMncQS7hwvFwvfC6Jdd6/bSpEV5FOoXwQRQGPvZ2K7emG65NO9tXouO8DdzU ottC3p+wB5LjKcdN020Dy6o+aOqeJtpc= X-Gm-Gg: AeBDietKBJ3pKUm2r5aSFiJqraAiQAfUIFpxyBmq0vfmGSlw9HLIRzCq0a2DUMC5Hhd pjYIl+nwhno9OJIOOVgUdv+mTgL5oYXEqvCA0JLU5QB6vp+16Ai2i09BoextJ+C0BJiNhCa2W0u YX2xA8oiFwPOhcoyIoFBjKSgg+EU7tmyFMPeWVdwsBXtE1Ppm+to+rnBTISCCChbrkuE6H2EwU9 Bgczeq381jrMP5hWbaYm5IWLGDS9g0cmQgX/5pY5jVMLHiayFzjlSSPhrLAilrkHMWJev9GQzbC EuADNryhl6jjVJQrfjCJxiDe+BWavuDta2eu0D4ByoYsCnP2uxpsK/kT4lsIgrHjCrZXy6rPpAJ 5TNs0Hu5bMa1eIZLZ X-Received: by 2002:a05:6820:981:b0:696:1262:2ac5 with SMTP id 006d021491bc7-69612622fd0mr251288eaf.2.1776857709961; Wed, 22 Apr 2026 04:35:09 -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: Alexander Korotkov Date: Wed, 22 Apr 2026 14:34:57 +0300 X-Gm-Features: AQROBzDhqGv3AMbAX5fLB8x7UrX9x4POrOH5Q3rqbEIEPwZAibmXVHPaIAsOi_c Message-ID: Subject: Re: MERGE PARTITIONS and DEPENDS ON EXTENSION. To: Matheus Alcantara Cc: Kirill Reshke , 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, Apr 22, 2026 at 2:30=E2=80=AFPM Matheus Alcantara wrote: > On 22/04/26 08:24, Alexander Korotkov wrote: > >>> +-- 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? > > > It works for me. Thank you, pushed! ------ Regards, Alexander Korotkov Supabase