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.94.2) (envelope-from ) id 1uPfiu-00D0Nr-0M for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Jun 2025 11:03:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uPfir-00BTqs-SX for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Jun 2025 11:03:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uPfir-00BTqN-IX for pgsql-hackers@lists.postgresql.org; Thu, 12 Jun 2025 11:03:54 +0000 Received: from mail-vs1-xe32.google.com ([2607:f8b0:4864:20::e32]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uPfiq-001clE-0M for pgsql-hackers@lists.postgresql.org; Thu, 12 Jun 2025 11:03:53 +0000 Received: by mail-vs1-xe32.google.com with SMTP id ada2fe7eead31-4e7b69c1efcso215662137.2 for ; Thu, 12 Jun 2025 04:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749726230; x=1750331030; 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=n6v7Wqg5gjFTkjPqs2yzVol9hyFs1f3HTfL2vOkGvO0=; b=g+bxn/ice+fKJGDn/4Z0JAdeM0RQxOV2gi6PblhcP0YyynJ58Xu8MKaOWnhfdpo48e iMTyXclVKYpGv67oEbJWklilc+wXrCSBp3HfwO7UpSfo0Mc1jjZjntCL4hFiAkWkmsWG KV01/BNLvJVBHheb/BDFw9Wblkf7yrZj6s9qNt9d/otx4Pc4x+Z8F/YdE2GNFiytHXKK h4ygLLYN0dMFYRibxhCTapMftJNZ9gBiIpTYKU+utEDx5V7cKjndyFDQqvwe6eV0lpA5 O7pB+RT95aqwzaMoJtZ5BB7nio8HdMwJL2zIzJJiKYG983iKkEXKFyj9SlZkH07LUdgc wkHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749726230; x=1750331030; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=n6v7Wqg5gjFTkjPqs2yzVol9hyFs1f3HTfL2vOkGvO0=; b=iZYr9zmn+VYxqUdVbS/5YMl9c7Oq7CHz+R5DquvuPmXfgLQk2jNycFDkfPDWSjhTTw 3tSyKNjf7H3uXmaPxOo5hdROtQZ2RIr+JruI6ofayNa7vyHq/np2Cx0dg7ETL5nWXKrI y7EiE5BND9KeYyWVkjot2Ih3PKPSb9ubdzOUmt2WYXBgCuguZhLuPu3oNxfyUrqXw++f VggX1Sw7rcgevt46au3Ic15/O/SZ0ZkOcwabS9zp4wt835fDgw2lHnk+lSv1yC/nItZo +pa6HGU3iSpl1ZNVccmE8loWm6jEV9H/MaellsGPJQxhxay1tHdjn6nR9YZ9uKPMmV6J gIOQ== X-Forwarded-Encrypted: i=1; AJvYcCX7UtIHf3PZGlf3b0v+5ORDyRA9syTnjEJI4RfSBe6UsbhNyY+wNEzd6+owqOL8BYyi0oFRj2NeLcwVJZh8@lists.postgresql.org X-Gm-Message-State: AOJu0Yx5lwMchK4PjDUb6OkE0RGUtaiarV3Us8vvoqeUd6a78wt3jJXA HxeM5B0velpuwe/2ih0T8pR9RCvIufy1InSCBeOTlaRL6BelV1ALrWii+xISfO0SYGGNKNQzMY3 xRdyXJLDTFEUdrZ7ICinh5rkaSMPRLwQ= X-Gm-Gg: ASbGncsP7xtw95ZLvT1cbo73TLVJ5vXDKGV26yxVz3Tw0CB7rRpjo1S+sJehSp/98Oh 5eg8CuGKLqXyGgX55ql4Ek9vCFMONsNdu+5My4w+s2FgJ3+DT6MxOu35iKqnghK6cb6KPV4w6qR LECj5JpR2DkjaNUrEEKa00WNjRXTHxpvZi4tHlGgd/bx2qaKsUBiC+5KAy4i7tIg8s8IA0ldlp4 lI= X-Google-Smtp-Source: AGHT+IFwpmNBld7ACw5yXh41ZEJlkc0tDjsVnpVYRyFPE+wafUScq4Mh30AOpR/lJeXWLqD6S8qPp6THpPfFZ7bxf68= X-Received: by 2002:a05:6102:2909:b0:4e5:a0a3:86da with SMTP id ada2fe7eead31-4e7ce8ef5e8mr1793720137.12.1749726230126; Thu, 12 Jun 2025 04:03:50 -0700 (PDT) MIME-Version: 1.0 References: <171085360143.2046436.7217841141682511557.pgcf@coridan.postgresql.org> <4e2764f7-f6be-478f-8d7f-f921dbd10f5f@postgrespro.ru> <7fdaf3e8-4c05-4739-bee6-98acc068d1c7@postgrespro.ru> <4433b492-9e97-4334-96d9-ddaaa5083099@postgrespro.ru> <67ecf5fb-e63d-4284-be75-d0479eef81aa@postgrespro.ru> <884bcf9e-d6e3-4b0c-8dcb-7f2110070ac9@postgrespro.ru> <26fe1a14-89aa-415d-a1b1-176526e54d3b@postgrespro.ru> In-Reply-To: From: jian he Date: Thu, 12 Jun 2025 19:03:13 +0800 X-Gm-Features: AX0GCFscANfInayXSqOzeL7bgmdVG0PoBZ2tDd_4cONBtwp054qWQMgLMFs8vA8 Message-ID: Subject: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands To: Dmitry Koval Cc: Junwang Zhao , pgsql-hackers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk hi. one more minor issue. + * defaultPart: true if one of split partitions is DEFAULT + * pstate: pointer to ParseState struct for determining error position + */ +static void +check_two_partitions_bounds_range(Relation parent, + RangeVar *first_name, + PartitionBoundSpec *first_bound, + RangeVar *second_name, + PartitionBoundSpec *second_bound, + bool defaultPart, + ParseState *pstate) v43-0001 doesn't have the SPLIT PARTITION feature. maybe we need to remove the argument (bool defaultPart) from check_two_partitions_bounds_range, aslo remove the comments. then we can add it on 0002 SPLIT PARTITION patch.