Muito bom.

Informarei o resultado assim que fizer o lab para exclusão dos registros.
Fico muito grato por suas explicações Euler.



Em 10 de agosto de 2011 10:00, Euler Taveira de Oliveira
<[email protected]>escreveu:

> Em 10-08-2011 09:11, Marcos Oliveira escreveu:
> > Consulta 01:
> > SELECT attrelid,attname, atttypid FROM pg_attribute WHERE attrelid =
> > 167017 and ( atttypid isnull or atttypid = 0);
> >
> > attrelid;attname;atttypid
> > ;;
> > 54;;0
> > ;;
> > ;;
> > 167017;........pg.dropped.12........;0
> > 167017;........pg.dropped.25........;0
> >
> > Mesmo aparecendo estas 6 linhas, o conteúdo da coluna de comparação
> > attrelid (167017) não é retornado em 4 delas.
> >
> ... que é justamente o problema. As tuplas com 'pg.dropped' estão ok.
>
> > Consulta 02:
> > SELECT attrelid,attname, atttypid FROM pg_attribute WHERE attrelid =
> 167017;
> >
> >      attrelid|attname|atttypid
> > -> ||
> > -> 54||0
> > -> ||
> >      167017|id_permissao|23
> >      167017|nome|17070
> >      167017|descricao|17071
> >      167017|ordem|23
> >      167017|id_usuario_ins|23
> >      167017|dta_inserido|1082
> >      167017|hora_inserido|1083
> >      167017|id_usuario_upd|23
> > -> ||
> > -> 167017|........pg.dropped.12........|0
> >      167017|id_fase_seguinte_aprova|23
> >      167017|id_fase_seguinte_rejeita|23
> >      167017|agenda_pericia|23
> >      167017|agenda_procedimento|23
> >      167017|permite_aprovar|1042
> >      167017|permite_rejeitar|1042
> >      167017|permite_cancelar|1042
> >      167017|permite_encaminhar|1042
> >      167017|add_proced_sec|1042
> >      167017|inf_proced_princ_apr|1042
> >      167017|libera_num|1042
> >      167017|conf_agenda_tramite|1042
> > -> 167017|........pg.dropped.25........|0
> >
> > Pelo que vi, a consulta 01 é factível para a execução do DELETE.
> >
> > A pergunta é:Este raciocínio está correto?
> >
> Sim.
>
>
> --
>    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
>
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a