pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sebastien Lemieux <slemieux@elitra.com>
Cc: Postgresql-performance <pgsql-performance@postgresql.org>
Subject: Re: How to efficiently duplicate a whole schema?
Date: Wed, 06 Aug 2003 17:47:36 -0400
Message-ID: <9140.1060206456@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.33.0308061605540.10321-100000@moebius.elitra.com>
References: <Pine.LNX.4.33.0308061605540.10321-100000@moebius.elitra.com>

Sebastien Lemieux <slemieux@elitra.com> writes:
> On Wed, 6 Aug 2003, Tom Lane wrote:
>> The idea here is to make sure that the planner's statistics reflect the
>> "full" state of the table, not the "empty" state.  Otherwise it may pick
>> plans for the foreign key checks that are optimized for small tables.

> I added the 'analyze' but without any noticable gain in speed.  I can't
> use 'truncate' since I need to 'set constraints all deferred'.

What are you using, exactly?

			regards, tom lane



view thread (11+ messages)  latest in thread

Message-ID: <9140.1060206456@sss.pgh.pa.us>
Permalink:  ../9140.1060206456@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9140.1060206456@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-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, slemieux@elitra.com
  Subject: Re: How to efficiently duplicate a whole schema?
  In-Reply-To: <9140.1060206456@sss.pgh.pa.us>
  References: <Pine.LNX.4.33.0308061605540.10321-100000@moebius.elitra.com> <9140.1060206456@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