pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jayknowsunix@gmail.com
To: Ferrell, Denise CTR NSWCDD, Z11 <denise.ferrell.ctr@navy.mil>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Removing a Database Server
Date: Wed, 24 Sep 2014 10:17:39 -0400
Message-ID: <B62DF581-C321-4F70-AB3E-1E359767E12B@gmail.com> (raw)
In-Reply-To: <2BC18916DE4BF141AC1EFC55CE2CAE7D5804C1@NAEANRFKXM01V.nadsusea.nads.navy.mil>
References: <2BC18916DE4BF141AC1EFC55CE2CAE7D580122@NAEANRFKXM01V.nadsusea.nads.navy.mil>
	<CBB60412-4902-4085-A7B1-4555AEF13192@gmail.com>
	<2BC18916DE4BF141AC1EFC55CE2CAE7D5804C1@NAEANRFKXM01V.nadsusea.nads.navy.mil>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Try "rm -fr" for what you're trying to remove. I'm guessing you need "rm -fr /var/lib/pgsql/black"

Sent from my iPad

> On Sep 24, 2014, at 10:08 AM, "Ferrell, Denise CTR NSWCDD, Z11" <denise.ferrell.ctr@navy.mil> wrote:
> 
> This is not working.  The problem stems from my SA creating the a database server prior...I'm guessing.
> 
> I'm having issues with the rm command...getting "Is a directory"
> 
> Process I used...
> 
> initdb -D /var/lib/pgsql/black
> The files belonging to this database system will be owned by user 'postgres'.
> This user must also own the server process.
> 
> The database cluster will be initialized with locale en_US.UTF-8.
> The default database encoding....
> The default text search.....
> 
> Creating directory /var/lib/pgsql/black . . . ok
> Creating subdirectories . . . ok
> ...
> 
> 
> Success.  You can now start the database server using:
> 
> Postgres -D /var/lib/pgsql/black
> Or
> Pg_ctl -D /var/lib/pgsql/black -l logfile start (which I used)
> 
> Thank you in advance.
> 
> -----Original Message-----
> From: jayknowsunix@gmail.com [mailto:jayknowsunix@gmail.com] 
> Sent: Monday, September 22, 2014 3:37 PM
> To: Ferrell, Denise CTR NSWCDD, Z11
> Cc: pgsql-admin@postgresql.org
> Subject: Re: [ADMIN] Removing a Database Server
> 
> service postgresql-9.3 stop
> rm /var/lib/pgsql/9.3/data
> 
> Unless, of course, you built the database in some other location. That would get rid of it completely.
> 
> Sent from my iPad
> 
>> On Sep 22, 2014, at 2:59 PM, "Ferrell, Denise CTR NSWCDD, Z11" <denise.ferrell.ctr@navy.mil> wrote:
>> 
>> Using Linux Red-Hat & PostgreSQL v9.3.4
>> 
>> What would be the easiest way to remove a Database Server that shouldn't have been created?
>> 
>> Thank you in advance for any assistance. 


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (4+ messages)

Message-ID: <B62DF581-C321-4F70-AB3E-1E359767E12B@gmail.com>
Permalink:  ../B62DF581-C321-4F70-AB3E-1E359767E12B@gmail.com/
Also on:    postgresql.org/message-id/B62DF581-C321-4F70-AB3E-1E359767E12B@gmail.com

 · 

reply

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: jayknowsunix@gmail.com, denise.ferrell.ctr@navy.mil
  Subject: Re: Removing a Database Server
  In-Reply-To: <B62DF581-C321-4F70-AB3E-1E359767E12B@gmail.com>

* 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