Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 44C50632E07 for ; Fri, 28 May 2010 12:14:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 89725-09 for ; Fri, 28 May 2010 15:14:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 03A6C62D9D2 for ; Fri, 28 May 2010 12:14:49 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 1E7DE348034; Fri, 28 May 2010 08:14:49 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l8e9PlmlcCzq; Fri, 28 May 2010 08:14:47 -0700 (PDT) Received: from perhan.alvh.no-ip.org (unknown [190.95.4.86]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id B1D33348002; Fri, 28 May 2010 08:14:46 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 9A7AD6E81C; Fri, 28 May 2010 11:14:44 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: Andrej , pgsql-sql Subject: Re: Extending Regular Expression bounds limit of 255. From: alvherre To: Brent DeSpain In-reply-to: References: Date: Fri, 28 May 2010 11:14:44 -0400 Message-Id: <1275059495-sup-4074@alvh.no-ip.org> User-Agent: Sup/0.11 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-5 required=5 tests=BAYES_40=-0.001 X-Spam-Level: X-Archive-Number: 201005/138 X-Sequence-Number: 34186 Excerpts from Brent DeSpain's message of jue may 27 18:55:55 -0400 2010: > It looks like most of our tools are using the Perl version of regular > expressions with an upper limit of a bound being 32766. Is there any way to > change this in PG? Or can I change from POSIX to Perl? See regcomp.c; you'll have to recompile. The interesting constant is DUPMAX (defined in regguts.h as per POSIX), but note that there's arithmetic in repeat() with those values. I wouldn't recommend doing any of this unless you have time to figure out whether the algorithms are efficient for larger values though. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support