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 1vWsnN-00Bldk-3D for pgsql-hackers@arkaria.postgresql.org; Sat, 20 Dec 2025 08:58: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 1vWsnL-009y4O-2C for pgsql-hackers@arkaria.postgresql.org; Sat, 20 Dec 2025 08:58: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 1vWsnL-009y4G-1E for pgsql-hackers@lists.postgresql.org; Sat, 20 Dec 2025 08:58:36 +0000 Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vWsnK-001diz-1S for pgsql-hackers@lists.postgresql.org; Sat, 20 Dec 2025 08:58:34 +0000 Received: by mail-qt1-x832.google.com with SMTP id d75a77b69052e-4ee158187aaso26876021cf.0 for ; Sat, 20 Dec 2025 00:58:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766221113; x=1766825913; darn=lists.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=zjJk2YCViok97S5MP5/rB2ymOqK+TOeuWr8QWVR7dUU=; b=WuzLAFefE0yLm0mpPdWIdNqNkWVQ6ZxEdenMPJqbJ7DNJ8jzOzFSjwulaVCkshHWxM CKKDK/3y78EukZ37c/wvTq++LhCFMB8p6AtYMUyXiAEO6YWE1RURurrPBSMUDtriJHV4 QInDUBB3qEKhgBgYOEkdMz28X/hCg5v1GIFled+zPXyK+5uVbcwtJzf6iTw3UbcC7KRM xDw2Gx4ZTMiqG5usvTJoo8fl06w5y9uBKXBFB/GWkEFHzeyHvzkWtjgDXjwZb2Xt9aL2 /vJDOz1FmLwFaXsgLVaHTY4ybRUFPSrxzOU+6NYumraCpdLxLV+t9PYs2eyQK2Zc3WdG r6VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766221113; x=1766825913; 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=zjJk2YCViok97S5MP5/rB2ymOqK+TOeuWr8QWVR7dUU=; b=Vp+VFu/NKg8ubFh9iMA1dGmRD63BwDfjHPyygrzJyJZd7KhL4ArIs/yD/rYgiWqzXa ivqdDQKmMWYDycRdFEhyLnje5VJhCMTrTNu+piYW+FIVaQvk3mCSQsJ7F8uuOd5Up59m ZrSobN8TobAFBHsOjk4zdvafk1lLd2vKiTNIubfbosOoWNF5FJ1OnQhLguJ07Dl8Ibp0 Im7LufeH5dfzoU+FLn0ZpPDF3zOWWY4SIFHz2m2HK7L+AEAnV2pgAmAujgbqd2sBxw9B Z93OwWVhB0F9EaQBdw4g++x3RM4PcoaQRDaxGL4TICZ8rXFxzumNxVTMDhqIkJyLDUK+ /M4Q== X-Forwarded-Encrypted: i=1; AJvYcCXDJU39Rg8WNg/b/++3e9SlQ/l98k9DOGhoexRAiztkqIqAw8DvCp2QxRyAAgiaRGrLZ1XPcUwCxZXRSGjL@lists.postgresql.org X-Gm-Message-State: AOJu0YxU7Q8pQeqBdLicx4icpSdSd6X9Hp1SyCDAEvYkX5SF1bvBD/zw fd66pNKT9w1M2K53c17hYLp/gGIlo/XBKSAfVGa1IKfj2/Edp/VWGwM2AFDdgyLsorzSx9k68lU eRWzdPC9GCdAZ2ARst1jqHBAUk4bR/A4= X-Gm-Gg: AY/fxX5e0BD3xVWSgGZ3FJ7tyN3T+hoooqjSkHkijF2gfvhkULbACNqCsTtmjtWSqnc Ff+fQtCnIy8G/+bvsOFonCPfov8n8tBHBDxWymAaMYioI5bZqU4prL+/pQahYzDRP7JOJU4Ila9 yq2PWhJbWXZRIVSAErUGOwajLRJdxapQPNNJl6ptrSkxqrNOTIkFPo20STv6E8mAe3bCLFDPCmk Os1vIZLvOrN3ge7gicT/wfLT/wKuOVkZVVIyLBYkDKluhm16chpdpYsMjpMNVGzghzsnJs= X-Google-Smtp-Source: AGHT+IGIXCUirK/dT2y5E+nxWCpNl9vK3vGFTWaa10F3YuuW/LM4adbVGOSyDN05MwUj8Ff9xKOlS4ts+kP+Tn5J1JQ= X-Received: by 2002:a05:622a:4a84:b0:4f3:4415:e8f4 with SMTP id d75a77b69052e-4f4abd98f0fmr82591651cf.38.1766221113249; Sat, 20 Dec 2025 00:58:33 -0800 (PST) MIME-Version: 1.0 References: <171085360143.2046436.7217841141682511557.pgcf@coridan.postgresql.org> <2643645f-2a02-43de-9321-c995ab1b7ef8@postgrespro.ru> <57a94d8a-d7b6-4c5e-9001-be1cd403b172@postgrespro.ru> <54414932-9E82-47AA-902B-2DED18F07F64@gmail.com> <3280c458-a886-4c58-8e2b-4d220b73161d@postgrespro.ru> <09414bf8-9326-431c-9422-b13bddf5f554@postgrespro.ru> <29ff27f5-d359-4479-b11c-ce28e525d806@postgrespro.ru> In-Reply-To: From: Kirill Reshke Date: Sat, 20 Dec 2025 13:58:21 +0500 X-Gm-Features: AQt7F2qy7Cet_Ymq2vKlt2OlTVKqQsYuR6uGn6W82PgJul7xFNZwGNZA6JOS3gM Message-ID: Subject: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands To: Alexander Korotkov Cc: zengman , 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 hi! I have been looking though git log, noticed this commit, and did small tests. This is what I found: ``` reshke=# create table z(i int) partition by range(i); CREATE TABLE reshke=# create table z_1 partition of z for values from (0)to(1); CREATE TABLE reshke=# create table z_2 partition of z for values from (1)to(2); CREATE TABLE reshke=# alter table only z merge partitions (z_1,z_2) into z_12; ALTER TABLE reshke=# ``` IMO "alter table only ... merge partitions" does not make perfect sense and should be rejected rather than executed. WDYT?