[Pgsql-ayuda] Pg_dumpall problemas

Alvaro Herrera alvherre@dcc.uchile.cl
Wed, 5 Nov 2003 23:17:47 -0300


On Tue, Nov 04, 2003 at 07:48:51PM +0000, Edwin Quijada wrote:

> >UPDATE pg_shadow SET valuntil=NULL where valuntil='invalid';

> Alvaro esa vaina funciono mas bien que el diablo!!!!
> Ahora si me vas a tener que decir que significaba eso??

Significa que en la columna valuntil de la tabla pg_shadow habian
algunos valores "invalid".  Este es un valor especial del tipo de dato
abstime, que no puede ser convertido al tipo timestamp o timestamp with
time zone.

Convirtiendo los invalid en NULL, que en la practica tienen el mismo
efecto en esa tabla, se logra que las conversiones a timestamp sean
posibles y que por lo tanto pg_dumpall funcione.

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
Thou shalt study thy libraries and strive not to reinvent them without
cause, that thy code may be short and readable and thy days pleasant
and productive. (7th Commandment for C Programmers)