473,388 Members | 1,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

CREATEDB takes too much time.

Hi,

I seen this question already asked on this board but without any awnser... http://bytes.com/topic/postgresql/an...ses-postgresql

We have the exact same problem. Our server is hosting now around 1000 db. When we try to create new db, we have to wait around 2 mins.

Here a strace output (just the "slow" part block).

Expand|Select|Wrap|Line Numbers
  1. 1382364648.058351 rt_sigprocmask(SIG_BLOCK, [PIPE], [], 8) = 0
  2. 1382364648.058371 sendto(3, "Q\0\0\0\33CREATE DATABASE test;\n\0", 28, 0, NULL, 0) = 28
  3. 1382364648.058411 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
  4. 1382364648.058428 poll([{fd=3, events=POLLIN|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
  5. 1382364786.300017 recvfrom(3, "C\0\0\0\24CREATE DATABASE\0Z\0\0\0\5I", 16384, 0, NULL, NULL) = 27
  6. 1382364786.300052 rt_sigprocmask(SIG_BLOCK, [PIPE], [], 8) = 0
  7. 1382364786.300079 sendto(3, "X\0\0\0\4", 5, 0, NULL, 0) = 5
  8. 1382364786.300098 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
  9. 1382364786.300113 close(3)              = 0
  10. 1382364786.300195 exit_group(0)         = ?
  11.  
I think the time to create new db will continue to grow while we create new db.
Do you have a work around to this issue?

OS: Debian 6 64bits
Postgresql: 8.4
Oct 21 '13 #1
0 1227

Sign in to post your reply or Sign up for a free account.

Similar topics

18
by: swaroophr | last post by:
Which of switch statement and if-else statement takes less time to execute?
0
by: JJ | last post by:
Hi, I'm having a little problem. I use the following code to open a .pdf file from one app. : System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(); string path...
7
by: nicholas | last post by:
I have a page that changes some data in an sql-server database: it inserts the categories for a selected product. The user checks some categories in a tree (with checkboxes). These are the...
1
by: premgrps | last post by:
Hi, I have a table of a million records and wrote a CGI-PERL script to display the results based on the user input. The results might be anywhere from 100 to 1000 per query and presently I am...
5
by: raybakk | last post by:
Hi there. If I make a function in c (I acually use gnu right now), is there any way to find out how many clocksycluses that function takes? If I divide some numbers etc Var1 = Var2/Var3, is it...
1
by: Lady dyna | last post by:
Question:How much time is required by a machine to transfer a file of 6MB across the network with 60Kpbs? Now if file is broken into packets, each of a size is 1000 bytes then how much time is...
0
by: Usman Jamil | last post by:
Hi I'm writing a socket client application in C#. The problem is that the statement IPHostEntry hostEntry = Dns.Resolve(szIPAddress); takes too much time. Even if the IP address is of a...
3
by: Mauro D. | last post by:
Hi, In my usercontrol I bind the BindingSource I pass via property to all the control inside the usercontrol. For example Control ctl=new TextBox(); ctl.DataBindings.Add("Text", binding,...
4
by: Senser | last post by:
Hello I am trying to write a litte program which let users search für other users with an LDAP connection. It works fine with some search operations but it takes a very long time to "open" the...
0
by: Man4ish | last post by:
Hi, I m working on Java application (Spring) Demo Application(Hello World) in Netbeans. It takes too much time in downloading maven repository. There is only one line that need to printed in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.