Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jH8Lt-0000Mf-Bs for pgsql-general@arkaria.postgresql.org; Wed, 25 Mar 2020 15:53:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jH8Lr-0002nN-2s for pgsql-general@arkaria.postgresql.org; Wed, 25 Mar 2020 15:53:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jH8Lq-0002jS-Kj for pgsql-general@lists.postgresql.org; Wed, 25 Mar 2020 15:53:54 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jH8Lj-0000Ko-Fi for pgsql-general@lists.postgresql.org; Wed, 25 Mar 2020 15:53:52 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id CC06E5F798; Wed, 25 Mar 2020 11:53:48 -0400 (EDT) Date: Wed, 25 Mar 2020 11:53:48 -0400 From: Stephen Frost To: Laurenz Albe Cc: Chris Morris , "pgsql-generallists.postgresql.org" Subject: Re: PG 12: Partitioning across a FDW? Message-ID: <20200325155348.GU13712@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sQTf9N6XI0Qk9QIT" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --sQTf9N6XI0Qk9QIT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Laurenz Albe (laurenz.albe@cybertec.at) wrote: > On Tue, 2020-03-24 at 17:50 -0500, Chris Morris wrote: > > Is it even possible to use PG partitioning across a Foreign Server? >=20 > I am not certain what you mean, but you can have foreign tables as partit= ions > of a partitioned table. The partitions won't be processed in parallel th= ough. Not yet.. There is ongoing work to make that happen though. Also, accesses through the partitioned table to the foreign tables can happen in parallel, of course, just has to be through different connections to the main database. This makes it reasonable to consider using a partitioned table across foreign tables for queries that are pulling back a small set of records, ideally based on the partition key so that only the one foreign table that has the data you need is queried, but it's not so good for large analytical type of workloads where you want to run something across all of the partitions in parallel (and in parallel on each of the partitions, etc). Thanks, Stephen --sQTf9N6XI0Qk9QIT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJee36MAAoJEO1sijiDR2RVKXgP/3J1aRvvrFd1995o4V0q6Azd BnWUdSpehxmRli4Dr+HYhdz+veWWLRx9oCMbNrtYfHPpK3EAqJLzgLKvCPZlDAd6 yxqz2PRB2GNKUUTOwDmyIKsd9wGe3/4mTjVfVXmo7BB28db3PAtKufrl/jVXZ74E Z94eUK114BCHUQFBAU//dblzjflhIPND8XxR6VOlMrygb9EmObn3P1fVDukl9bXq MkaRGNamYxXGznNqtZwI9Gh/QGPicANgcmaFOSbZZwJegHhudhjZkeJCvKEHkzHW NLaDJLmIxKucSLK1U1SJwmMPcIQhrTyQuAwFU25xdxb9w+UUhl5JZ1DMGwMavTo3 j7juUjNCW57FLGCRpkq8GbdJUUfH3XhUDeE0JKIvOQCv7nlerZMvHNV+Lb/s1rdd leQQiZvu3cw24MOMXk3rmxETZ+0ggyTEsHrdqR5yXI/Hcdck0mTMQJRnDs8rYPi/ cOYsSMDpdgxCM5vr4mExyBSar2XNcJ79L0D05c8jwybfQW622tAxygY4p16ywZdh Gn6YAWS1ap7V0MU+ILNZqOSQMmONjb6bDbLi8/qhCv/fi7LSi6PybTT4F/TklX8T XIZKJFYAgy8t2BlCinAVSDBOj1VYYxS+J/4qYnmS1pHF+hoUiKMF6C4OnHRfHtkH xeqP71MkSH+CHA2UvoVp =rl6m -----END PGP SIGNATURE----- --sQTf9N6XI0Qk9QIT--