BUG #7634: Missing files in global/ after a lot of CREATE DATABASE / DROP DATABASE - Mailing list pgsql-bugs

From thomas.eckestad@gmail.com
Subject BUG #7634: Missing files in global/ after a lot of CREATE DATABASE / DROP DATABASE
Date
Msg-id E1TTpf4-0007Y5-Vh@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #7634: Missing files in global/ after a lot of CREATE DATABASE / DROP DATABASE  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: BUG #7634: Missing files in global/ after a lot of CREATE DATABASE / DROP DATABASE  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      7634
Logged by:          Thomas
Email address:      thomas.eckestad@gmail.com
PostgreSQL version: 9.1.6
Operating system:   Linux
Description:        =


Hi,

We are using a Postgres server dedicated for unit testing, i.e. for testing
our code interacting with the database. Each unit test may create, use and
then drop one or more test databases. When running the complete test suite a
lot of databases are created and dropped (>100).

After a couple of days/weeks with frequent unit test activity DROP DATABASE
eventually triggers errors on the following form:

2012-05-08 08:53:02.512 CEST> LOG:  statement: DROP DATABASE IF EXISTS
"HEAD_test_migrate_group_data_10010018668"
2012-05-08 08:53:02.512 CEST> ERROR:  could not open file "global/12693": No
such file or directory
2012-05-08 08:53:02.512 CEST> STATEMENT:  DROP DATABASE IF EXISTS
"HEAD_test_migrate_group_data_10010018668"

For now we handle this situation by automatically performing a complete
reinstall of the test database server when we detect the error. So we have a
satisfactory workaround in place.

We are using PostgreSQL 9.1.6 on x86_64-unknown-linux-gnu, compiled by gcc
(GCC) 4.3.4, 64-bit.

Best regards,
Thomas

pgsql-bugs by date:

Previous
From: pgmail@joh.to
Date:
Subject: BUG #7636: \ef doesn't honor ON_ERROR_ROLLBACK
Next
From: Tom Lane
Date:
Subject: Re: BUG #7634: Missing files in global/ after a lot of CREATE DATABASE / DROP DATABASE