<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Postgres on Vertical Sysadmin, Inc.</title><link>https://verticalsysadmin.com/categories/postgres/</link><description>Recent content in Postgres on Vertical Sysadmin, Inc.</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 24 Oct 2016 00:00:00 +0000</lastBuildDate><atom:link href="https://verticalsysadmin.com/categories/postgres/index.xml" rel="self" type="application/rss+xml"/><item><title>Looking up Postgres table name by id</title><link>https://verticalsysadmin.com/2016/10/24/looking-up-postgres-table-name-by-id/</link><pubDate>Mon, 24 Oct 2016 00:00:00 +0000</pubDate><guid>https://verticalsysadmin.com/2016/10/24/looking-up-postgres-table-name-by-id/</guid><description>&lt;p&gt;When working with [TOAST][1] tables, I had the relid (relation or table id) of the parent table, and needed to get its name.&lt;/p&gt;
&lt;p&gt;Here is how to perform the lookup. For example, if the relid is 19665:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;SELECT relid, relname FROM pg_catalog.pg_statio_user_tables WHERE relid = '19665';&lt;/code&gt;&lt;/p&gt;</description></item></channel></rss>