Re: Listar todos as colunas com valor default definido

Fabrízio de Royes Mello <fabrizio-hNsCO/[email protected]>
Newsgroups gmane.comp.db.postgresql.brasil
Message-ID <CAPfkCSASkoXDnqMQoLeT=PHEg8H4Km4vhDTj-xJ4pv4nbTeBgw__24698.2252262116$1507580298$gmane$org@mail.gmail.com>
Em 9 de outubro de 2017 17:12, André Ormenese <[email protected]>
escreveu:
>
> Boa tarde
>
> Preciso listar todos as colunas, de todas as tabelas, que tenham o valor
default definido. Independente do valor configurado.
> Onde acho estas informações no catalogo do PostgreSQL 9.6.5 ?
>

André,

Essa informação fica armazenada na tabela pg_attrdef [1] do catálogo.

Att,

[1] https://www.postgresql.org/docs/current/static/catalog-pg-attrdef.html


--
   Fabrízio de Royes Mello         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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.