BUG #1283: Queries slow down after restoring big db

From: "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1283: Queries slow down after restoring big db
Date: 2004-10-07 19:53:56
Message-ID: 20041007195356.6FE145A1041@www.postgresql.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 1283
Logged by: Fabio Fucci

Email address: ffucci(at)kell(dot)it

PostgreSQL version: 7.3

Operating system: linux

Description: Queries slow down after restoring big db

Details:

We dumped a database with a lot of data using command pg_dump mydb >
mydb.dump

Then we reimported the data in this way:
1- createdb anotherdb
2- psql anotherdb < mydb.dump

After the data was restored queries(SELECT queries, with JOINs) was very
very slow.

We solved the problem making a separate dump for the database schema and one
for the data and then reimported first the schema and then the data.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2004-10-07 20:29:44 Re: BUG #1238: postgres option -Q used in src/test/bench
Previous Message Bruce Momjian 2004-10-07 19:40:19 Re: BUG #1238: postgres option -Q used in src/test/bench