dbTalk Databases Forums  

[BUGS] BUG #1283: Queries slow down after restoring big db

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1283: Queries slow down after restoring big db in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default [BUGS] BUG #1283: Queries slow down after restoring big db - 10-07-2004 , 02:55 PM







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.


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #1283: Queries slow down after restoring big db - 10-07-2004 , 03:48 PM






"PostgreSQL Bugs List" <pgsql-bugs (AT) postgresql (DOT) org> writes:
Quote:
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.
Did you ANALYZE after importing?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.