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 1wFVIv-005DPd-2N for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 10:59:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wFVIu-00D7gA-29 for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 10:59:36 +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 1wFVIu-00D7g2-13 for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 10:59:36 +0000 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wFVIs-00000002Et7-0on6 for pgsql-hackers@postgresql.org; Wed, 22 Apr 2026 10:59:35 +0000 Received: by mail-qk1-x72a.google.com with SMTP id af79cd13be357-8ef0ba61d46so143458585a.2 for ; Wed, 22 Apr 2026 03:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776855574; cv=none; d=google.com; s=arc-20240605; b=Dioqe2UIvDUnQigkDRmk5HhNYtM0d5+huQeR/qARc21+G9//sSmjLsJUzTD1EL0qrb pn7rf+20qaRd7qQCR6IwRT/PRVlkSm8xef+lxRNmkcQyNBaPyrHZoL/huTtU3PSiwxIt Oo5Afl0gIq9vbflBCalp71tAf1XTADFskGnuQ7XwHtFR4wYMCVSd3Sn0I9pb88YpzEpg D9EQX2hDrp/EbjaJvf5DqqMa/NaAZdN+eF7hUGAGHND/DrBzmzRy+08HlqIgH6EBi4mD PUKzMAuUwH1EsRGNTdgA6VyvRdhcyjxY+jqKsjlYS8FC7570F7NsVvBKO1aVWliIcDU4 FqSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=LAr2VH6/4jyUDRzTvsK0sW5fugOxrR+6l+bHZ5Vwq3w=; fh=urJMtpyZu+2pI+fbSHfS2Z4GPrzDH4AAjo7rpoiG4DA=; b=jbKyg4iptv4vjrdrqmjjdEwWuRmkO/XdnSUO1i/bpV6HLLHeYedCCSt83mU5QCnApU 6U6btBSnPNmkH3icCnzcMt/BDiC8dAGdLwO4lzjSEfso3tvYT5fr45kq4wv0/XbTKcoa oG6iYvQQY4NBEr1R3vhb14Pa210nqXr39YFZPMh8SRZTu27fJnZj3nIJh4mB8a6yRlRk lfAl9iUcH9srjXpSWyMG8QG2PodZ1dhhFCVnRX7NcG4Un59LzEjYGmrOM/ZLiDis/Mb+ lXuLtRPh3pdqr0gEimGryDfC56nLUjThpe5XgnNXjG8oyM4HXMgMG9+pI1Zjgail9nFN Uedg==; 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=1776855574; x=1777460374; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=LAr2VH6/4jyUDRzTvsK0sW5fugOxrR+6l+bHZ5Vwq3w=; b=mFD6+EuCodEgF6eE27XRrcqF4wKO1C/rJMUMDHGbXlsFDng/VOUKzKFNRRyXPq37fq ys+6d1AIaxOb88yzBdAQgGeBnyjG+z2nhq36bsu8J2oGHHwuDJgm8cZ7GGE4zS8mx120 x7Bslij4inzRViFZ0aiFvMCYaz91fk+Q4H7n3Y/rhdxBKldN18F6mFEzV1ngyyQjryVt T40/Ro1NSLjRiJjDFvag8awDrlSDV9n7HOQ4YnlIVja7RdjVuM3nfoBhIBpqjHF3xtpJ Z295WhL3rSflw8B/FmybOW6jzSh1czPog9y6bkU6fIs/+CL/LAS+Kf2MTPdCC8HUwWCO 4oPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776855574; x=1777460374; h=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=LAr2VH6/4jyUDRzTvsK0sW5fugOxrR+6l+bHZ5Vwq3w=; b=mhCFFoRliMIIMFPaNXcVSwFzIJPj3MlqwDbEj8aMeCyDJxwC/9j+7qzlCn4tIWK8ro pXQbjSuAbhD5RnGVbT3CmURLgzwoQMwG6HLG2bQOlDFUtE7nvzmj35f2DcntcD9jDkpp fFFS7YGE7CEYIuF4TXNmAbfq+RM+azt2xzi+OkdIvYP2mVderF9ff3bRqs29qkh4Soxk 8UoJP9zwWCDSpXWMIJFijleFszDK5TJ68e6lieBaazj7w1nJWqxWJFXTFNBpEeDk7rAN DpzQDAXBEElDGBf40/XuIkA32S0Wdef0zcCUjyZkGjMMDKCJtzAo9BsWjDWlesEXsAw/ st2Q== X-Forwarded-Encrypted: i=1; AFNElJ+d6lWPJ6hlhu84Vawi6n8j7o7G7/yXLJRfI1UuZZxCbDl0Ppu82fJ3jt7ne7Yeopqy5lLX0NKBZV1ExZEO@postgresql.org X-Gm-Message-State: AOJu0YzKlbevcbOwsk6QefXUy4huB7Ixw7Rc83uR7KUi2bWAoEzn4cVE 2iEA0xGMSxkmI3KfkaT+9vEmznCawP81afNTK1ZDgIeG59Bh+HDcPspJmH74is9WWqDArwRZnVm OETwo73d/94lcA9dFb/o3UF3qiZnJxtk= X-Gm-Gg: AeBDievwPHUmK8rf8aVHCbYZQ36RfCF/6hzqMdYWJ1jJmhnwhWzrNUuSA1LGSxlfzsX wGlXQTmiqcTj7qZWarAOk9/jvBMT7mrst2rQ7S9dKb2BJk77otuSJgwAFnWf7QIlSE1V7i/F/dt tEPZn85n4DFGforza2hVwEo/1D+FXsyOlFzufh4TfeYVUKLUhbnOK1PH8a+J8jRvBkCyrlTX24P Tdl+i8g2t8OWgy+rJlB7j51s1qyl9Y/C6eL7fL9ZwNbcajFVFdg6C2i9e+SatxbiyolSz0Xu9rI IspXxqHn6BpBeDiBStqNuZulaWgoRE63oplvMpge3I0doDY7NwU1vXVFE1OsrEJ3kSTvMBy+9Pf MYdRa X-Received: by 2002:a05:6214:2421:b0:8ac:b1ad:3a1a with SMTP id 6a1803df08f44-8b0280ffc97mr380550266d6.36.1776855573878; Wed, 22 Apr 2026 03:59:33 -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 15:59:22 +0500 X-Gm-Features: AQROBzBgEsxO_-LcEeMvLPgbjRJfpVPoXU4TUPddT6AlZaOY65YXmotnWOj_KTE Message-ID: Subject: Re: MERGE PARTITIONS and DEPENDS ON EXTENSION. To: Matheus Alcantara Cc: Alexander Korotkov , Dmitry Koval , pgsql-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 22 Apr 2026 at 15:58, Matheus Alcantara wrote: > > On Wed Apr 22, 2026 at 7:48 AM -03, Kirill Reshke wrote: > >> +-- An index created directly on a partition has no parent in the partitioned > >> +-- index tree; merge must ignore such indexes (they disappear with the old > >> +-- partition). > >> +CREATE INDEX part_extdep_3_extra_idx ON part_extdep_3(x); > >> +ALTER TABLE part_extdep MERGE PARTITIONS (part_extdep_merged, part_extdep_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 think that this test is useful to ensure that we correctly skip such > indexes created directly on a specific partition. Perhaps we can include > an ALTER INDEX ... DEPENDS ON for this specific index to make it more > consistent with the other tests? > > -- > Matheus Alcantara > EDB: https://www.enterprisedb.com This test is maybe useful, but this is unrelated to what this thread & fix is about, for my taste. -- Best regards, Kirill Reshke