Re: [GENERAL] pg_catalog tables don't have constraints?

Поиск
Список
Период
Сортировка
От Neil Anderson
Тема Re: [GENERAL] pg_catalog tables don't have constraints?
Дата
Msg-id CAEKCySu46PWBkCTvxTFAVnXeKGjsttVEvYf=UXegkfuigRWgJw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] pg_catalog tables don't have constraints?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> The bigger picture here is that catalog changes are supposed to be
> executed by C code in response to DDL commands, and it's the C code
> that is charged with maintaining catalog consistency.  Constraints
> would be useful if we supported updating the catalogs with direct
> SQL manipulations; but we don't really.  You can do that, if you're
> a superuser who's willing to take risks, but our policy is that if
> you break the catalogs that way you get to keep both pieces.

Ah! That makes sense. Constraints are there to help you when inserting
rows and when it comes to the catalogs you shouldn't be doing that
directly. I think for the diagram I'll add the links manually with the
caveat that they are not constraints, just edges in a graph.

Thanks for the details Tom!



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

Предыдущее
От: Karsten Hilbert
Дата:
Сообщение: Re: [GENERAL] Redo the filenode link in tablespace
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: [GENERAL] Redo the filenode link in tablespace