plpgsql: llamando a una función con 2 parámetros OUT
Estoy intentando obtener valores de una función plpgsql con 2 parametros OUT pero tengo algún problema.
Estas son las funciones:
CREATE OR REPLACE FUNCTION get_test(OUT x text, OUT y text)
AS $
BEGIN
x := 1;
y := 2;
END;
$ LANGUAGE plpgsql;
----------------------------------------------------------------
CREATE OR REPLACE FUNCTION get_test_read()
RETURNS VOID AS $
DECLARE
xx text;
yy text;
BEGIN
SELECT get_test() INTO xx, yy;
RAISE INFO 'x: <%>', xx;
RAISE INFO 'y: <%>', yy;
END;
$ LANGUAGE plpgsql;
La salida del comando:
seleccione get_test_read ();
INFO: x: <(1,2)
INFO: y: <>
get_test_read
Entonces ambos valores van al primer parámetro. No puedo encontrar algún ejemplo sobre cómo llamar a una función como esta.