Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqeF3-0005ch-J4 for pgsql-general@arkaria.postgresql.org; Thu, 03 Nov 2022 17:43:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oqeF2-0001Cl-ES for pgsql-general@arkaria.postgresql.org; Thu, 03 Nov 2022 17:43:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqeF2-0001Cc-3n for pgsql-general@lists.postgresql.org; Thu, 03 Nov 2022 17:43:00 +0000 Received: from smtp90.ord1d.emailsrvr.com ([184.106.54.90]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqeEx-0008Hs-Nv for pgsql-general@lists.postgresql.org; Thu, 03 Nov 2022 17:42:59 +0000 X-Auth-ID: xof@thebuild.com Received: by smtp4.relay.ord1d.emailsrvr.com (Authenticated sender: xof-AT-thebuild.com) with ESMTPSA id 2669C400B8; Thu, 3 Nov 2022 13:42:53 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: Some questions about Postgres From: Christophe Pettus In-Reply-To: Date: Thu, 3 Nov 2022 10:42:44 -0700 Cc: pgsql-general@lists.postgresql.org X-Mailbutler-Message-Id: 7270F2BA-7528-469E-A660-93B58B12BB24 Content-Transfer-Encoding: quoted-printable Message-Id: <36F69BEC-B4F6-41E3-8AE1-B5699DC7AB42@thebuild.com> References: To: Siddharth Jain X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Classification-ID: e2396804-ff1d-4137-94e5-4dfc74cefe28-1-1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Nov 3, 2022, at 10:38, Siddharth Jain wrote: > I read an old article comparing MySQL to Postgres and wanted to get = answers to following questions.=20 Given your questions, I suspect that you read the technical note from = Uber about why they switched back to MySQL from PostgreSQL. There are = quite a few responses out there to it, including: https://thebuild.com/presentations/uber-perconalive-2017.pdf To answer the specific questions: 1. Yes, all PostgreSQL indexes point directly to tuples on disk. They = do not point to a primary key (which a table might not even have). 2. Yes, each backend connection to PostgreSQL is a separate process. = The usual way of mitigating any performance issues this might introduce = is to use a pooler such as pgbouncer. 3. This is equivalent to PostgreSQL's shared buffers.=