Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 2613F9FA410; Sun, 18 Feb 2007 21:05:10 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 20361-02; Sun, 18 Feb 2007 21:04:56 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from actenon.computec.com.co (actenon.computec.com.co [200.74.143.146]) by postgresql.org (Postfix) with SMTP id BF1609FA1FD; Sun, 18 Feb 2007 21:05:06 -0400 (AST) Received: from computecnew.redcorp.computec.com ([172.24.10.109]) by actenon.computec.com.co (SMSSMTP 4.1.11.41) with SMTP id M2007021820041026024 ; Sun, 18 Feb 2007 20:04:10 -0500 Received: from dmedina.redcorp.computec.com ([172.24.33.42]) by computecnew.redcorp.computec.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 18 Feb 2007 20:06:27 -0500 Subject: Re: [pgsql-es-ayuda] tabla pg_user Ayuda...... From: Daniel Medina To: Alvaro Herrera Cc: Jaime Casanova , pgsql-es-ayuda@postgresql.org, pgsql-admin@postgresql.org In-Reply-To: <20070215134933.GB4682@alvh.no-ip.org> References: <45D496E7.6040502@renova.com.pe> <1171056020.7776.27.camel@dmedina.redcorp.computec.com> <1171467067.3937.22.camel@localhost.localdomain> <20070215134933.GB4682@alvh.no-ip.org> Content-Type: text/plain; charset=utf-8 Date: Sun, 18 Feb 2007 20:06:01 -0500 Message-Id: <1171847161.3933.42.camel@dmedina.redcorp.computec.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-22) Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 19 Feb 2007 01:06:27.0607 (UTC) FILETIME=[2EBA4A70:01C753C2] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50 X-Spam-Level: X-Archive-Number: 200702/267 X-Sequence-Number: 24732 Trato de borrar el usuario postgres y me dice que no existe , luego vuelvo a consultar la tabla pg_shadow y sale esto 1: usename =3D "postgres" typeid =3D 19, len =3D 64, typmod =3D -1, byval = =3D f) 2: usesysid =3D "1" (typeid =3D 23, len =3D 4, typmod =3D -1, byval = =3D t) 3: usecreatedb =3D "t" (typeid =3D 16, len =3D 1, typmod =3D -1, byval = =3D t) 4: usesuper =3D "t" (typeid =3D 16, len =3D 1, typmod =3D -1, byval = =3D t) 5: usecatupd =3D "t" (typeid =3D 16, len =3D 1, typmod =3D -1, byval = =3D t) ---- 1: usename =3D "daniel" (typeid =3D 19, len =3D 64, typmod =3D -1, byval = =3D f) 2: usesysid =3D "1" (typeid =3D 23, len =3D 4, typmod =3D -1, byval = =3D t) 3: usecreatedb =3D "f" (typeid =3D 16, len =3D 1, typmod =3D -1, byval = =3D t) 4: usesuper =3D "f" (typeid =3D 16, len =3D 1, typmod =3D -1, byval = =3D t) 5: usecatupd =3D "f" (typeid =3D 16, len =3D 1, typmod =3D -1, byval = =3D t) 6: passwd =3D "md5xxx" (typeid =3D 25, len =3D -1, typmod =3D -1, byva= l =3D f) El jue, 15-02-2007 a las 10:49 -0300, Alvaro Herrera escribi=C3=B3: > Jaime Casanova escribi=C3=B3: >=20 > > Alvaro, un vacuum como superusuario podria haber arreglado algo? o > > hubiera tenido que borrar la tupla que pareciera mas vieja? o ninguna > > de ambas podria haber funcionado? estoy asumiendo que el problema es > > el que mencione arriba, no se me ocurre que mas pudo ser... >=20 > La verdad es que no estoy 100% seguro porque no sabemos en que estado > estaban esas tuplas ... pero hace un tiempo le hice una consultoria a > una empresa que tuvo un problema muy similar, y cuando les dije que > hicieran un VACUUM sobre pg_shadow, no tuvo el resultado esperado. >=20 > Lo malo fue que hicimos un DELETE del usuario repetido, con el mismo > resultado: se borraron las dos tuplas :-) y no habia forma de volver a > crearlo. >=20 > Asi que lo que hicimos fue bajar el postmaster, abrir un proceso > standalone, crear el usuario nuevamente, volver a levantar postmaster. >=20 --=20 Daniel Ricardo Medina R. Ing. de Desarrollo Computec S.A. - Documentos tel: 2607111 ext. 140