From: Christophe Pettus <xof@thebuild.com>
To: Siddharth Jain <siddhsql@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Some questions about Postgres
Date: Thu, 3 Nov 2022 10:42:44 -0700
Message-ID: <36F69BEC-B4F6-41E3-8AE1-B5699DC7AB42@thebuild.com> (raw)
In-Reply-To: <CAPqV3pTunCLEdVMM760h0W8z4ek=LgHTzCWKcCPi52HaO8peWg@mail.gmail.com>
References: <CAPqV3pTunCLEdVMM760h0W8z4ek=LgHTzCWKcCPi52HaO8peWg@mail.gmail.com>
> On Nov 3, 2022, at 10:38, Siddharth Jain <siddhsql@gmail.com> wrote:
> I read an old article comparing MySQL to Postgres and wanted to get answers to following questions.
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: xof@thebuild.com, siddhsql@gmail.com
Subject: Re: Some questions about Postgres
In-Reply-To: <36F69BEC-B4F6-41E3-8AE1-B5699DC7AB42@thebuild.com>
References: <CAPqV3pTunCLEdVMM760h0W8z4ek=LgHTzCWKcCPi52HaO8peWg@mail.gmail.com> <36F69BEC-B4F6-41E3-8AE1-B5699DC7AB42@thebuild.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox