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-22 00:09:22
Message-ID: Pine.BSO.4.64.0703211649240.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:

> Jeremy Drake <pgsql(at)jdrake(dot)com> writes:
> > BTW, should I be calling
> > get_typlenbyvalalign on TEXTOID or are there macros for those also?
>
> By and large we tend to hard-wire those properties too, eg there are
> plenty of places that do things like this:
>
> /* XXX: this hardcodes assumptions about the regtype type */
> result = construct_array(tmp_ary, num_params, REGTYPEOID, 4, true, 'i');
>
> Some are better commented than others ...

So, what action (if any) should be taken? Should all (or some) of these
values be hardcoded, or should the current calls to determine them be left
in place?

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

--
Fortune's Real-Life Courtroom Quote #19:

Q: Doctor, how many autopsies have you performed on dead people?
A: All my autopsies have been performed on dead people.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2007-03-22 02:04:09 Re: [HACKERS] Stats processor not restarting
Previous Message Tom Lane 2007-03-21 23:37:12 Re: fixing dllist?

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2007-03-22 02:04:09 Re: [HACKERS] Stats processor not restarting
Previous Message Alvaro Herrera 2007-03-21 22:35:31 WIP multiworker autovacuum