Re: [GENERAL] using raise info to display array element

2011-08-05 Thread Pavel Stehule
Hello It working on my 9.1. postgres=# select "public"."test_func_new" (); INFO: 1st element: 5 test_func_new ─── 0 (1 row) can you send more info about your environment? Regards Pavel Stehule 2011/8/5 Kiryl Mauryshchau : > I am trying to print values of an array o

[GENERAL] using raise info to display array element

2011-08-05 Thread Kiryl Mauryshchau
I am trying to print values of an array one by one, but it doesn't work. For example, if i want to print entire array at once, it does work: CREATE OR REPLACE FUNCTION "public"."test_func" () RETURNS integer AS $body$ declare i int; v_arr integer[] = '{0, 1}'; begin v_arr[1] := 5; v_arr[