Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id BC28EBEAE5C for ; Wed, 25 Jul 2012 14:10:35 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Su56T-0005mj-IC for pgsql-bugs@postgresql.org; Wed, 25 Jul 2012 17:10:34 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q6PHAF0G029372; Wed, 25 Jul 2012 13:10:15 -0400 (EDT) From: Tom Lane To: jez.wain@bull.net cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6760: make check fails on strings SQL T581 regex test In-reply-to: References: Comments: In-reply-to jez.wain@bull.net message dated "Wed, 25 Jul 2012 10:32:23 -0000" Date: Wed, 25 Jul 2012 13:10:15 -0400 Message-ID: <29371.1343236215@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/200 X-Sequence-Number: 33676 jez.wain@bull.net writes: > *************** > *** 347,354 **** > three | f1 | exp_ln_f1 > -------+----------------------+----------------------- > | 1004.3 | 1004.3 > ! | 1.2345678901234e+200 | 1.23456789012338e+200 > ! | 1.2345678901234e-200 | 1.23456789012339e-200 > (3 rows) > -- cube root > --- 347,354 ---- > three | f1 | exp_ln_f1 > -------+----------------------+----------------------- > | 1004.3 | 1004.3 > ! | 1.2345678901234e+200 | 1.23456789012337e+200 > ! | 1.2345678901234e-200 | 1.2345678901234e-200 > (3 rows) This doesn't seem terribly surprising as a platform-specific difference. > -- T581 regular expression substring (with SQL99's bizarre regexp syntax) > SELECT SUBSTRING('abcdefg' FROM 'a#"(b_d)#"%' FOR '#') AS "bcd"; > ! ERROR: invalid regular expression: parentheses () not balanced > ! CONTEXT: SQL function "substring" statement 1 This however isn't too good. It suggests a platform-specific issue in the regex library, but hard to say what. Can you dig a little deeper, maybe get a stack trace back from the call to errfinish()? Does compiling with -O0 change the behavior? regards, tom lane