Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1BHEpE37911 for ; Mon, 11 Feb 2002 12:14:51 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g1BHB0f07659; Mon, 11 Feb 2002 12:11:00 -0500 (EST) To: Oliver Elphick cc: Naomi Walker , Chris Ruprecht , PostGreSQL Admin Group Subject: Re: Re-nameing a database? In-reply-to: <1013445816.12184.44.camel@linda> References: <4.2.2.20020211085032.00adcc00@ecint.ecinet.com> <1013445816.12184.44.camel@linda> Comments: In-reply-to Oliver Elphick message dated "11 Feb 2002 16:43:34 +0000" Date: Mon, 11 Feb 2002 12:11:00 -0500 Message-ID: <7656.1013447460@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200202/120 X-Sequence-Number: 3279 Oliver Elphick writes: >> is there an easy way to re-name a database? > In 7.1.3, you can do it by updating the row in pg_database and then > restarting the postmaster: I don't believe a postmaster restart is required. It might be a good idea to vacuum pg_database and then force a checkpoint, however, just to make sure the updated row is out on disk and not still hanging about in a shared-memory buffer. regards, tom lane