pgsql: Simplify information schema check constraint deparsing

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Simplify information schema check constraint deparsing
Дата
Msg-id E1qjZCE-005FmC-JD@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Simplify information schema check constraint deparsing

The computation of the column
information_schema.check_constraints.check_clause used
pg_get_constraintdef() plus some string manipulation to get the check
clause back out.  This ended up with an extra pair of parentheses,
which is only an aesthetic problem, but also with suffixes like "NOT
VALID", which don't belong into that column.  We can fix both of these
problems and simplify the code by just using pg_get_expr() instead.

Discussion: https://www.postgresql.org/message-id/799b59ef-3330-f0d2-ee23-8cdfa1740987@eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e59fcbd712c777eb2987d7c9ad542a7e817954ec

Modified Files
--------------
src/backend/catalog/information_schema.sql | 3 +--
src/include/catalog/catversion.h           | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix COMMIT/ROLLBACK AND CHAIN in the presence of subtransactions
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: pgsql: Avoid potential pfree on NULL on OpenSSL errors