pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: pg_hba.conf is corrupt
Date: Fri, 24 Aug 2018 18:48:46 -0400
Message-ID: <23736.1535150926@sss.pgh.pa.us> (raw)
In-Reply-To: <3305e821-0bbb-620f-42b1-a28225b1e84a@gmail.com>
References: <3305e821-0bbb-620f-42b1-a28225b1e84a@gmail.com>

Ron <ronljohnsonjr@gmail.com> writes:
> completely overwritten by binary data.  Been this way for 9 months, and we 
> retain backups for 6 months.

> Is there any way to query postgres to regenerate this data?

Nope, sorry.  PG doesn't ever write that file, and it doesn't keep spare
copies for you.

If you haven't shut down the postmaster, it's possible that you could
gdb into the postmaster (blocking connection attempts :-() and dig around
in the postmaster's data structures to reconstruct the info.  But that's
probably impractical unless you have debug symbols for the server, and
even with that it'd be pretty tedious and easy to mess up.

			regards, tom lane




view thread (2+ messages)

Message-ID: <23736.1535150926@sss.pgh.pa.us>
Permalink:  ../23736.1535150926@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23736.1535150926@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: pg_hba.conf is corrupt
  In-Reply-To: <23736.1535150926@sss.pgh.pa.us>

* 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