diff --git a/edb/pgsql/metaschema.py b/edb/pgsql/metaschema.py index 683e1d3809d8..8bda88f40ef5 100644 --- a/edb/pgsql/metaschema.py +++ b/edb/pgsql/metaschema.py @@ -7868,7 +7868,6 @@ def construct_pg_view( SELECT attname FROM edgedbsql_VER.pg_attribute WHERE attrelid = conrelid AND attnum = ANY(conkey) - LIMIT 1 ) || '")' || ' REFERENCES "' || pn.nspname || '"."' || pc.relname || '"(id)' ELSE ''