Re: Uninstall postgresql 9.2 on red hat linux

From: Jayadevan M <maymala(dot)jayadevan(at)gmail(dot)com>
To: Thara Vadakkeveedu <tharagv(at)yahoo(dot)com>
Cc: Luca Ferrari <fluca1978(at)infinito(dot)it>, "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Uninstall postgresql 9.2 on red hat linux
Date: 2013-09-24 04:29:25
Message-ID: CAFS1N4h8neFAy4CsJULYEeydARkHjZNAAoWATkfN8L=eWEoxXg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

What follows the -D option should be a directory. It looks like you have
given a file name.

On Tue, Sep 24, 2013 at 6:37 AM, Thara Vadakkeveedu <tharagv(at)yahoo(dot)com>wrote:

> I tried starting postgres using the main configuration file. I get "not a
> directory" message...
>
> -bash-4.1$ /usr/pgsql-9.2/bin/postgres -D
> /var/lib/pgsql/9.2/data/postgresql.conf
>
> postgres cannot access the server configuration file
> "/var/lib/pgsql/9.2/data/postgresql.conf/postgresql.conf": Not a directory
>
> -bash-4.1$ ls -al
> ...
> ...
> drwx------. 3 postgres postgres 4096 Sep 22 12:20 pg_xlog
> -rw-------. 1 postgres postgres 19601 Sep 22 11:35 postgresql.conf
> -rw------- 1 postgres postgres 59 Sep 23 20:35 postmaster.opts
> -bash-4.1$ /usr/pgsql-9.2/bin/postgres -D
> /var/lib/pgsql/9.2/data/postgresql.conf
> postgres cannot access the server configuration file
> "/var/lib/pgsql/9.2/data/postgresql.conf/postgresql.conf": Not a directory
>
> -bash-4.1$ chmod 755 postgresql.conf
>
> -bash-4.1$ /usr/pgsql-9.2/bin/postgres -D
> /var/lib/pgsql/9.2/data/postgresql.conf
> postgres cannot access the server configuration file
> "/var/lib/pgsql/9.2/data/postgresql.conf/postgresql.conf": Not a directory
>
> -bash-4.1$
> -bash-4.1$ pwd
> /var/lib/pgsql/9.2/data
>
> Thanks,
> Thara.
>
> ------------------------------
> *From:* Thara Vadakkeveedu <tharagv(at)yahoo(dot)com>
> *To:* Luca Ferrari <fluca1978(at)infinito(dot)it>
> *Cc:* "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
> *Sent:* Monday, September 23, 2013 8:45 PM
>
> *Subject:* Re: [NOVICE] Uninstall postgresql 9.2 on red hat linux
>
> There are no processes belonging to postgres on the system.
> -bash-4.1$ ps -edf | grep postgres
> root 6412 6249 0 18:22 pts/0 00:00:00 su - postgres
> postgres 6413 6412 0 18:22 pts/0 00:00:00 -bash
> root 6781 6756 0 20:35 pts/1 00:00:00 su - postgres
> postgres 6782 6781 0 20:35 pts/1 00:00:00 -bash
> postgres 6846 6782 1 20:45 pts/1 00:00:00 ps -edf
> postgres 6847 6782 0 20:45 pts/1 00:00:00 grep postgres
> -bash-4.1$
> Thanks,
> TG
>
>
> ------------------------------
> *From:* Luca Ferrari <fluca1978(at)infinito(dot)it>
> *To:* Thara Vadakkeveedu <tharagv(at)yahoo(dot)com>
> *Cc:* "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
> *Sent:* Monday, September 23, 2013 2:41 AM
> *Subject:* Re: [NOVICE] Uninstall postgresql 9.2 on red hat linux
>
> On Mon, Sep 23, 2013 at 1:57 AM, Thara Vadakkeveedu <tharagv(at)yahoo(dot)com>
> wrote:
>
> > I accidentally deleted data directory this morning
> > (/var/lib/postgresql/9.2/data)
> >
>
> What a start of a day!
>
> > I tried su - postgres
> > and then from the bash shell I tried to run these commands (tried one at
> a
> > time)
> > but I got the message that address was in use. There are no processes
> > running on 5432.
>
>
> I suspect if it gives you such an error there must something bound to
> the address. Have you tried to execute nmap against the IPv4 address
> your server is listening on (or supposed to be listening on)?
>
> Luca
>
>
>
>
>

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Luca Ferrari 2013-09-24 08:00:55 Re: Uninstall postgresql 9.2 on red hat linux
Previous Message Thara Vadakkeveedu 2013-09-24 01:07:26 Re: Uninstall postgresql 9.2 on red hat linux