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 1uHmod-009gpV-PT for pgsql-hackers@arkaria.postgresql.org; Wed, 21 May 2025 17:01:16 +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 1uHmoc-008vwK-5k for pgsql-hackers@arkaria.postgresql.org; Wed, 21 May 2025 17:01:14 +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.94.2) (envelope-from ) id 1uHmob-008vwA-S0 for pgsql-hackers@lists.postgresql.org; Wed, 21 May 2025 17:01:13 +0000 Received: from mail.postgrespro.ru ([93.174.132.70]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uHmoX-000Add-2K for pgsql-hackers@lists.postgresql.org; Wed, 21 May 2025 17:01:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1747846866; bh=f1PIijPmpdU8fB7vQHyCvB4YZhUb75ydp/Il8JQ1hTQ=; h=Message-ID:Date:User-Agent:Subject:To:Cc:References:From: In-Reply-To:From; b=E3QJOuwUBZ1I8sPsSISKJgoxGWATRfygs9cNLYGQMbDMamVif9QK9AsMhjYnUMVLx ldEsaXX9Z6qzLZGJGgjPrJzY+0P5nntWJl3W4FUiqdQsD/TIURJ4AhHb+/EwmGoEC2 JuYi0/fU9WilhVGp7ab3qTYKa61FomubcfVCLVVQKjO3QpCx0OsnGSZxh5w15igzjH i/yUDCLiumGZLmYhx7wsiVzqEUMKxsvFB8/gY3uOSh5VuDTT3Xn/jGyIOJfgSuC9JL Ljp7sUgH5QDqTwgQTbseE7WwA6DN0UVdGqWuMZcQI0LjdJ4CwtEG409LLs4sytf1wC 4vAt7UYNS+pYQ== Received: from [172.30.48.122] (unknown [93.174.131.138]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: d.koval@postgrespro.ru) by mail.postgrespro.ru (Postfix/587) with ESMTPSA id 7A20360832; Wed, 21 May 2025 20:01:06 +0300 (MSK) Message-ID: <4469cb4d-5820-4cc8-9848-7b9b5934a600@postgrespro.ru> Date: Wed, 21 May 2025 20:01:06 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands To: jian he Cc: pgsql-hackers@lists.postgresql.org References: <171085360143.2046436.7217841141682511557.pgcf@coridan.postgresql.org> <859476bf-3cb0-455e-b093-b8ab5ef17f0e@postgrespro.ru> <4e2764f7-f6be-478f-8d7f-f921dbd10f5f@postgrespro.ru> Content-Language: en-US From: Dmitry Koval In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-KSMG-AntiPhishing: NotDetected, bases: 2025/05/21 16:07:00 X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.1.0.7854, bases: 2025/05/21 15:20:00 #27938554 X-KSMG-AntiVirus-Status: NotDetected, skipped X-KSMG-LinksScanning: not scanned, disabled by settings X-KSMG-Message-Action: skipped X-KSMG-Rule-ID: 1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > for example: > ... If in both examples you replace create role bob; with create role bob SUPERUSER; and in the second example add "set role bob;" before "alter table ..." query, then no error will be occur. -- With best regards, Dmitry Koval Postgres Professional: http://postgrespro.com