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 1wFVml-005ESa-1h for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 11:30:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wFVmi-00DP5N-1v for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 11:30:24 +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 1wFVmi-00DP5F-12 for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 11:30:24 +0000 Received: from mail-dy1-x132a.google.com ([2607:f8b0:4864:20::132a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wFVmg-00000002FAR-0gax for pgsql-hackers@postgresql.org; Wed, 22 Apr 2026 11:30:23 +0000 Received: by mail-dy1-x132a.google.com with SMTP id 5a478bee46e88-2d8fa0fadfeso2787503eec.1 for ; Wed, 22 Apr 2026 04:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776857421; x=1777462221; 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=zZQn9WNYMuCQ6WLIMd+8B4H2OMgMh0ZJVIBXwFuNPGg=; b=RR+B0YkUWABmRgMW9AbYC3f+bcEf8+I1De3L1a2PN1MyGe4xWH311TIQZZZasA4iRK Ijhfh4owqFp1QqNVqVu3BxZpHOv/6KO8m4oe+5MmwxYaPQQBgEoA8BLocNqYIPKpuXiy BB3dg2NCzeCbeKvEK+YBoAbOhA7cVl2w2B6TBve20ESaijhNvfbqL9UDIXFiGJJWDXV/ EuPQop5XoMg2dFbRAmISD2fqNl3XTXSNsHHbFozuDg2rqgJlxe2J+tEYTnkEEKwbL5PQ vKLU2jA6S/UNaspCDl2WC4H7e+O635ltIruCw6oIMZ7FQbWmsOrVT/WA9GyTyhWo6RwO dttg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776857421; x=1777462221; 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=zZQn9WNYMuCQ6WLIMd+8B4H2OMgMh0ZJVIBXwFuNPGg=; b=tRzAKAUJlCace5v8rTjeQX8mAmTw3UlW5f4krtojfd/zKaM2jWIycNRemiOtXDmd2G JxyN9hQXNJzEaFbL6/JqGOsZx6QZ/0RFeKSE6b+XFz35/Xf0PK9l9WaGVgSCRfNzFVCQ g+yydGTfB0wqXPCsA2yV+O+bWmYGYaVcGtNWZMc0QwSVsV3xU+j/wHdy8eMeLKIz8KiX SEZEaa2NB8mUsiA41h+nObc8RDpcQ0EiVlU3fCJEg7w2GGb+swpmukjN1IO8r0yqrmLL 0WpER7X1rXyMX6+4KBIXy6YZG3BCOQIPLadn5w7zidVqCm621b6eDqNlraxMpbJRXwp7 hjAQ== X-Forwarded-Encrypted: i=1; AFNElJ9UaesXXi7tCQ3KBHTnvvOQZh1s+oNTF8GAhrTPttc8mWBUytF9+IGQWSLPmMD0FlBMUGOyWAcZP30+TECu@postgresql.org X-Gm-Message-State: AOJu0YyBbVQ+0FpQHMaASRTpB2umWyUIAaIAb1RH7tMIwK3vAeZilUnY 3Q1ukoYR/cxKs3jqN+3Nuwd8ab8QXAzHcTWeWwBEvX5A/DcliFTqzFTU X-Gm-Gg: AeBDieug9Huu9aOa+zQNT2n7HQRhX0NSE4loOTXRFYKy+0t46YmmgbxxT0RdSSnQn2b z/jzUPstwg80PftaSFrjZ4e5N6HGGRc1NXIXRauXOsBOCxakwA/3wtdy6t6rQZH3hM8wEXUlwAw GKy0ME3qqW3LTkhur4s+h5K2Kz0/bE2zmbimpX29QsJ/91Ke96CetOHphSrVwRe41AQVgMuiCWW 2R9y1+9R+ZxCqoq3Qo4AsVBsI7kwx2KlkOzWJlSGK1AM2S31guO5VWpf3yquMia6nsY3zMoxBrF UjEUF72h4kr0t0Y4/cnSBpksDo5/D3Pqbhp6tlG6Oxg8Ns0oRkUi2OtMM/ubHSsPzV/aPctvRQV d7gGwioZxexiXYly1NfnHnkGONjGGUwl7ry7RyWwOuC7KXZQV05DoGmwqZKFi7tY9JC+t0fbV7p QFR07DEhYNlxnRSoky6PeJHSR0IW/4CUfLEFKRV3YZV9g/IYhQhhAx1xbUuSnMgVszzAkC3MaX6 0iz5/bMT7GwhcJ34k/MBabFMRjwgleK X-Received: by 2002:a05:7300:6421:b0:2df:498e:811b with SMTP id 5a478bee46e88-2e42c849049mr10030074eec.7.1776857421421; Wed, 22 Apr 2026 04:30:21 -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-2e79c2954f6sm21628135eec.30.2026.04.22.04.30.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Apr 2026 04:30:20 -0700 (PDT) Message-ID: Date: Wed, 22 Apr 2026 08:30:17 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: MERGE PARTITIONS and DEPENDS ON EXTENSION. To: Alexander Korotkov , Kirill Reshke Cc: 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: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. -- Matheus Alcantara EDB: https://www.enterprisedb.com