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 1wFVyQ-005ElU-2S for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 11:42:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wFVyP-00DVtS-2E for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 11:42:29 +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 1wFVyP-00DVt6-1I for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 11:42:29 +0000 Received: from mail-dl1-x122a.google.com ([2607:f8b0:4864:20::122a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wFVyN-00000002FHh-15fL for pgsql-hackers@postgresql.org; Wed, 22 Apr 2026 11:42:28 +0000 Received: by mail-dl1-x122a.google.com with SMTP id a92af1059eb24-12c565476d7so12634263c88.1 for ; Wed, 22 Apr 2026 04:42:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776858147; x=1777462947; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=IrSD1x+Q++mf6pUDm5m8hJISkHPqGTg2DF9HkseTSmM=; b=QIZAk580Z/hjFGZjuhH6ahu3rvSYZhFq83LqNsy+LpawdlvC4UZfWYPgCFqEGey+up oyaiI+C3wO9L93p+GJibv1bEYe0XO3sLfzDi5CUPTbzR/YjHsGMbDh5qepQRmvG9DA2Z VVw7JhX182kt+AfFYb4PmFxeIv/m5Va/uLKCGaBd9A0eMMo7+Qsp3z4j1avOCJstqtBF bBDug+ICT+CVmpq/+chmayNiV8L/FCciUaViGQ7J+zaVKW3FOMfDpZOeti8dfEMCI1S1 baMqNEfGf3MIe8gCQ1DtWiMnObrmD01DkmoZMyKnUBxGhqCSdlFyBz0KA17I2MZAHEEc SKxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776858147; x=1777462947; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IrSD1x+Q++mf6pUDm5m8hJISkHPqGTg2DF9HkseTSmM=; b=HnPRSN2/EyGw4oK8qFA7UkexIdpPJ4+1t0iO7zovrpOx3zaNN6aLhAm7gO6T+d0630 i45XzxwcZ6o0l9nmhn60QC93DpD0CpMqswPI4iErk9MCCEhpXLuUjuGFcq7VyVMrOIn3 zeiaV2NlwvyhUdFbkWXplwe+FDII6QNGeIAAj1TG4UDN1R3B0/cDwDsABoi16MGiUYN6 f49RGwI0IV5mPmsVmi4eNkCPSLGI+vflbqzN9Ysvb96/Ppdu3OXh3dnwkIdJ8OukxncA iS7xpbyi92TDhXvo7KzjWI0fg/iBWOQKd0nwK3eRXA29KQ8tWeFtueT5gs+VbpSX8HrI Eayw== X-Forwarded-Encrypted: i=1; AFNElJ/w7KbYyHaKSuML5EDeDjwYSUkFYuzrmMRJ3CJeD2moto0z6rKwoXAgqPMwYf7pYHV978aONPW9flUtNTlh@postgresql.org X-Gm-Message-State: AOJu0YzVDx1eIT0RZ8NMfyDHn9tUHoTxzDyBRQkIz7WR8QfG2HyvKMRZ jelk46/RFe2d+HMqzRBF3vDwiJPcmvtvf0BfvEUadFcSXTwVt+Q0I5wrkvrHiQ== X-Gm-Gg: AeBDieu0oU5OVwe+EEMjQlsrl7krZF7D71ENJQ8Xjg3sb9g6lOsf48svlaIJDoWIxUd 2nxf5iqZ7EH6ff5UihYTbdHEaUbI4B2EdCCJ9ta3znF+us5+QnVkTMNK4+GNHpgq4Z4R/w+rNZY 6bvCHropgb95FKRe2ZUAHIcuEJN/oRYKerl1v6xw4mHQyicpnouciMEjbTb221bGiayUV3L2+VC qQu06mwbpkumTblQz4IzJr19dJc5YgPHJ7PCEPv4/0vRpGZrw+RU571UiWMLaUorNW9+F+QdmRx 9IScvkHxGhQd979NFZlJzUEV13qp5RUJMJU0seh/J0fanSTo29CUTX00bHwPRnej+EGXK4NNgv6 JqxsNe8DLHDugREFPP58w/HHMl5y/KfdMao/oWlb+8TUL+cQCHI3Yw4FcA+jvZrfSTtOkkay0xX t1Mcv4mpkni/rZhtxIHTChppXTmgRXNkgcgso25ycEdevCork7eq3JFZodQ3Jzh2F5iQyMXYK/2 78WkKp5KnHW8mCPWiAfJdZxLM134n96 X-Received: by 2002:a05:7300:fd18:b0:2c5:b972:b436 with SMTP id 5a478bee46e88-2e478c1ff84mr11405427eec.23.1776858146625; Wed, 22 Apr 2026 04:42:26 -0700 (PDT) Received: from ?IPV6:2804:14d:328a:a59c:ec56:84f1:3be9:67e8? ([2804:14d:328a:a59c:ec56:84f1:3be9:67e8]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2e53ccce426sm23266303eec.16.2026.04.22.04.42.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Apr 2026 04:42:26 -0700 (PDT) Message-ID: <62f0b38a-a0e5-4056-9f9b-877a482fdb7c@gmail.com> Date: Wed, 22 Apr 2026 08:42:23 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: MERGE PARTITIONS and DEPENDS ON EXTENSION. To: Alexander Korotkov Cc: Kirill Reshke , Dmitry Koval , pgsql-hackers References: <31d04a1b-c0cb-4e6f-a344-0db048a3b673@gmail.com> <414c3430-77a9-438e-9dc0-c66033f6be63@postgrespro.ru> <271ebb35-8d8f-41c3-9d95-5c1e5b416216@gmail.com> Content-Language: en-US From: Matheus Alcantara In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 22/04/26 08:34, Alexander Korotkov wrote: > On Wed, Apr 22, 2026 at 2:30 PM Matheus Alcantara > wrote: >> On 22/04/26 08:24, Alexander Korotkov 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'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! > Thank you! -- Matheus Alcantara EDB: https://www.enterprisedb.com