pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John P. Looney <valen@tuatha.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: postgres <pgsql-admin@postgresql.org>
Subject: Re: Postgres db corrupted ?
Date: 29 Jul 2003 18:06:43 +0100
Message-ID: <1059498403.7984.193.camel@cosimo.hosting365.ie> (raw)
In-Reply-To: <29907.1059497704@sss.pgh.pa.us>
References: <1059470890.5588.41.camel@cosimo.hosting365.ie>
	<21943.1059489530@sss.pgh.pa.us>
	<20030729162256.GA5304@magicbluesmoke.net>
	<29907.1059497704@sss.pgh.pa.us>

On Tue, 2003-07-29 at 17:55, Tom Lane wrote:
> Hm, that datdba field actually is NULL, isn't it?  That's what you need
> to fix.  The low-level code isn't expecting it to be NULL, and falls
> over in surprising ways.  (Recent releases try to enforce NOT NULL on
> system catalog columns that mustn't be NULL, but I'm not sure how
> bulletproof that really is.)

 Ah, OK. That makes sense.

> I'd try
> 
> UPDATE pg_database SET datdba = <something reasonable> WHERE datdba IS NULL;
> 
> You could just set them all to 1 (the postgres userid); if you want
> these databases owned by specific users then see pg_shadow.usesysid for
> the numbers to insert.

 OK; is there an already existing table that should have those entries
in it ? As a postgres novice, does that mean that these broken tables
aren't accessible ?

John

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (13+ messages)  latest in thread

Message-ID: <1059498403.7984.193.camel@cosimo.hosting365.ie>
Permalink:  ../1059498403.7984.193.camel@cosimo.hosting365.ie/
Also on:    postgresql.org/message-id/1059498403.7984.193.camel@cosimo.hosting365.ie

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: valen@tuatha.org, tgl@sss.pgh.pa.us
  Subject: Re: Postgres db corrupted ?
  In-Reply-To: <1059498403.7984.193.camel@cosimo.hosting365.ie>
  References: <1059470890.5588.41.camel@cosimo.hosting365.ie> <21943.1059489530@sss.pgh.pa.us> <20030729162256.GA5304@magicbluesmoke.net> <29907.1059497704@sss.pgh.pa.us> <1059498403.7984.193.camel@cosimo.hosting365.ie>

* 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