pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: Maksim Milyutin <milyutinma@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Slow planning time for simple query
Date: Mon, 18 Jun 2018 10:20:19 -0400
Message-ID: <12843.1529331619@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA4eK1+-kiNXzux4uoiyQr-s3HYgY=eMqovEzYPjrq_0G4-rgw@mail.gmail.com>
References: <36adf760-680b-7a4a-e019-64f4eaaf6ff7@gmail.com>
	<9661.1528573749@sss.pgh.pa.us>
	<CAA4eK1+oP+RRG0uJSWpw=oFf3q3TPdhhRRp5byY7PSwK9H8sMw@mail.gmail.com>
	<87po0pr97m.fsf@news-spur.riddles.org.uk>
	<7067.1529246768@sss.pgh.pa.us>
	<87lgbdquul.fsf@news-spur.riddles.org.uk>
	<CAA4eK1+-kiNXzux4uoiyQr-s3HYgY=eMqovEzYPjrq_0G4-rgw@mail.gmail.com>

Amit Kapila <amit.kapila16@gmail.com> writes:
> On Sun, Jun 17, 2018 at 9:22 PM, Andrew Gierth
> <andrew@tao11.riddles.org.uk> wrote:
>> That's OK as long as we're ignoring those hints on the standby.

> What if we don't ignore those hints on standby for a specific case
> like the one in get_actual_variable_range?

Yeah, that's the same idea I suggested upthread.  Andrew shot down
my first thought (correctly I think) but the second one still seems
feasible.

> Now, if the user has
> enabled wal_log_hints on the master, it could save time from scanning
> many dead tuples on standby.

We should have the standby set the hint bits for itself, rather than
relying on wal_log_hints.

			regards, tom lane




view thread (22+ messages)  latest in thread

Message-ID: <12843.1529331619@sss.pgh.pa.us>
Permalink:  ../12843.1529331619@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12843.1529331619@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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, amit.kapila16@gmail.com, andrew@tao11.riddles.org.uk, milyutinma@gmail.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: Slow planning time for simple query
  In-Reply-To: <12843.1529331619@sss.pgh.pa.us>
  References: <36adf760-680b-7a4a-e019-64f4eaaf6ff7@gmail.com> <9661.1528573749@sss.pgh.pa.us> <CAA4eK1+oP+RRG0uJSWpw=oFf3q3TPdhhRRp5byY7PSwK9H8sMw@mail.gmail.com> <87po0pr97m.fsf@news-spur.riddles.org.uk> <7067.1529246768@sss.pgh.pa.us> <87lgbdquul.fsf@news-spur.riddles.org.uk> <CAA4eK1+-kiNXzux4uoiyQr-s3HYgY=eMqovEzYPjrq_0G4-rgw@mail.gmail.com> <12843.1529331619@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