Hello,
I am trying to use the Post Create SQL Statement to create a VIEW in one schema, A, from another schema, B.
CREATE OR REPLACE VIEW "A"."newVIEW" AS
SELECT * FROM "B"."oldTABLE";
I've tried several different methods, but I continuously get errors saying: ERROR: relation "oldTABLE" already exists. I also get an error saying: relation "oldTABLE" does not exist.
I've tried: changing all references to serial, all primary keys to integers to match up types, dropped tables, and recreated them. I still get this error.
Any help is appreciated, and if more info is needed, I'm glad to provide it.