Re: [HACKERS] regular expressions from hell

From: Brett McCormick <brett(at)work(dot)chicken(dot)org>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: dg(at)illustra(dot)com (David Gould), pgsql-hackers(at)hub(dot)org, pgsql-questions(at)hub(dot)org
Subject: Re: [HACKERS] regular expressions from hell
Date: 1998-06-01 14:27:50
Message-ID: 13682.47718.762756.110251@web0.speakeasy.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 1 June 1998, at 10:16:35, Bruce Momjian wrote:

> > Ok, my vote is to build regexes into the pgsql binary or into a .so that
> > we distribute. There should be no need to have perl installed on a system
> > to run postgresql. If we are going to extend the language to improve on
> > the very lame sql92 like clause, we need to have it be part of the system
> > that can be counted on, not something you might or might not have depending
> > on what else is installed.

I'm not suggesting we require perl to be installed to run postgres, or
replace the current regexp implementation with perl. i was just
lamenting the fact that there are no less than 10 different regexp
implementations, with different metacharacters. why should I have to
remember one syntax when I use perl, one for sed, one for emacs, and
another for postgresql? this isn't a problem with postgres per se,
just the fact that there seems to be no standard.

I love perl regex's. I'm merely suggesting (and planning on
implementing) a different set of regexp operators (not included with
postgres, but as a contrib module) that use perl regex's. There are
some pros and cons, which have been discussed.

It should be there for people who want it.

>
> We already have it as ~, just not with Perl extensions. Our
> implementation is very slow, and the author has said he is working on a
> rewrite, though no time frame was given.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1998-06-01 14:42:21 Re: [HACKERS] regular expressions from hell
Previous Message Bruce Momjian 1998-06-01 14:24:48 Re: [HACKERS] Lots 'o patches