See [relkind](https://www.postgresql.org/docs/current/catalog-pg-class.html) We need to make sure that the appropriate checks work for partitioned tables