次の plpgsql 関数の結果を連結テキスト出力で出力したいと考えています。
どうすればいいですか?次のようなものが欲しいです:
output = output + 'new point';
これまでの私の機能:
DECLARE
descriptions text[];
i text;
counter int := 1;
_r record;
output text;
BEGIN
descriptions = string_to_array(description, ',');
FOREACH i IN ARRAY descriptions
LOOP
FOR _r IN EXECUTE 'select point_id as id, name_of_location as name, description as desc
from information_on_point_of_interest
where description = '''||descriptions[counter]||''''
LOOP
output := output + _r.id || ',' || _r.name || ',' || _r.desc || '|';
END LOOP;
END LOOP;
RETURN output;
END;
output := output + new point
サポートされていないようですか?