where queue_name = i_queue_name
and consumer_name = i_consumer_name;
if found then
- select 100, 'Consumer ' || i_consumer_name || ' compleded tick = ' || i_tick_id
+ select 100, 'Consumer ' || i_consumer_name || ' compleded tick = ' || i_tick_id::text
into ret_code, ret_note;
else
select 404, 'Consumer not known: '
and t.tick_queue = q.queue_id
and t.tick_id = _wm;
if not found then
- select 200, 'Skipping global watermark update to ' || _wm
+ select 200, 'Skipping global watermark update to ' || _wm::text
into ret_code, ret_note;
return;
end if;
return;
end if;
- select 200, 'Global watermark set to ' || _wm
+ select 200, 'Global watermark set to ' || _wm::text
into ret_code, ret_note;
return;
end;
perform pgq.register_consumer_at(i_queue_name, wm_name, i_watermark);
- select 200, wm_name || ' set to ' || i_watermark
+ select 200, wm_name || ' set to ' || i_watermark::text
into ret_code, ret_note;
return;
end;