Re: yowch: dumpRules(): SELECT failed for table website.

From: Alfred Perlstein <bright(at)wintelcom(dot)net>
To: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: yowch: dumpRules(): SELECT failed for table website.
Date: 2000-05-24 10:33:39
Message-ID: 20000524033338.V28097@fw.wintelcom.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

* Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp> [000524 03:05] wrote:
> > > Hmm,shutdown postmaster and invoke standalone postgres.
> > >
> > > postgres -O -P webmaster
> > > REINDEX DATABASE webcounter force;
> > > ^D
> >
> > gah!
> >
> > ~/scripts % postgres -O -P webmaster
>
> Sorry,webcounter instead of webmaster.
>
> > DEBUG: Data Base System is starting up at Wed May 24 02:24:49 2000
> > DEBUG: Data Base System was shut down at Wed May 24 02:24:46 2000
> > DEBUG: Data Base System is in production state at Wed May 24
> > 02:24:49 2000
> > FATAL 1: Database "webmaster" does not exist in the system catalog.
> > FATAL 1: Database "webmaster" does not exist in the system catalog.
> >
> > not good :(

ugh, it's late for me over here, I should have noticed "database"
rather than "table" but i've already fixed it via moving the data
to another table.

I'm wondering if there's a way to get a unique value into a table?

this caused some problems:

CREATE TABLE "data" (
"d" varchar(256) PRIMARY KEY,
"d_id" serial
);

because after I reloaded the table from:

insert into data select * from data_backup;

then tried to insert into 'data' using only values for 'd' then it barfed
because it was trying to use values from the serial that were already
in the table.

is there a way around this? using OID doesn't seem right, but seems to
be the only "safe" way to get a truly unique key to use as a forien key
that I've seen.

any suggestions?

--
-Alfred Perlstein - [bright(at)wintelcom(dot)net|alfred(at)freebsd(dot)org]
"I have the heart of a child; I keep it in a jar on my desk."

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 2000-05-24 12:03:08 Re: setproctitle()
Previous Message Tatsuo Ishii 2000-05-24 10:29:39 Re: \dS and \df <pattern> crashing psql