Postgres schema inspect on Partitioned table - Error: referenced view ...
Author: guigui42Created Sep 23, 2023Updated Sep 29, 2026
Using Postgres 15.
I have a table MYPARTTABLE that is partitioned by value, and therefor it created multiple "virtual tables" such as MYPARTTABLE _VALUEA MYPARTTABLE _VALUEB MYPARTTABLE _VALUEC
CREATE TABLE schema1.MYPARTTABLE
(
valuename character varying NOT NULL,
-- other columns ...
) PARTITION BY LIST (valuename)
CREATE TABLE schema1._VALUEA PARTITION OF schema1.MYPARTTABLE
FOR VALUES IN ('VALUEA');
CREATE TABLE schema1._VALUEB PARTITION OF schema1.MYPARTTABLE
FOR VALUES IN ('VALUEB');
CREATE TABLE schema1._VALUEC PARTITION OF schema1.MYPARTTABLE
FOR VALUES IN ('VALUEC');Now, when I run
atlas schema inspect -u postgresql://.....?search_path=schema1
I get this error :
Error: referenced view "MYPARTTABLE " was not found in schema "schema1"
I have no issues with other schemas, without Partitioned tables. How can I solve this ?
Source: ariga/atlas