Re: [GENERAL] Recover PostgreSQL database folder data - Mailing list pgsql-general

From John R Pierce
Subject Re: [GENERAL] Recover PostgreSQL database folder data
Date
Msg-id ea14baf4-1600-ff47-81dd-8b6998699835@hogranch.com
Whole thread Raw
In response to Re: [GENERAL] Recover PostgreSQL database folder data  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
On 4/21/2017 12:00 PM, Adrian Klaver wrote:
Apr 21 04:01:48 localhost postgresql96-check-db-dir: cat:
/var/lib/pgsql/9.6/data//PG_VERSION: Permissão negada

So you got a permissions error when the script was trying to read PG_VERSION.

The suspicious part is this:
/var/lib/pgsql/9.6/data//PG_VERSION

in particular the //

Is that really the case?


unix/linux seems quite happy to ignore extra /'s ...

# ls -l /var/lib/pgsql/9.3/data//PG_VERSION
-rw-------. 1 postgres postgres 4 May 22  2014 /var/lib/pgsql/9.3/data//PG_VERSION


-- 
john r pierce, recycling bits in santa cruz

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: [GENERAL] Recover PostgreSQL database folder data
Next
From: Edson Lidorio
Date:
Subject: Re: [GENERAL] Recover PostgreSQL database folder data