Re: patch adding new regexp functions

From: Jeremy Drake <pgsql(at)jdrake(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Neil Conway <neilc(at)samurai(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, David Fetter <david(at)fetter(dot)org>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>, Mark Dilger <pgsql(at)markdilger(dot)com>
Subject: Re: patch adding new regexp functions
Date: 2007-03-21 06:12:55
Message-ID: Pine.BSO.4.64.0703202308390.19070@resin.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Wed, 21 Mar 2007, Tom Lane wrote:

> Neil Conway <neilc(at)samurai(dot)com> writes:
> > * Comments like "/* get text type oid, too lazy to do it some other way
> > */" do not exactly inspire confidence :)
>
> Surely the code was just using the TEXTOID macro? If so, it does not
> require a comment. If not, it should be fixed ...

Nope, it does get_fn_expr_argtype(fcinfo->flinfo, 0); The too lazy remark
was that I thought there may be a better way (like the macro you
mentioned) but did not go looking for it because I already had something
that worked that I found in the manual. If you like, I can put together
another patch that removes the param_type members from the structs and
hardcodes TEXTOID in the proper places. BTW, should I be calling
get_typlenbyvalalign on TEXTOID or are there macros for those also?

>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>
>

--
We're only in it for the volume.
-- Black Sabbath

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-03-21 06:31:44 Re: Money type todos?
Previous Message Pavan Deolasee 2007-03-21 05:57:30 HOT WIP Patch - Version 5.0

Browse pgsql-patches by date

  From Date Subject
Next Message Magnus Hagander 2007-03-21 09:25:45 Re: Win32 shmem
Previous Message Tom Lane 2007-03-21 05:50:06 Re: patch adding new regexp functions