Re: PostgreSQL server won't start, corrupt?

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Rob Flemming <robf(dot)42(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL server won't start, corrupt?
Date: 2014-10-09 20:41:11
Message-ID: 5436F2E7.3060701@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 09/10/2014 21:30, Rob Flemming wrote:
> Hi I've had a a PostgreSQL 9.3 server running on Windows 7 for
> several months.
>
> While trying to diagnose a remote computer's connection problem
> (through ArcGIS, grrr), i was clicking through the postgres (data)
> directory and opened a couple of files using Notepad but promptly
> closed them without making any changes. e.g.
> "C:\postgres\pg_clog\0000" and "C:\postgres\pg_stat\global.stat".
>
> I added a line to the "pg_hba.conf" file and tried to restart the
> server, but now it will not run!
>
> The messages in the log file are: 2014-10-09 12:59:40 PDT LOG:
> invalid connection type "" 2014-10-09 12:59:40 PDT CONTEXT: line 1
> of configuration file "C:/postgres/pg_hba.conf" 2014-10-09 12:59:40
> PDT FATAL: could not load pg_hba.conf

Well, the error messages seem to indicate that there's a problem with
pg_hba.conf, so I'd start by reversing whatever you did there and seeing
if that fixes it.

I'd also use something other than Notepad.... it has a hard time with
non-Windows line endings. Notepad++ is a very good free text editor, for
example.

Hope this helps,

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2014-10-09 20:42:20 Re: PostgreSQL server won't start, corrupt?
Previous Message John R Pierce 2014-10-09 20:40:12 Re: Optimal checkpoint_setting