[GENERAL] Constraints of view attributes

Поиск
Список
Период
Сортировка
От
Тема [GENERAL] Constraints of view attributes
Дата
Msg-id 20170511212428.59073fe1@florenz
обсуждение исходный текст
Ответы Re: [GENERAL] Constraints of view attributes  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: [GENERAL] Constraints of view attributes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi,

create table t1 (f1 text not null);
create table t2 (f2 text);
create view v as (select t1.f1, t2.f2 from t1, t2);

Given v, How can a find out the t1.f1 has a not null constraint.
I can easily find this for t1 in the system catalog, but not for v.
I learned on IRC today that this should be somewhere in pg_rewrite but
where exactly and how do I get this information? Parse rewrite
query_tree? How?

--
Greg


В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] How to recover my postgres database ?
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: [GENERAL] Constraints of view attributes