Re: Description field for tables and views - Mailing list pgsql-general

From Guyren Howe
Subject Re: Description field for tables and views
Date
Msg-id 5F815B1A-3FD8-41A7-8BE7-0559066F8B96@gmail.com
Whole thread Raw
In response to Description field for tables and views  (Kent Dorfman <kent.dorfman766@gmail.com>)
List pgsql-general
Comment is probably what you’re looking for.

If you don’t want to use that: it’s a database. Make a table. Put whatever information in there that you need.

Either look up by view name, or schema + view name, or oid: https://www.postgresql.org/docs/current/datatype-oid.html

> On Jul 3, 2024, at 12:28, Kent Dorfman <kent.dorfman766@gmail.com> wrote:
>
> I think I already know the answer but asking here is probably quicker turnaround than researching it.
>
> I've gotten into a "view bloat" scenario with many many custom views that I cannot remember what they actually do.
Isthere any psql function/command to add a description field to a table or view definition in the system?  Would be
niceto have a one line general text note capability to quickly see what a complicated view does when looking at the
defintionvia  
> # \dv+
>
> Looks like the command has the field present, but not sure how to populate it.
>
> am using PostgreSQL 13.xx in Debian.
>
>




pgsql-general by date:

Previous
From: Christophe Pettus
Date:
Subject: Re: Description field for tables and views
Next
From: Christophe Pettus
Date:
Subject: Can't dump new-style sequences independently from their tables.