Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1egCe3-0000a1-2R for pgsql-general@arkaria.postgresql.org; Mon, 29 Jan 2018 16:50:59 +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 1egCe2-0006Yd-8D for pgsql-general@arkaria.postgresql.org; Mon, 29 Jan 2018 16:50:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1egCe1-0006YU-VH for pgsql-general@lists.postgresql.org; Mon, 29 Jan 2018 16:50:58 +0000 Received: from omr-m001e.mx.aol.com ([204.29.186.1]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1egCdx-0007NE-1P for pgsql-general@lists.postgresql.org; Mon, 29 Jan 2018 16:50:56 +0000 Received: from mtaout-mbc02.mx.aol.com (mtaout-mbc02.mx.aol.com [172.26.221.142]) by omr-m001e.mx.aol.com (Outbound Mail Relay) with ESMTP id D06853800058; Mon, 29 Jan 2018 11:50:49 -0500 (EST) Received: from ip-192-168-1-90.ec2.internal (unknown [208.185.19.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mtaout-mbc02.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 374563800009A; Mon, 29 Jan 2018 11:50:49 -0500 (EST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: PG Sharding From: Rakesh Kumar In-Reply-To: Date: Mon, 29 Jan 2018 11:50:46 -0500 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <176B79BB-DF9F-4863-82BE-F4A323F692E1@aol.com> References: To: Matej X-Mailer: Apple Mail (2.3445.5.20) x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1517244649; bh=5oeqBIDUCyvmDFNUWaD0DyjrmW27WTbgrl9svf8j954=; h=From:To:Subject:Message-Id:Date:Mime-Version:Content-Type; b=vopCH4/ShGUXQoh5jlX02u0vtvH1fLvVYIXXMxY2UCHcCHQZHOFQRt6fpWW9Livq9 LFzStJpOL54NoWqE4JA3UgSViR1ZY6eyhdAz9w/sbBCODOaPSv23/Frl9Ri1nOAl8j sHk7ZeLy4lXdmEpjU8Ne9NuiShjrtNWNYFja5Y8M= x-aol-sid: 3039ac1add8e5a6f50e96971 X-AOL-IP: 208.185.19.251 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Jan 29, 2018, at 09:34 , Matej wrote: >=20 > Hi Everyone. >=20 > We are looking at a rather large fin-tech installation. But as = scalability requirements are high we look at sharding of-course.=20 >=20 > I have looked at many sources for Postgresql sharding, but we are a = little confused as to shared with schema or databases or both.=20 >=20 >=20 > So far our understanding: >=20 > SCHEMA. >=20 > PROS: > - seems native to PG > - backup seems easier > - connection pooling seems easier, as you can use same connection = between shard. >=20 > CONS: > - schema changes seems litlle more complicated > - heard of backup and maintenance problems > - also some caching problems. >=20 > DATABASE: >=20 > PROS: > - schema changes litlle easier > - backup and administration seems more robust >=20 > CONS: > - heard of vacuum problems > - connection pooling is hard, as 100 shards would mean 100 pools >=20 >=20 > So what is actually the right approach? If anyone could shed some = light on my issue. =46rom your description it seems your requirement is more of multi = tenancy in a non distributed env, rather than distributed Sharding env.