pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: fabriziomello@gmail.com
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix O(N^2) performance issue in pg_publication_tables view.
Date: Wed, 22 May 2019 14:01:38 -0400
Message-ID: <7015.1558548098@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFcNs+oB+-rZ9T9_S3_5jV05rkwPex-eyhBcuAuok+PDJDxDuA@mail.gmail.com>
References: <E1hTTSS-0000zJ-R9@gemulon.postgresql.org>
	<CAFcNs+oB+-rZ9T9_S3_5jV05rkwPex-eyhBcuAuok+PDJDxDuA@mail.gmail.com>

=?UTF-8?Q?Fabr=C3=ADzio_de_Royes_Mello?= <fabriziomello@gmail.com> writes:
> Just one doubt, why use LATERAL with pg_get_publication_tables SRF instead
> of JOIN direct to pg_publication_rel?

Yes, LATERAL is just a noise word in this context, but I think
it's good for documentation purposes.

If you're asking why I used a comma instead of JOIN ... ON TRUE,
it's because I don't find the latter to be particularly readable
or good style.  YMMV.

(I agree it's a little weird that the original coding had a mix
of comma and JOIN syntax, but I did not feel a need to revisit
that.)

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <7015.1558548098@sss.pgh.pa.us>
Permalink:  ../7015.1558548098@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7015.1558548098@sss.pgh.pa.us

 · 

reply

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, fabriziomello@gmail.com
  Subject: Re: pgsql: Fix O(N^2) performance issue in pg_publication_tables view.
  In-Reply-To: <7015.1558548098@sss.pgh.pa.us>
  References: <E1hTTSS-0000zJ-R9@gemulon.postgresql.org> <CAFcNs+oB+-rZ9T9_S3_5jV05rkwPex-eyhBcuAuok+PDJDxDuA@mail.gmail.com> <7015.1558548098@sss.pgh.pa.us>

* 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