database-level locking

From: Karl DeBisschop <kdebisschop(at)spaceheater(dot)infoplease(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: database-level locking
Date: 1999-03-19 18:57:53
Message-ID: 199903191857.NAA18366@skillet.infoplease.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Does anyone know a way to lock a database under postgres while
leaving available the other databases managed by postmaster?

We are running postgreSQL 6.4.2 on our web site for content serving
and for registration information. There are 4 separate databases
served by postmatser to support these functions.

Every now and the we have manually deleted temporary sort files to
keep disk usage in control. We'd like to automate this process, but
to do so safely we need to ensure that no sorts are being run while we
delete the accumualted files. Thus, we'd like to lock a database,
delete its accumulated wastage, unlock the database, and move on to
the next.

Of course the better solution would be if postgres was always able to
identify and clear out its excesses, but we have found that is not the
case.

Karl

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Blazso 1999-03-19 19:07:14 problems with a view
Previous Message pete collins 1999-03-19 18:29:47 trouble with sum