I'm trying to execute the following sentences in a pl/pgsql function. aNomeProcAudita and pTabAudit are both variables.
DROP FUNCTION IF EXISTS aNomeProcAudita; DROP TRIGGER IF EXISTS 'Audita_' || pTabAudit || '_trigger';
When I try to create this function without these two sentences, everything goes ok, however, when I've got these two sql senteces, I get the following error: