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 1wFVHb-005DNz-0N for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 10:58:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wFVHZ-00D5db-1B for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 10:58:13 +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 1wFVHZ-00D5dN-0I for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 10:58:13 +0000 Received: from mail-dy1-x1332.google.com ([2607:f8b0:4864:20::1332]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wFVHX-00000002EsF-0Mtz for pgsql-hackers@postgresql.org; Wed, 22 Apr 2026 10:58:12 +0000 Received: by mail-dy1-x1332.google.com with SMTP id 5a478bee46e88-2d832f2f44cso4858587eec.0 for ; Wed, 22 Apr 2026 03:58:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776855491; x=1777460291; darn=postgresql.org; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6RvNNQ98IF4NLKy8WLX+r713a50kAeZ2MSevL3+t1vE=; b=f3RrEQlPOq3CgtDw5mKqK188+iYoqCSR5lnxJQStd76NIaT4EqG9u/aheF0gQ7ypjF Yw9qGVym3jcE6S08urmqijrpMRNd3Uo3G89lZ6CxU0rsY+lR35yzj1YhLo13AAPfONDd XQYUxVz2jRWJm86Z2TGDuaNUU9UI5Mg2Ci8LWiu4+olfywrZjpL0diydBU14FD+gLIIp 1R47Tzb5oPgmJWYuZwoRO+5EggaSQQ7ROACpvsx07l8sWwjRaQItcdRqM/XnWX42JIEU hW4q07DMsKw0+57WA+dup3ncYUriMPmk+DrZDTX/LhyPxDeW7TCJGD/o3cOoA6QKy3Mk p+sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776855491; x=1777460291; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=6RvNNQ98IF4NLKy8WLX+r713a50kAeZ2MSevL3+t1vE=; b=oHBKpU7YuVRSAxRVQI7FNPsFaDaoSDdwmGthJNyhH2ZC79BH/RoRBAMRyCzV+Lf3yM k/+LtpuWHaS7hypnW5B0TyQ0MxN9VDo7nNBVpTX1CUnlKsIrp1aVRIxnzSIehSVUvj1U /BLVzSiztDmU+mk0vgtGMBKd1Q2UZMTfkbXZAKLDcSBoD8gdkw2gOgc5ZjAvS7s9gjld EvanULwxvSkWqGmXTytbaAODtaLha9x8ZHxDcjQKnZ6nq3Le4mIny8AN3KLFbZiCyTwC TN0fDyANWJsH0bz10CmTMjI7G81CKwlCmh0Hiws8ZtktihZ5qPnTy1aUD/8nMkJO4Pyp IuZA== X-Forwarded-Encrypted: i=1; AFNElJ+kBy2yccN+rfr2payz+Qn/r3pxH0VYrqPXH/7sjFX+x1Jd62k961m12r+zrUxZq48wi16oKm2hXg2IBfmX@postgresql.org X-Gm-Message-State: AOJu0YyaRvwHPbbiWHcmn7xUA1sdCsikis8YHL9XA0kZCqlI1wbRXT8b qlOPiAcZtGXmegCrZvP0qy+w439nBFlxZ7I2UX3HD7P5jrGrEoi2fU3K X-Gm-Gg: AeBDietJAs75GIv48f+XCfYtSGP9XKL44r3oUFOhu+aciqgNXsc9r9WcB2QbvtpZG1G bG+jUlr8we9/Wx31UasbQKPMCW2hCvUIxhPfliSD+SD2XzVl0s5nNg9+lt2Q77ArCK9rZWgRrZV sRimfCToZ0GXu1/deo8EDOEBjLg9xhbwhJQo4OGt0gvtP2Zm7dCXz/NIkR8wGIVzn0zz5I4zUOc IkoCCHuD4zcVNpZQbQSCek0sQKWmv1g5ENZbpqGX2yprlFwLDR5+KcjuSzMke0RUgvfanzJthq4 nUDOgFc1V73p8kCoVN1TXcfyJ8wDj3gtWCWhg/zpMBBbvir8ZbjoTx7NSFt/q7HO9g3jeH9SoIg Uu9M9aeJqitIYfRLZ9vsL0tijF31obiK+Virc1ePHDoCj/qa/BMM5XvBHGmuIy5ej/qbuj/RF9m nJRXi9jzfZT4jHxFxU2ZkhNnpJ/8N76zlElim1n4VW/2Kc1Bhttz8zESg= X-Received: by 2002:a05:7301:1f01:b0:2c7:5a7b:e8c0 with SMTP id 5a478bee46e88-2e4657714d1mr11474864eec.12.1776855490465; Wed, 22 Apr 2026 03:58:10 -0700 (PDT) Received: from localhost ([2804:14d:328a:a59c:2991:f8b:77a7:8529]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2e539fa5c38sm22083793eec.5.2026.04.22.03.58.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Apr 2026 03:58:10 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 22 Apr 2026 07:58:06 -0300 Message-Id: To: "Kirill Reshke" , "Alexander Korotkov" Cc: "Dmitry Koval" , "pgsql-hackers" Subject: Re: MERGE PARTITIONS and DEPENDS ON EXTENSION. From: "Matheus Alcantara" X-Mailer: aerc 0.21.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: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 partit= ioned >> +-- 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_extd= ep_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