Open GoogleCodeExporter opened 9 years ago
What version of the product are you using? On what operating system?
plv8 1.4? Is there anything like plv8.version() method?
Postgres.app 9.3
OSX 10.7.5 (Lion) x64
Seeing this as well when logging large messages. My work around is to partition
messages into 2000 bytes before logging. This large message logs correctly
using plpgsql
do language plpgsql $$
BEGIN
RAISE LOG '% %', repeat('A', 3000), 'x';
END
$$;
Original comment by mario.l....@gmail.com
on 30 Dec 2013 at 5:14
It appears that 512 is the max length of an allowed segment for elog. I have no
idea why:
andrew=# do language plv8 $$ var repeat = function(it, n) { var res = ""; for
(var i=0; i<n; i++) res += it; return res; };
plv8.elog(NOTICE, repeat('A', 513), 'x');
$$;
NOTICE:
DO
andrew=# do language plv8 $$ var repeat = function(it, n) { var res = ""; for
(var i=0; i<n; i++) res += it; return res; };
plv8.elog(NOTICE, repeat('A', 512), 'x');
$$;
NOTICE:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA x
DO
andrew=#
Original comment by AMDuns...@gmail.com
on 8 Sep 2014 at 9:09
Original issue reported on code.google.com by
haddow...@gmail.com
on 5 Jul 2013 at 5:34