diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2023-09-22 07:40:56 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2023-09-22 07:43:26 +0200 |
commit | e59fcbd712c777eb2987d7c9ad542a7e817954ec (patch) | |
tree | 3659fbba928f29af54e76ee8041f0473d2bf7282 /src/test/perl/PostgreSQL/Test/Cluster.pm | |
parent | 48e2b234f822ea1610826be4526bb56ca4734dbe (diff) | |
download | postgresql-e59fcbd712c777eb2987d7c9ad542a7e817954ec.tar.gz postgresql-e59fcbd712c777eb2987d7c9ad542a7e817954ec.zip |
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
Diffstat (limited to 'src/test/perl/PostgreSQL/Test/Cluster.pm')
0 files changed, 0 insertions, 0 deletions