From: Guyren Howe <guyren@gmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Reproducing query plans in empty database: can I just copy stats and settings?
Date: Mon, 29 Jul 2019 12:07:24 -0700
Message-ID: <E72D67A1-66F6-461F-B4FC-AF032AFEDE84@gmail.com> (raw)
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?
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
Subject: Re: Reproducing query plans in empty database: can I just copy stats and settings?
In-Reply-To: <E72D67A1-66F6-461F-B4FC-AF032AFEDE84@gmail.com>
References: <E72D67A1-66F6-461F-B4FC-AF032AFEDE84@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