From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dan Harris <fbsd@drivefaster.net>
Cc: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: pg_dump blocking create database?
Date: Wed, 12 Sep 2007 23:21:13 -0400
Message-ID: <25728.1189653673@sss.pgh.pa.us> (raw)
In-Reply-To: <46E844EC.5050802@drivefaster.net>
References: <46E844EC.5050802@drivefaster.net>
Dan Harris <fbsd@drivefaster.net> writes:
> My PG server came to a screeching halt yesterday. Looking at top saw a very
> large number of "startup waiting" tasks. A pg_dump was running and one of my
> scripts had issued a CREATE DATABASE command. It looks like the CREATE DATABASE
> was exclusive but was having to wait for the pg_dump to finish, causing a
> massive traffic jam of locks behind it.
> Once I killed the pg_dump process, things returned to normal.
> Version 8.0.12. Is this a bug?
It's operating as designed :-(. 8.1 and later use less strict locking
on pg_database during create/drop database.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, fbsd@drivefaster.net
Subject: Re: pg_dump blocking create database?
In-Reply-To: <25728.1189653673@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox