From: | Jeremy Drake <pgsql(at)jdrake(dot)com> |
---|---|
To: | David Fetter <david(at)fetter(dot)org> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: WIP patch adding new regexp functions |
Date: | 2007-02-08 00:20:25 |
Message-ID: | Pine.BSO.4.64.0702071611370.28908@resin.csoft.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
On Wed, 7 Feb 2007, David Fetter wrote:
> On Wed, Feb 07, 2007 at 09:23:58AM -0500, Tom Lane wrote:
> > Jeremy Drake <pgsql(at)jdrake(dot)com> writes:
> > > * Put together a patch to add these functions to core. I could put them
> > > directly in regexp.c, so the support functions could stay static. My
> > > concern here is that I don't know if there are any functions currently
> > > in core with OUT parameters.
> >
> > As of 8.2 there are.
> >
> > If we are going to include these I would vote for core not contrib
> > status, exactly to avoid having to export those functions.
>
> +1 for core. :)
Here is a patch to add these functions to core. Please take a look and
let me know what you think. I had to jump through a bit of a hoop to
avoid opr_sanity test from breaking, may not have done that right.
Also, this patch allows regexp_replace to take more flags, since my two
new functions needed flags also, I split flag parsing into a seperate
function and made regexp_replace use it too. It also results that the
error message for an invalid flag in regexp_replace changes, since it is
now more generic as it is called from multiple functions.
I still need to write documentation for the new functions before I
consider the patch completed, but please take a look at the code and see
if it is acceptable as I do not have any further changes planned for it.
--
Chicken Soup, n.:
An ancient miracle drug containing equal parts of aureomycin,
cocaine, interferon, and TLC. The only ailment chicken soup
can't cure is neurotic dependence on one's mother.
-- Arthur Naiman, "Every Goy's Guide to Yiddish"
Attachment | Content-Type | Size |
---|---|---|
regexp-split-matches.patch | text/plain | 34.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 2007-02-08 01:13:10 | Re: Proposal: Commit timestamp |
Previous Message | FAST PostgreSQL | 2007-02-07 23:36:44 | Re: [pgsql-patches] pg_get_domaindef |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-02-08 00:54:05 | Re: Configure template change to use SysV Semaphors on darwin |
Previous Message | FAST PostgreSQL | 2007-02-07 23:36:44 | Re: [pgsql-patches] pg_get_domaindef |