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 1wFVCh-005DHU-2B for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 10:53:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wFVCg-00D2bn-2d for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 10:53:10 +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 1wFVCg-00D2be-1i for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 10:53:10 +0000 Received: from mail-dy1-x1335.google.com ([2607:f8b0:4864:20::1335]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wFVCe-00000002EpV-1j6k for pgsql-hackers@postgresql.org; Wed, 22 Apr 2026 10:53:09 +0000 Received: by mail-dy1-x1335.google.com with SMTP id 5a478bee46e88-2c156c4a9efso7001213eec.1 for ; Wed, 22 Apr 2026 03:53:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776855188; x=1777459988; darn=postgresql.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gzE9c669ciVZUSsmExCwhNLoZRXt41MbJ+La/k1P2ds=; b=fcF8R8iQuvxruNbLRDLYTtJKqiEjFZyB/fV7X8mjEcgGNKtrbfGg7x+vSv1KT1r/CT WADJuEVtY5A4wrAJnqnIZVChV+vf62/sGPnsCshDTR0NLUvFQTIMVOLrvkH5vfk+uy2O 7tjLDBzsqbjpk2yhCFQA8AcuOC2DPzGw+3dugk/QqRefSwn9mP2tFI2+y0Hofxjyse3n zZiPQnRKFHi7DJKo6GXhi1rVginuylpPm4p9xDJ/NaK8b6dNTQ2X88iaQts8sqNhU1yv ewrkay8WLz3s3wqYjTL9+ic+Fy6x9LBLi0xUD7FcHTqwLWK2AJxV0vqQ9nCY+VjDh4zW 4ceg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776855188; x=1777459988; h=in-reply-to:references:to:from:subject:cc: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=gzE9c669ciVZUSsmExCwhNLoZRXt41MbJ+La/k1P2ds=; b=UhRI5+yRM/QuCaRkIr6v8plxVcje9Bbn8lcGr3Shp8Y0WjHNHWpqwTjhcY6PaXOW17 6eIQO58/66jE89nj3ZSrrovQp1L+dAEOtD0+Ao32SI1YZN6xcQbVzOn23wZJ/Kg5tndB NqlStChvkuwk6Hg05ZpX9XiV2jnpeNXXs1fn6QaVRk1NHE0eN5ItQbqs00c2BLZSmv45 Hje92OlD5bGf6aCYSuZkkexL3KslKiCzJgtRXuBfe8F3fVoxJcgiIGXddd6H0tfrFw1W aRf8RVNOd0LcGJr9q8fcvg9ZH/yDmPB8xG6SgYCEAogDbLsplkzhI+rBNShdjg8if0QR wO5w== X-Forwarded-Encrypted: i=1; AFNElJ+KltLFF6CWO2GcSNVElgYjB/sUbqVj0GmMGarZhFHKsfu3ugzKlkaTYetRFztYiqmF/E9zDjlkzbrOWcjl@postgresql.org X-Gm-Message-State: AOJu0YyOVt6QL+lO+vGlt5L5tBMo0bqxdD/R/gnr8rn0aLKrnfQB60dY RTY0oRDW+paw6T4I9MsyatkaKJlp+zIgbNAeI9lkpbcJSyK450obuc/k X-Gm-Gg: AeBDietxuoldB23hbAUPEpRQ/MN04GBdZBhctp7BtYHUWj1d7Mxia47aN8s1fSJtEEV GibNleAJjzHfJOKjK9wiFCY4vj91MwEEQ6qCBqS+lslOdDAPiyWKT6WrvXu34D5WYYi6DZIjLg6 HIMIcR0mFvh4pc+IB8eoowbYhQWwWs0mA/WyOCbE872enMvvnvYGDSvbYKiZjM+WPHUZ93wClUH VGb2SyRfyfPZrINwnfhVDE7iFMdZFF4Stbaf8uQUW4vbVfL06/4SA3Pau5yZcciV+1oLyzXYwCL y9wjSjFYbKr3yaObn8MhAihsMK+wxsMv+jkaPEE+AkYaFwdXtGmZzAFhfw7D7Ho4/n+FuPupijE ohxQbTU1zicb5Nolz4t5CmsDVAnHkPn5tpGuHRfpKmt+KVMpGGLmIe7UXp0d0dovHg4l1umCIo2 H3gr7YCP5TZjInLnJBu/G7hZfHuHeic/dGpnBjRUz4fXuuhgxAqvBW/x8= X-Received: by 2002:a05:7300:8628:b0:2e2:d94d:6175 with SMTP id 5a478bee46e88-2e46557c96dmr12629456eec.12.1776855187750; Wed, 22 Apr 2026 03:53:07 -0700 (PDT) Received: from localhost ([2804:14d:328a:a59c:2991:f8b:77a7:8529]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2e53d2cfc1dsm21998072eec.22.2026.04.22.03.53.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Apr 2026 03:53:07 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 22 Apr 2026 07:53:04 -0300 Message-Id: Cc: "Dmitry Koval" , "pgsql-hackers" Subject: Re: MERGE PARTITIONS and DEPENDS ON EXTENSION. From: "Matheus Alcantara" To: "Alexander Korotkov" 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 Tue Apr 21, 2026 at 4:35 PM -03, Alexander Korotkov wrote: >> > I've revised the patch. >> > 1) collectPartitionIndexExtDeps() is rewritten(). Now it works in >> > three phases: collect, sort, compare. The comparison phase requires >> > strict equivalence of dependencies and doesn't depend on the order. >> > The complexity is now O(n * log(n)), which I think is acceptable. >> > 2) PartitionIndexExtDepEntry struct now have indexOid. So, on >> > conflict error contains both partition index names. >> > 3) Tests moved to >> > src/test/modules/test_extensions/sql/test_extdepend.sql where >> > test_ext3/test_ext5 extensions are available. >> > 4) More tests for different scenarios. >> > >> > Could you, please, review this changes? >> > >> >> I think that you miss to include the patch? > > Yep, here it is. > Thanks for the patch. It looks good to me, and I confirm that it fix the issues that I miss on the previous version. -- Matheus Alcantara EDB: https://www.enterprisedb.com