Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZoKQ-0004lG-5E for pgsql-general@arkaria.postgresql.org; Fri, 12 Jan 2018 01:40:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZoKP-0002uX-Ng for pgsql-general@arkaria.postgresql.org; Fri, 12 Jan 2018 01:40:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eZoKP-0002uA-CQ for pgsql-general@lists.postgresql.org; Fri, 12 Jan 2018 01:40:17 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eZoKM-00044j-0Z for pgsql-general@postgresql.org; Fri, 12 Jan 2018 01:40:16 +0000 Received: by mail-pf0-x243.google.com with SMTP id p1so3198013pfh.4 for ; Thu, 11 Jan 2018 17:40:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=QxGUybcy6gNWmXrPeHYJ9ewAESQ3nGWbGWjlFPaQGLU=; b=FDhSyVjXp/cpPFFihoJowbQMyH0cNKTbPth4kleQPHDa958o1eg4HA8j5jRQ6o2Ghf 8FOpbUEv2bSXusCpGFui1qCZKDVoNICP+q4FCDDa9vvQMYoPELb1fodCI4y2MGhH69Kf RgAtJ75VsG/05onJHb6Tr0V4F63L/2j3ifOOZtIjD8RgrlTZwuLnX9pbvyihHaKw54/c cz45EsmMe/RA2yjne1nBb/hx27OLCjJJcj+WxJmmOlXHhWx+sE5BDZLs1u2HuRL6YJDm DVFGjDTaxKFV2fDJzhcyilY9kGOTDk0avsnjiPM9jNpRvQzqosoYJbTtPgrFAYM8i3wt svaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=QxGUybcy6gNWmXrPeHYJ9ewAESQ3nGWbGWjlFPaQGLU=; b=XTnNlbiXyDZgNQCFTftC5QtC7xQMNAyYMPfXIfi5sWsGdXP7Xhtpex0m6yNXOtffo3 VepKyVawtDpwYsEgb6c1BFk3STFqZ0xGvLMZBxxLqS8gEbx2VX8tz/5IJhWqd6jwGHcq 3EVULsc9sfdRXqo6uzioIJ63fXGsTQAJKA61dDCYd7JQOrbk9RC8BCxSvn0vfilGFGNs RlnKfI52Lx/FwMBXgbYwxyN0M3LLqNnLmf0RqSAtegZ/Q0j++nhTbV8yfuL6ZdJgxBek JxCr64/HW2fVN13D5JDTesbGPElGnN/nNIXWPJxrFLJrQmn+9Ka7sxjZ2MIxr1YTjXhl Py5Q== X-Gm-Message-State: AKGB3mLzp4xh/C6rKtkyhvTL3hsmCuPRVpZgGscHJ61LvBqj8ViM5kVa zfZijjM58lRmZEhlQrX5x9k= X-Google-Smtp-Source: ACJfBouY5CSsgGhzqQdACcaXneQr6oHrslGayGnNk1LuP6DIDg1d+JOP6FluPY0uh6Mtl11okkUOrA== X-Received: by 10.101.96.11 with SMTP id m11mr19745942pgu.232.1515721212380; Thu, 11 Jan 2018 17:40:12 -0800 (PST) Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp. [61.215.137.162]) by smtp.gmail.com with ESMTPSA id y5sm38301438pfl.52.2018.01.11.17.40.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jan 2018 17:40:11 -0800 (PST) Date: Fri, 12 Jan 2018 10:40:08 +0900 From: Michael Paquier To: Alban Hertroys Cc: Postgres General Subject: Re: Updating a pre-10 partitioned table to use PG 10 partitioning Message-ID: <20180112014008.GC2222@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8w3uRX/HFJGApMzv" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --8w3uRX/HFJGApMzv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 11, 2018 at 04:40:30PM +0100, Alban Hertroys wrote: > What is a good approach here? By having a some point an origin and target table in the same cluster, you would just need to define things properly. I have not checked, but perhaps this is the kind of use cases where pg_partman (https://github.com/keithf4/pg_partman/) can become handy? Perhaps Keith, who maintains the tool, has some insight on the matter. -- Michael --8w3uRX/HFJGApMzv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlpYEfgACgkQnvQgOdby QH3GTA//UYVwIvrHFOdawudxJCJuwL1nTpRCwkWyKB5QO7yMuFM40002PXxYVNes DbucOJMHG1jvWDm9swSJkXE0arr9fJX4Lw6kR/xphkZOl/yRKV1ry52ug3Uh8Sni rsmlpoToYlggOIp0sxU2PhLT9G+cGIz6ssZeVhHzGltvBnJSz8M7B6v44XXZrxB9 xZAtCHGmAFCHns818+1L/ySbsgINFsY/n08sPP9eYHrogMxyInXpGQ0Mngx9Gx17 tbCcD1zsaI0npCT0wAQ2J/jvhJXhltyHmwV6i0W65W6/S3URMtbNVvAvp2ZqbvNh zQkl+yhMQ0YyOMne4u5MfYV+rdzNVETKYI/HtbfsphlR3mj7Qvag5i/pzIieuWti FM0IXnpzmMmJvr6wKHCQ4FA/R3mKc4VArwPAeoROEOhpR56gyqAJdduiEMuC2+KX iRYnbxwEQWC3i7CZSXxZRlQdPxNsrViH664AQyD0Z5DErcfWR9tSGBTgpNUZxDJB ZgqPWZBR1fbn55+3ASzswopado6r+Ax28jtXbtyaVp7et4gViw/DT8YZSMIi1SFC zhfNsB1YXAhKISbFqZ8zwQ+JQ35UlZtiVZDGA6oMwrUj8Y8V2Dq3/HTuL6Rg3w0u lwonHfKzq/pkKUDbJaozF3dhPMjWPnHocAspBBpumunxSy4M5qk= =Z3k3 -----END PGP SIGNATURE----- --8w3uRX/HFJGApMzv--