From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Guyren Howe <guyren@gmail.com>
To: 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 12:25:53 -0700
Message-ID: <7e758c6c-6e6f-d6b4-6ce5-55ac2bb95586@aklaver.com> (raw)
In-Reply-To: <E72D67A1-66F6-461F-B4FC-AF032AFEDE84@gmail.com>
References: <E72D67A1-66F6-461F-B4FC-AF032AFEDE84@gmail.com>
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.
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, guyren@gmail.com
Subject: Re: Reproducing query plans in empty database: can I just copy stats and settings?
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>
* 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