From: Andy Shellam (Mailing Lists) <andy.shellam-lists@mailnetwork.co.uk>
To: Ray Stell <stellr@cns.vt.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: rename a cluster
Date: Thu, 15 Feb 2007 18:21:05 +0000
Message-ID: <45D4A491.5060108@mailnetwork.co.uk> (raw)
In-Reply-To: <20070215180143.GC21838@cns.vt.edu>
References: <20070215171940.GA21838@cns.vt.edu>
<200702151836.24296.peter_e@gmx.net>
<20070215180143.GC21838@cns.vt.edu>
The cluster's "name" is only the file-system's directory path.
You can easily rename this directory, as long as you pass the relevant
directory name to pg_ctl's -D parameter (which tells PostgreSQL which
database "cluster" to use.)
It goes without saying, don't move the directory while PostgreSQL is
running.
Ray Stell wrote:
> On Thu, Feb 15, 2007 at 06:36:23PM +0100, Peter Eisentraut wrote:
>
>> Ray Stell wrote:
>>
>>> Is there a method to rename a cluster?
>>>
>> Clusters don't have names in the first place.
>>
>
> So, from 16.2 "Creating a Database Cluster"
>
> "...you must initialize a database storage area on disk.
> We call this a database cluster."
>
> then, directory = cluster, no?
>
> What I was trying to get at is, is mv of the dir ok or
> is there something else that needs to be considered? Thx.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
> !DSPAM:37,45d4a11118511420134615!
>
>
>
--
Andy Shellam
NetServe Support Team
the Mail Network
"an alternative in a standardised world"
p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834
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-admin@postgresql.org
Cc: andy.shellam-lists@mailnetwork.co.uk, stellr@cns.vt.edu
Subject: Re: rename a cluster
In-Reply-To: <45D4A491.5060108@mailnetwork.co.uk>
* 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