--
-- Function to update data
--
CREATE OR REPLACE FUNCTION test_array(varchar[]) RETURNS int4 IMMUTABLE AS '
DECLARE
	t_data ALIAS FOR $1;

	_size INT4;
	
BEGIN

SELECT INTO _size array_dims(t_data);
RAISE NOTICE ''Input array size is %'',_size;

RETURN _size;

END;

' LANGUAGE plpgsql;
