Re: patch: fix performance problems with repated decomprimation of varlena values in plpgsql
Alvaro Herrera <alvherre@commandprompt.com>
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Andrew Dunstan <andrew@dunslane.net>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, Robert Haas <robertmhaas@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-11-23T19:29:03Z
Lists: pgsql-hackers
Excerpts from Pavel Stehule's message of lun nov 22 10:01:23 -0300 2010: > sorry - it is related to tests from FOR-IN-ARRAY thread > test query: select avg(array_upper(filter02(x,'%AA%', 10),1)) from t1000; Yeah, I can measure a 25x improvement in that test with the patch applied. -- Álvaro Herrera <alvherre@commandprompt.com> The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support