Re: How to efficiently duplicate a whole schema?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sebastien Lemieux <slemieux(at)elitra(dot)com>
Cc: Postgresql-performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: How to efficiently duplicate a whole schema?
Date: 2003-08-06 21:47:36
Message-ID: 9140.1060206456@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Sebastien Lemieux <slemieux(at)elitra(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2003-08-06 22:06:52 Re: How to efficiently duplicate a whole schema?
Previous Message Stephan Szabo 2003-08-06 21:41:43 Re: How to efficiently duplicate a whole schema?