Re: Psql regex is NFA or DFA?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)atentus(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Josh Jore <josh(at)greentechnologist(dot)org>, pgsql-general(at)postgresql(dot)org, henry(at)zoo(dot)utoronto(dot)ca
Subject: Re: Psql regex is NFA or DFA?
Date: 2002-09-10 18:30:21
Message-ID: 200209101830.g8AIUL908840@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alvaro Herrera wrote:
> > I am continuing to talk to Henry about getting a newer version of his
> > regex library. He is working on it but is not yet finished.
>
> Do you have some details about the implementation itself? I would like
> to work on implementing a regex engine using the Shift-And algorithm
> families, and that can probably give a performance improvement over the
> current engine.

[ CC'ing Henry Spencer. ]

No, I don't know any details except that his regex library is in the new
tcl code and has to repackaged as a separate library. Henry, could we
help you finish up your regex stuff?

Henry's regex work is the same code that is in *BSD regex (at least
BSD/OS, FreeBSD, NetBSD), which I have found to be pretty slow in
certain complex cases, so much so that I have moved to super-sed (ssed)
for use on my local machine where I have seen 100x speed improvements
with ssed.

I am not sure how slow our regex really is, but for the sake of
PostgreSQL and of the BSD regex library, I would love to see a newer
version.

In fact, I just had an email exchange with Henry about two weeks ago.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-09-10 18:49:27 Re: Psql regex is NFA or DFA?
Previous Message Alvaro Herrera 2002-09-10 18:15:22 Re: Psql regex is NFA or DFA?