Comments and metadata

Comments and metadata

From Postgres FM by Nikolay Samokhvalov and Michael Christofides

February 13, 2026 · 36 min · Episode 171

About this episode

Nik and Michael discuss query level comments, object level comments, and ways to add object level metadata in PostgreSQL.

Nik and Michael discuss query level comments, object level comments, and another way of adding object level metadata. Here are some links to things they mentioned: Object comments https://www.postgresql.org/docs/current/sql-comment.html Query comment syntax (from an old version of the docs) https://www.postgresql.org/docs/7.0/syntax519.htm SQL Comments, Please! (Post by Markus Winand) https://modern-sql.com/caniuse/comments “While C-style block comments are passed to the server for processing and removal, SQL-standard comments are removed by psql.” https://www.postgresql.org/docs/current/app-psql.html marginalia https://github.com/basecamp/marginalia track_activity_query_size https://www.postgresql.org/docs/current/runtime-config-statistics.html#GUC-TRACK-ACTIVITY-QUERY-SIZE Custom Properties for Database Objects Using SECURITY LABELS (post by Andrei Lepikhov) https://www.pgedge.com/blog/custom-properties-for-postgresql-database-objects-without-core-patches ~~~ What did you like or not like? What should we discuss next time? Let us know via a YouTube comment, on social media, or by commenting on our Google doc ! ~~~ Postgres FM is produced by: Michael Christofides, founder of…

People in this episode

Hosts: Nikolay Samokhvalov, Michael Christofides

Topics covered

  • PostgreSQL comments
  • metadata
  • query comments
  • object comments
  • database properties

Keywords

  • PostgreSQL
  • comments
  • metadata
  • query comment syntax
  • object comments
  • SQL-standard comments
  • marginalia
  • track_activity_query_size
  • SECURITY LABELS

Mentioned in this episode

Organizations: Postgres FM, pgMustard, Postgres.ai, GitHub, modern-sql.com, pgedge.com

Books & works: SQL Comments, Please!, marginalia

More episodes of Postgres FM

Explore listener stats, chart rankings, contacts and more on the Postgres FM podcast page.