pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guyren Howe <guyren@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Reproducing query plans in empty database: can I just copy stats and settings?
Date: Mon, 29 Jul 2019 14:59:08 -0700
Message-ID: <70D44AFB-74C8-4643-81C2-0A0143C68C47@gmail.com> (raw)
In-Reply-To: <7e758c6c-6e6f-d6b4-6ce5-55ac2bb95586@aklaver.com>
References: <E72D67A1-66F6-461F-B4FC-AF032AFEDE84@gmail.com>
	<7e758c6c-6e6f-d6b4-6ce5-55ac2bb95586@aklaver.com>

On Jul 29, 2019, at 12:25 , Adrian Klaver <adrian.klaver@aklaver.com> wrote:
> 
> On 7/29/19 12:07 PM, Guyren Howe wrote:
>> I work with Protected Health Information so have restricted access to an important database.
>> I would like to look into index and query changes for that database. It occurs to me that if I was able to reproduce the statistics and cost settings for the database, then Explain would produce identical results to the production database.
>> Can do this? Any other advice?
> 
> So what defines restricted access?
> 
> If you can't see/use the data in the production database in your test database I'm not sure how copying the statistics/cost settings is going to help.

Isn’t that the entirety of what the query plan is based on? I was hoping I could then run Explain as if I had the data.

view thread (5+ messages)  latest in thread

Message-ID: <70D44AFB-74C8-4643-81C2-0A0143C68C47@gmail.com>
Permalink:  ../70D44AFB-74C8-4643-81C2-0A0143C68C47@gmail.com/
Also on:    postgresql.org/message-id/70D44AFB-74C8-4643-81C2-0A0143C68C47@gmail.com

 · 

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: guyren@gmail.com, adrian.klaver@aklaver.com
  Subject: Re: Reproducing query plans in empty database: can I just copy stats and settings?
  In-Reply-To: <70D44AFB-74C8-4643-81C2-0A0143C68C47@gmail.com>
  References: <E72D67A1-66F6-461F-B4FC-AF032AFEDE84@gmail.com> <7e758c6c-6e6f-d6b4-6ce5-55ac2bb95586@aklaver.com> <70D44AFB-74C8-4643-81C2-0A0143C68C47@gmail.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