Search Postgresql Archives

Re: Description field for tables and views

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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.
> 
> 







[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux