Re: Psql regex is NFA or DFA?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Josh Jore <josh(at)greentechnologist(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Psql regex is NFA or DFA?
Date: 2002-09-10 14:13:33
Message-ID: 19291.1031667213@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Josh Jore <josh(at)greentechnologist(dot)org> writes:
> So I've finished reading Jeffery Friedl's _Mastering Regular Expressions_
> and while I don't need regex in PostgreSQL I know I'll do it for something
> - eventually. The book makes a distinction between DFA, POSIX NFA and
> Traditional NFA and then ascribes some properties and behaviours to each.
> So what sort does PostgreSQL have?

Well, you could read the code (src/backend/regex), or you could apply
the tests that Friedl suggests to distinguish the type of an unknown
engine ...

My guess is that it's an NFA, but I dunno if Spencer did the POSIX
semantics or not.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message v.nrg 2002-09-10 15:16:45 statement triggers
Previous Message Tom Lane 2002-09-10 13:51:34 Re: nextval result type difference between 7.1.3 and 7.2.1