From: | Guyren Howe <guyren(at)gmail(dot)com> |
---|---|
To: | Kent Dorfman <kent(dot)dorfman766(at)gmail(dot)com> |
Cc: | "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Description field for tables and views |
Date: | 2024-07-03 19:45:07 |
Message-ID: | 5F815B1A-3FD8-41A7-8BE7-0559066F8B96@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(dot)dorfman766(at)gmail(dot)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. Is there any psql function/command to add a description field to a table or view definition in the system? Would be nice to have a one line general text note capability to quickly see what a complicated view does when looking at the defintion via
> # \dv+
>
> Looks like the command has the field present, but not sure how to populate it.
>
> am using PostgreSQL 13.xx in Debian.
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Christophe Pettus | 2024-07-03 19:55:52 | Can't dump new-style sequences independently from their tables. |
Previous Message | Christophe Pettus | 2024-07-03 19:30:28 | Re: Description field for tables and views |