A titulo de informação, esta mensagem me é gerada pelo PGAdminIII no momento
em que ele vai listar a estrutura da tabela.

Outra tabela apresenta o mesmo "comportamento". Fiz o que ja havia sido
passado e , alem de mensagem semelhante a ultima que lhe enviei obtenho
esta:

An error has occourred: 

ERROR: cache lookup failed for attribute 3 of relation 167045



marvin.deoliveira wrote:
> 
> Euler,
> 
> fiz o seguinte:
> 
> SELECT count(*) FROM pg_attribute WHERE attnum > 0 AND attrelid = 167017;
> Resultado = 22
> 
> onde 167017 = fase_laudo_apac
> 
> Após fiz:
> 
> update pg_class set relnatts = 22 where relname = 'fase_laudo_apac'
> 
> Agora obtenho a mensagem:
> 
> ERROR:  invalid attribute number 23 for fase_laudo_apac
> LINE 1: Select count(*) as rows from only fase_laudo_apac
>                                           ^
> ********** Error **********
> ERROR: invalid attribute number 23 for fase_laudo_apac
> SQL state: XX000
> Character: 35
> 
> Onde posso ter errado?
> 
> 
> Euler Taveira de Oliveira-2 wrote:
>> 
>> Em 10-08-2011 21:01, Marcos Oliveira escreveu:
>>> Catalog is missing 4 attribute(s) form relid 167017.
>>>
>> Atualize relnatts em pg_class com o número de colunas retornadas em
>> 
>> SELECT count(*) FROM pg_attribute WHERE attnum > 0 AND attrelid = 167017;
>> 
>> 
>> -- 
>>    Euler Taveira de Oliveira - Timbira       http://www.timbira.com.br/
>>    PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
>> _______________________________________________
>> pgbr-geral mailing list
>> [email protected]
>> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>> 
>> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Remover-linhas-corrompidas-da-Pg_Attribute-tp32226684p32408576.html
Sent from the PostgreSQL - Brasil mailing list archive at Nabble.com.

_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a