relation “old” does not exist
问题 When i try execute this script, i get an error: ERROR: relation "old" does not exist. Script: update organization set row_status = 30; I found some question like this, but their dont help me. My trigger: Create OR REPLACE function PMigrateDataToHistory() returns trigger as $PMigrateDataToHistory$ begin insert into organization_history select * from OLD; delete from organization as org USING OLD as o where o.id = org.id and o.version = org.version; insert into organization select n.id, n