On Sun, December 16, 2012 22:25, Alexander Korotkov wrote: > trgm-regexp-0.8.patch.gz 22 k
Hi Alexander, I gave this a quick try; the patch works when compiled for DEBUG, but crashes as a 'speed'-compiled binary: Compile for speed: $ pg_config --configure '--prefix=/home/aardvark/pg_stuff/pg_installations/pgsql.trgm_regex8' '--with-pgport=6556' '--enable-depend' '--with-openssl' '--with-perl' '--with-libxml' $ psql psql (9.3devel-trgm_regex8-20121216_2336-c299477229559d4ee7db68720d86d3fb391db761) Type "help" for help. testdb=# explain analyze select txt from azjunk5 where txt ~ 'x[aeiouy]{2,5}q'; The connection to the server was lost. Attempting reset: Failed. !> \q log after such: ----------------- 2012-12-17 09:31:02.337 CET 15801 LOG: server process (PID 16903) was terminated by signal 11: Segmentation fault 2012-12-17 09:31:02.337 CET 15801 DETAIL: Failed process was running: explain analyze select txt from azjunk5 where txt ~ 'x[aeiouy]{2,5}q'; 2012-12-17 09:31:02.347 CET 15801 LOG: terminating any other active server processes 2012-12-17 09:31:02.348 CET 17049 FATAL: the database system is in recovery mode 2012-12-17 09:31:02.722 CET 15801 LOG: all server processes terminated; reinitializing 2012-12-17 09:31:03.506 CET 17052 LOG: database system was interrupted; last known up at 2012-12-17 09:26:00 CET 2012-12-17 09:31:03.693 CET 17052 LOG: database system was not properly shut down; automatic recovery in progress 2012-12-17 09:31:04.493 CET 17052 LOG: record with zero length at 2/7E3C7588 2012-12-17 09:31:04.494 CET 17052 LOG: redo is not required 2012-12-17 09:31:06.940 CET 15801 LOG: database system is ready to accept connections ---------------- A debug-compile with below options runs OK (so far): Compile for debug: $ pg_config --configure '--prefix=/home/aardvark/pg_stuff/pg_installations/pgsql.trgm_regex8b' '--with-pgport=6560' '--enable-depend' '--enable-cassert' '--enable-debug' '--with-openssl' '--with-perl' '--with-libxml' which does show some speed gain, I think. When I have time I'll post comparisons between HEAD, versions 6, 7, 8. (BTW, is v6 still interesting?) Thanks, Erik Rijkers -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers