pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
execute user-defined BKI
4+ messages / 2 participants
[nested] [flat]

* execute user-defined BKI
@ 2004-07-21 01:52 Howard Bagcat <howard@mu.edu.ph>
  2004-07-21 07:29 ` Re: execute user-defined BKI Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 4+ messages in thread

From: Howard Bagcat @ 2004-07-21 01:52 UTC (permalink / raw)
  To: pgsql-admin

Anyone,

How can I execute my BKI script? 

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




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: execute user-defined BKI
  2004-07-21 01:52 execute user-defined BKI Howard Bagcat <howard@mu.edu.ph>
@ 2004-07-21 07:29 ` Peter Eisentraut <peter_e@gmx.net>
  2004-07-21 09:28   ` Re: execute user-defined BKI Howard Bagcat <howard@mu.edu.ph>
  0 siblings, 1 reply; 4+ messages in thread

From: Peter Eisentraut @ 2004-07-21 07:29 UTC (permalink / raw)
  To: Howard Bagcat <howard@mu.edu.ph>; pgsql-admin

Howard Bagcat wrote:
> How can I execute my BKI script?

I suggest that you don't, and you explain us your problem from in more 
general terms.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: execute user-defined BKI
  2004-07-21 01:52 execute user-defined BKI Howard Bagcat <howard@mu.edu.ph>
  2004-07-21 07:29 ` Re: execute user-defined BKI Peter Eisentraut <peter_e@gmx.net>
@ 2004-07-21 09:28   ` Howard Bagcat <howard@mu.edu.ph>
  2004-07-21 10:13     ` Re: execute user-defined BKI Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 4+ messages in thread

From: Howard Bagcat @ 2004-07-21 09:28 UTC (permalink / raw)
  To: pgsql-admin

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




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: execute user-defined BKI
  2004-07-21 01:52 execute user-defined BKI Howard Bagcat <howard@mu.edu.ph>
  2004-07-21 07:29 ` Re: execute user-defined BKI Peter Eisentraut <peter_e@gmx.net>
  2004-07-21 09:28   ` Re: execute user-defined BKI Howard Bagcat <howard@mu.edu.ph>
@ 2004-07-21 10:13     ` Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 4+ messages in thread

From: Peter Eisentraut @ 2004-07-21 10:13 UTC (permalink / raw)
  To: Howard Bagcat <howard@mu.edu.ph>; +Cc: pgsql-admin

Am Mittwoch, 21. Juli 2004 11:28 schrieb Howard Bagcat:
> 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."

Then you need to manually recreate all those users with the right user IDs.  
The user IDs are shown in the owner column of the respective system tables 
(e.g., pg_trigger).

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2004-07-21 10:13 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-07-21 01:52 execute user-defined BKI Howard Bagcat <howard@mu.edu.ph>
2004-07-21 07:29 ` Peter Eisentraut <peter_e@gmx.net>
2004-07-21 09:28   ` Howard Bagcat <howard@mu.edu.ph>
2004-07-21 10:13     ` Peter Eisentraut <peter_e@gmx.net>

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