Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sP5uz-002r3o-PT for pgsql-general@arkaria.postgresql.org; Wed, 03 Jul 2024 19:45:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sP5ux-00Bks2-RB for pgsql-general@arkaria.postgresql.org; Wed, 03 Jul 2024 19:45:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sP5ux-00Bkql-Cw for pgsql-general@lists.postgresql.org; Wed, 03 Jul 2024 19:45:28 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sP5ur-000FYi-0S for pgsql-general@lists.postgresql.org; Wed, 03 Jul 2024 19:45:26 +0000 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1fa07e4f44eso38738935ad.2 for ; Wed, 03 Jul 2024 12:45:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720035920; x=1720640720; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/fvtpWFClpelOYDcLAo3fZy86xdsK0X71U95KFxg9/o=; b=ZemzwNHjfMgPfwhqgjxk2KNqAufiS3JARXUE9FL+oLYUe8La4DB47wGO8dPr4c89qY VI7LA3UK9DPfPqYa2bLdZHhaZ90uAQNytuDmfKrfr2HlAIKpEP1xYKpPeAVyd23YB00A piLgsGmlM3tXX18sHG/8Z625WFdqceRxBbR2TKklc0BG5fEYojnNfAJj5cSCsjoGxttJ A1Geljsr6TqDSzDZp/rC16QqAnB0R5XSG1bRip4EIq8QT3mttaJOnslMYdlT2KubBuBw Z1F0z5NsEtqW8dTRk2HkNloNBqYg5ziyPjhbEe2GRXqZ6ZHlXA3bIIYFYjrdnnvR0yqO AQeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720035920; x=1720640720; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/fvtpWFClpelOYDcLAo3fZy86xdsK0X71U95KFxg9/o=; b=AsUlLpnWyNo5wmvUPJPimY1LFyTddxNvpVYLSTU0og0GBXvGhCBUUKFjjsCX3OxyCA HWUMVjIbYNCX6VxZxsN3NirbVJ8RHtWN91Vh4HaRCE3078JqmD5mYlRjmwIhGOnK/k0C hG4vmdep19PtmyphbWm7OH05+1y1UYLUrpZVLXJIWk4XueRcGvnRxt9V34iIsDE6M+CZ aUIKOSjWFkQeOeB2y0XiPcZLfh2nTBsNoKdOrgDiPKE48UrwP9dAtK4ICBSdTHSVpD+J uKvFeysa/9jb/gsDDkmtKjy/j8hfCimT8wt5rivcXfwLEjux/622+lPP1PABIXVa8wgD MtvA== X-Gm-Message-State: AOJu0YyPpEveYjjTiqpbK1x6qOrXldaDK92lE8Ugw46qTNlNSuivAsTX 6cptyV4mWJ5i1LIsehv7lL9qNvx7pHKJuxCLiSST5sEGCDY4dhhu X-Google-Smtp-Source: AGHT+IEAI2RYOQs8GEGdPEfWE9t5+ZXTJNOlY/Bfz1wPQCaTvT1ZmKF53VVvuF2f7VQXse4WNSAXgg== X-Received: by 2002:a17:903:41d0:b0:1fb:167e:fb0f with SMTP id d9443c01a7336-1fb167efe72mr19613605ad.18.1720035919628; Wed, 03 Jul 2024 12:45:19 -0700 (PDT) Received: from smtpclient.apple ([2600:8801:8600:3d2::12]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fac15389a8sm108036095ad.176.2024.07.03.12.45.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jul 2024 12:45:18 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: Description field for tables and views From: Guyren Howe In-Reply-To: <341b85fb-0085-95ea-1177-fc96944295e2@gmail.com> Date: Wed, 3 Jul 2024 12:45:07 -0700 Cc: "pgsql-general@lists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <5F815B1A-3FD8-41A7-8BE7-0559066F8B96@gmail.com> References: <341b85fb-0085-95ea-1177-fc96944295e2@gmail.com> To: Kent Dorfman X-Mailer: Apple Mail (2.3774.600.62) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Comment is probably what you=E2=80=99re looking for. If you don=E2=80=99t want to use that: it=E2=80=99s 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 = wrote: >=20 > I think I already know the answer but asking here is probably quicker = turnaround than researching it. >=20 > 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=20 > # \dv+ >=20 > Looks like the command has the field present, but not sure how to = populate it. >=20 > am using PostgreSQL 13.xx in Debian. >=20 >=20