From: | "Karthik(dot)S" <skarthik(at)midascomm(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | error in creating database |
Date: | 2005-12-06 12:26:20 |
Message-ID: | 4395836C.6070205@midascomm.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Dear all,
I am using postgres version: 7.1.3 in Red hat linux : 7.2.
I am having a script (uses psql) which drops and creates a database by
logging
into 'template1'. This will be invoked from crontab.
Sometimes (nearly 50% of the times) the database creation fails by saying
"ERROR: CREATE DATABASE: source database "template1" is being
accessed by other users"
But I am sure that none of my scripts access 'template1' at that time.
I have also checked the 'ps -afx' output (logged at the time of failing),
but no suspects found.
Kindly give me a solution to overcome this problem.
Also kindly tell me a way to find, which process is accessing the
template1.
Thanks in advance.
regards
KArthik.S
From | Date | Subject | |
---|---|---|---|
Next Message | Howard Cole | 2005-12-06 12:40:39 | Re: Unicode Corruption and upgrading to 8.0.4. to 8.1 |
Previous Message | Marcus Engene | 2005-12-06 11:44:27 | Re: fts, compond words? |