Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hsAzm-0007nL-UP for pgsql-general@arkaria.postgresql.org; Mon, 29 Jul 2019 19:07:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hsAzl-00040U-MP for pgsql-general@arkaria.postgresql.org; Mon, 29 Jul 2019 19:07:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hsAzl-000401-AS for pgsql-general@lists.postgresql.org; Mon, 29 Jul 2019 19:07:41 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hsAzg-0002zv-Vr for pgsql-general@lists.postgresql.org; Mon, 29 Jul 2019 19:07:39 +0000 Received: by mail-pg1-x544.google.com with SMTP id i70so17980400pgd.4 for ; Mon, 29 Jul 2019 12:07:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=M3F0wdNi/lGtlZFqqRfqaMN8F3uBNHMq9kt7tdFwazA=; b=uwg/m1+mG0dkal6EaQmjtlKQEwgB2fJ7hQRh22VT8cgTSUbAwIOoK31SUo+QSCc6Ga 0G9AsMI3R0brS1XzWAOcNi8KcSBPdTTFZq3vZteVN21tRpb483xSwGI9QpReZSDtskdg KxomUelmsgje6OZ5RoenW/SEVH6r3IJvzZIp/Rkd0jkHdKxzAmSYGbML5g/c6YtRwqSw KYIsHfy0yY45YC4iZH6kh58CznTSeXo8oeSh0+FfW45T80pAUH309NuMK2zLVBD6DdMC +JlXXwKg5JBfueZ6Q5wILnJE1h5RSWpgZ0QvRH03F7ghtEQLjarGxgA1W4F2DYCKtZmo 0kgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=M3F0wdNi/lGtlZFqqRfqaMN8F3uBNHMq9kt7tdFwazA=; b=W43WeDBYdtMLh68J0w7axjIBx4kc4HL20sBBPAjN/XrnY86JfXZLeM8EmGdYon/TVh xtKP/RMW9VXiDlUQMV31ae1i/JvepXY6G1PeNkB5TjN9RGpKdRfJ9ovnD/VMd56jWNTy DUvxbSfPRbTFlyXGjGtUDh3RJUbHKeUwf0oyafTrNfxkwxBK7QJIUJRG/RRZsDvJLlUN 9pZbGUqK8XCDQHWVk6L7tAvRo/GwQ5MojDKxRyJToOH15VTjmtc+vuwAsTVmSmQQaWJq yJ18xrB3McCgFo5EzrjjXbCmT51GPO5+kBR1vityCRYvPaE5D/KjvOCiyPIyypHlqnAd IMug== X-Gm-Message-State: APjAAAV9Qq7b0oeWUp4NyM/8jdjFS0wSEfJbtYfigc6DHJ/a8hk6LnRP 7nmgTD/RTpiq7TljLu3Ew4uuf4QGZYA= X-Google-Smtp-Source: APXvYqwCmQxxdkFLTmNZ1HlT8xA77zY2wM3nF2HAl8dCxCjFAkHOHxYt2lk9m5beFwxZKl0ULHPtnQ== X-Received: by 2002:a62:2b81:: with SMTP id r123mr36834179pfr.108.1564427253552; Mon, 29 Jul 2019 12:07:33 -0700 (PDT) Received: from ?IPv6:2600:8801:8800:16e::12? ([2600:8801:8800:16e::12]) by smtp.gmail.com with ESMTPSA id r188sm103397279pfr.16.2019.07.29.12.07.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jul 2019 12:07:33 -0700 (PDT) From: Guyren Howe X-Mailbutler-Message-Id: EC6B3FE0-1C2B-4445-80BC-8BCA1C6D419C Content-Type: multipart/alternative; boundary="Apple-Mail=_AEF2AEAB-CFDA-4D99-96DF-D1E1A319B1EC" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Reproducing query plans in empty database: can I just copy stats and settings? Message-Id: Date: Mon, 29 Jul 2019 12:07:24 -0700 To: "pgsql-general@lists.postgresql.org" X-Mailer: Apple Mail (2.3445.104.11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_AEF2AEAB-CFDA-4D99-96DF-D1E1A319B1EC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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? --Apple-Mail=_AEF2AEAB-CFDA-4D99-96DF-D1E1A319B1EC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 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?3D""= --Apple-Mail=_AEF2AEAB-CFDA-4D99-96DF-D1E1A319B1EC--