pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: alvherre <alvherre@commandprompt.com>
To: Brent DeSpain <bd.postgres@gmail.com>
Cc: Andrej <andrej.groups@gmail.com>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Extending Regular Expression bounds limit of 255.
Date: Fri, 28 May 2010 11:14:44 -0400
Message-ID: <1275059495-sup-4074@alvh.no-ip.org> (raw)
In-Reply-To: <AANLkTikbjNOsDwlnfUcjS9G2CzgWcnp8NpS48v9m_TSp@mail.gmail.com>
References: <AANLkTinSlZ_53lw9hAzQTd4bSFlR1_jmzgpbvTSYc3oi@mail.gmail.com>
	<AANLkTimcCsHFFlknF_KBXV5mPTqLrW_LhST0GN4ONOYC@mail.gmail.com>
	<AANLkTil49TqqzY3yQQFU-gGNT4KaVUjz1o5QHQGcYLZg@mail.gmail.com>
	<AANLkTikbjNOsDwlnfUcjS9G2CzgWcnp8NpS48v9m_TSp@mail.gmail.com>

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 <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



view thread (9+ messages)  latest in thread

Message-ID: <1275059495-sup-4074@alvh.no-ip.org>
Permalink:  ../1275059495-sup-4074@alvh.no-ip.org/
Also on:    postgresql.org/message-id/1275059495-sup-4074@alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: alvherre@commandprompt.com, bd.postgres@gmail.com, andrej.groups@gmail.com
  Subject: Re: Extending Regular Expression bounds limit of 255.
  In-Reply-To: <1275059495-sup-4074@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox