From: Howard Bagcat <howard@mu.edu.ph>
To: pgsql-admin@postgresql.org
Subject: Re: execute user-defined BKI
Date: Wed, 21 Jul 2004 17:28:15 +0800
Message-ID: <1090402095.40fe372f2ab14@sulat.mu.edu.ph> (raw)
In-Reply-To: <200407210929.42398.peter_e@gmx.net>
References: <1090374725.40fdcc458ece6@sulat.mu.edu.ph>
<200407210929.42398.peter_e@gmx.net>
Quoting Peter Eisentraut <peter_e@gmx.net>:
> > How can I execute my BKI script?
>
> I suggest that you don't, and you explain us your problem from in more
> general terms.
Thanks for the reply.
My problem was I can not get into any of my local databases, including template1. Postmaster keeps on saying, "Fatal: Invalid User
ID:0". The error was really surprising to me since I've been connecting to this sql server last day using the same username
without errors. It seems to me that postmaster bar me from getting into any of the database and template1 because possibly there
were no username in pg_shadow to authenticate to. Another strange thing, if indeed my analysis that pg_shadow was corrupted then
why is it that postmaster started without problems. That's the story why I end up thinking of using BKI in order to possibly
manipulate pg_shadow.
As of writing this, I tried running postgres in stand-alone mode using the following:
$ postgres -D /usr/share/postgresql/data template1
And successfully, I get in. Now I tried executing "SELECT * FROM pg_shadow", and my analysis was right what I have was a row field
with empty values. I just added a new user called "postgres". So what I have in pg_shadow are:
template1=# SELECT * FROM pg_shadow;
usename | usesysid | usecreatedb | usesuper | usecatupd | passwd | valuntil | useconfig
-------------+-----------+--------------+------------+-----------+----------+----------------+-----------
| | | | | | |
postgres | 1 | t | t | t | | 00:00:00+08 |
(2 rows)
Now, my problem pg_dump and pg_dumpall displayed a lot of WARNING messages, like:
"pg_dump: WARNING: owner of table "triggers" appears to be invalid."
For your information,
Please do share your ideas. Thank You.
Kumusta, Howard
E-Sulat v.0.0.1 ( Manna )
.......................................................................................
An extended module for MUWeb4 Project <http://www.mu.edu.ph;
Powered by Horde, Postfix, PostgreSQL & Courier-IMAP
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: howard@mu.edu.ph
Subject: Re: execute user-defined BKI
In-Reply-To: <1090402095.40fe372f2ab14@sulat.mu.edu.ph>
References: <1090374725.40fdcc458ece6@sulat.mu.edu.ph> <200407210929.42398.peter_e@gmx.net> <1090402095.40fe372f2ab14@sulat.mu.edu.ph>
* 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