<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Keto on BonesMoses.org</title>
    <link>https://bonesmoses.org/tags/keto/</link>
    <description>Recent content in Keto on BonesMoses.org</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 08 Feb 2021 20:04:09 +0000</lastBuildDate><atom:link href="https://bonesmoses.org/tags/keto/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>A Full Bundle</title>
      <link>https://bonesmoses.org/2021/a-full-bundle/</link>
      <pubDate>Mon, 08 Feb 2021 20:04:09 +0000</pubDate>
      
      <guid>https://bonesmoses.org/2021/a-full-bundle/</guid>
      <description>In the process of working on a customer migration and came up with a neat query for finding tables that don&amp;rsquo;t have a primary key:
SELECT c.oid::REGCLASS::TEXT AS table FROM pg_class c JOIN pg_namespace n ON (n.oid = c.relnamespace) LEFT JOIN pg_constraint p ON (p.conrelid=c.oid AND p.contype = &amp;#39;p&amp;#39;) WHERE c.relkind IN (&amp;#39;p&amp;#39;, &amp;#39;r&amp;#39;) AND n.nspname NOT IN (&amp;#39;pglogical&amp;#39;, &amp;#39;information_schema&amp;#39;, &amp;#39;bdr&amp;#39;) AND n.nspname NOT LIKE &amp;#39;pg\_%&amp;#39; AND p.conrelid IS NULL; For anyone out there that is using pglogical, this is how you figure out if there are any tables that won&amp;rsquo;t work in the default replication set.</description>
    </item>
    
  </channel>
</rss>
