indu ss <ind1_us@xxxxxxxxx> writes: > Still i get this error > ERROR: syntax error at or near "set" > CONTEXT: compile of PL/pgSQL function "pgmail" near > line 1 Somehow, I don't think you are passing this function to the pltcl PL... either you mistyped the language attribute, or you've managed to create the pltcl language as referencing the plpgsql call handler. regards, tom lane