code: protected long createTaskInternal(String name, String channel, String data, String key1, String key2, Long batchId, int postponeSec, TedStatus status) {
  		String sqlLogId = "create_task";
  		if (status == null)
  			status = TedStatus.NEW;
  		String nextts = (status == TedStatus.NEW ? dbType.sql.now() + " + " + dbType.sql.intervalSeconds(postponeSec) : "null");
  
  		String sql = " insert into tedtask (taskId, system, name, channel, bno, status, createTs, nextTs, retries, data, key1, key2, batchId)" +
  				" values($nextTaskId, '$sys', ?, ?, null, '$status', $now, $nextts, 0, ?, ?, ?, ?)" +
  				" returning taskId";
  		sql = sql.replace("$nextTaskId", dbType.sql.sequenceSql("SEQ_TEDTASK_ID"));
  		sql = sql.replace("$now", dbType.sql.now());
  		sql = sql.replace("$sys", thisSystem);
  		sql = sql.replace("$nextts", nextts);
  		sql = sql.replace("$status", status.toString());
  
  		List<TaskIdRes> resList = selectData(sqlLogId, sql, TaskIdRes.class, asList(
  				sqlParam(name, JetJdbcParamType.STRING),
  				sqlParam(channel, JetJdbcParamType.STRING),
  				sqlParam(data, JetJdbcParamType.STRING),
  				sqlParam(key1, JetJdbcParamType.STRING),
  				sqlParam(key2, JetJdbcParamType.STRING),
  				sqlParam(batchId, JetJdbcParamType.LONG)
  		));
  		Long taskId = resList.get(0).taskid;
  		logger.trace("Task {} {} created successfully. ", name, taskId);
  		return taskId;
  
  	}
docs: use 1 call for postgres, instead of 2 (sequence and insert)