Ist es möglich, einen Fremdschlüssel zu haben, der auf ein Feld einer Systemkatalogtabelle (pg_catalog) zeigt?
Wenn ich das Folgende versuche:
ALTER TABLE my_table ADD CONSTRAINT fk_my_table FOREIGN KEY (role_name) REFERENCES pg_roles(rolname) ON UPDATE CASCADE;
Ich verstehe:
ERROR: referenced relation "pg_roles" is not a table