pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Some questions about Postgres
5+ messages / 3 participants
[nested] [flat]

* Some questions about Postgres
@ 2022-11-03 17:38  Siddharth Jain <siddhsql@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Siddharth Jain @ 2022-11-03 17:38 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Hi all,

I am new to Postgres. I read an old article comparing MySQL to Postgres and
wanted to get answers to following questions. All questions are w.r.t.
Postgres 14:

- do postgres secondary indexes point directly to tuples on disk?
- does postgres use a separate process for each connection?
- does postgres use any application cache similar to innodb_buffer_pool?

Thanks a lot. If you can provide references to documentation, that would be
great.

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Some questions about Postgres
@ 2022-11-03 17:42  Christophe Pettus <xof@thebuild.com>
  parent: Siddharth Jain <siddhsql@gmail.com>
  0 siblings, 2 replies; 5+ messages in thread

From: Christophe Pettus @ 2022-11-03 17:42 UTC (permalink / raw)
  To: Siddharth Jain <siddhsql@gmail.com>; +Cc: pgsql-general@lists.postgresql.org



> 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.




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Some questions about Postgres
@ 2022-11-03 18:17  Siddharth Jain <siddhsql@gmail.com>
  parent: Christophe Pettus <xof@thebuild.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Siddharth Jain @ 2022-11-03 18:17 UTC (permalink / raw)
  To: Christophe Pettus <xof@thebuild.com>; +Cc: pgsql-general@lists.postgresql.org

Thanks Christophe. Yes that is the article and I read the response as well.

On Thu, Nov 3, 2022 at 10:42 AM Christophe Pettus <xof@thebuild.com> wrote:

>
>
> > 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.

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Some questions about Postgres
@ 2022-11-04 08:55  Laurenz Albe <laurenz.albe@cybertec.at>
  parent: Christophe Pettus <xof@thebuild.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Laurenz Albe @ 2022-11-04 08:55 UTC (permalink / raw)
  To: Christophe Pettus <xof@thebuild.com>; Siddharth Jain <siddhsql@gmail.com>; +Cc: pgsql-general@lists.postgresql.org

On Thu, 2022-11-03 at 10:42 -0700, Christophe Pettus wrote:
> > 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

This is also insightful: https://use-the-index-luke.com/blog/2016-07-29/on-ubers-choice-of-databases

Yours,
Laurenz Albe





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Some questions about Postgres
@ 2022-11-06 19:05  Siddharth Jain <siddhsql@gmail.com>
  parent: Laurenz Albe <laurenz.albe@cybertec.at>
  0 siblings, 0 replies; 5+ messages in thread

From: Siddharth Jain @ 2022-11-06 19:05 UTC (permalink / raw)
  To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: Christophe Pettus <xof@thebuild.com>; pgsql-general@lists.postgresql.org

Thanks Laurenz.

On Fri, Nov 4, 2022 at 1:55 AM Laurenz Albe <laurenz.albe@cybertec.at>
wrote:

> On Thu, 2022-11-03 at 10:42 -0700, Christophe Pettus wrote:
> > > 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
>
> This is also insightful:
> https://use-the-index-luke.com/blog/2016-07-29/on-ubers-choice-of-databases
>
> Yours,
> Laurenz Albe
>

^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2022-11-06 19:05 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-11-03 17:38 Some questions about Postgres Siddharth Jain <siddhsql@gmail.com>
2022-11-03 17:42 ` Christophe Pettus <xof@thebuild.com>
2022-11-03 18:17   ` Siddharth Jain <siddhsql@gmail.com>
2022-11-04 08:55   ` Laurenz Albe <laurenz.albe@cybertec.at>
2022-11-06 19:05     ` Siddharth Jain <siddhsql@gmail.com>

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