Re: Two questions about "pg_constraint" - Mailing list pgsql-general

From Bryn Llewellyn
Subject Re: Two questions about "pg_constraint"
Date
Msg-id C3FC8686-935F-47AF-89CF-1478105F35F9@yugabyte.com
Whole thread Raw
In response to Re: Two questions about "pg_constraint"  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: Two questions about "pg_constraint"
List pgsql-general
adrian.klaver@aklaver.com wrote:

bryn@yugabyte.com wrote:

Question 2: what happened to the column "consrc"?

It was in 11 but not later, so let's look at release notes...

HERE:
«
Remove obsolete pg_constraint.consrc column (Peter Eisentraut)

This column has been deprecated for a long time, because it did not update in response to other catalog changes (such as column renamings). The recommended way to get a text version of a check constraint's expression from pg_constraint is pg_get_expr(conbin, conrelid). pg_get_constraintdef() is also a useful alternative.
»

Thanks, Adrian. I should have tried Google for "remove pg_constraint consrc". This finds the quote as the top hit.

I confirmed that "pg_get_expr(conbin, conrelid)" shows « (v = lower(v)) » for my example table.

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Two questions about "pg_constraint"
Next
From: Tom Lane
Date:
Subject: Re: Two questions about "pg_constraint"