Is the usage of format() in cases like this generally interchangeable?
exec_str := format('UPDATE ' || TG_ARGV[0] ||
' SET username = current_user,
time = current_timestamp::timestamp(0);'
);
EXECUTE exec_str;
vs.
exec_str := 'UPDATE ' || TG_ARGV[0] ||
' SET username = current_user,
time = current_timestamp::timestamp(0);'
;
EXECUTE format(exec_str);