From: Alvaro Herrera <alvherre@commandprompt.com>
To: Daniel Medina <dmedina@computec.com.co>
Cc: pgsql-es-ayuda@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [pgsql-es-ayuda] tabla pg_user Ayuda......
Date: Wed, 14 Feb 2007 15:52:12 -0300
Message-ID: <20070214185212.GE16796@alvh.no-ip.org> (raw)
In-Reply-To: <1171469621.3937.30.camel@localhost.localdomain>
References: <45D496E7.6040502@renova.com.pe>
<1171056020.7776.27.camel@dmedina.redcorp.computec.com>
<1171056070.7776.29.camel@dmedina.redcorp.computec.com>
<1171469621.3937.30.camel@localhost.localdomain>
Daniel Medina escribió:
> borre accidentalmente de la tabla pg_shadow el usurio postgres ,
> existian dos registros de este usuario la diferencia era el pass
>
> pero se borraron los dos
>
> al tratar de crearlo con create user
> create user postgres with SYSID 1 password 'xxxx';
> ERROR: must be superuser to create users
>
>
> o con el comando insert..
>
> insert into pg_shadow
> (usename,usesysid,usecreatedb,usesuper,usecatupd,passwd) values
> ('postgres',1,true,true,true,md5('*****'));
> ERROR: user with ID 1 does not exist
ja ja ja ...
Baja postmaster y levanta una sesion en modo standalone. Creo que es
postgres -P -O
(Mira postgres --help; depende de la version).
Ahi dentro puedes hacer el insert into pg_shadow, pero primero trata con
CREATE USER.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
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: alvherre@commandprompt.com, dmedina@computec.com.co, pgsql-es-ayuda@postgresql.org
Subject: Re: [pgsql-es-ayuda] tabla pg_user Ayuda......
In-Reply-To: <20070214185212.GE16796@alvh.no-ip.org>
References: <45D496E7.6040502@renova.com.pe> <1171056020.7776.27.camel@dmedina.redcorp.computec.com> <1171056070.7776.29.camel@dmedina.redcorp.computec.com> <1171469621.3937.30.camel@localhost.localdomain> <20070214185212.GE16796@alvh.no-ip.org>
* 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