[Pgsql-ayuda] mensaje de error

Alvaro Herrera alvherre@dcc.uchile.cl
Tue, 29 Apr 2003 17:06:24 -0400


On Mon, Apr 28, 2003 at 03:12:22PM +0100, Eduardo Gauna wrote:
> Hola lista!
> tengo una tabla en la que cada vez que hago una consulta sobre ella, en el log me aparece el siguiente warning:
> 
> WARNING: AttrDefaultFetch: 5 record(s) not found for rel nombre_tabla
> 
> y cuando le hago un describe ( \d nombre_tabla ) de la tabla me muestra:
> 
> row number 0 is out of range 0..-1

Estuviste jugando con los catalogos de sistema?  Ademas, que version de
Postgres estas usando?

Muestra que dice lo siguiente:

select * from pg_class where relname='nombre_tabla';

select * from pg_attribute where relid=(select oid from pg_class where
relname='nombre_tabla');

select * from pg_attrdef where relid=(select oid from pg_class where
relname='nombre_tabla');

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"In fact, the basic problem with Perl 5's subroutines is that they're not
crufty enough, so the cruft leaks out into user-defined code instead, by
the Conservation of Cruft Principle."  (Larry Wall, Apocalypse 6)