pg_typeof() (was: Mysterious Bus Error with get_fn_expr_argtype())

From: "Brendan Jurd" <direvus(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Neil Conway" <neilc(at)samurai(dot)com>, "David E(dot) Wheeler" <david(at)kineticode(dot)com>, "PostgreSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: pg_typeof() (was: Mysterious Bus Error with get_fn_expr_argtype())
Date: 2008-09-03 02:57:28
Message-ID: 37ed240d0809021957r6291d2aej3fc87020a3f7a299@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Tue, Sep 2, 2008 at 3:31 PM, Brendan Jurd <direvus(at)gmail(dot)com> wrote:
> Barring any further comments/objections, I'll go ahead and prepare a
> patch to add this to core.
>

Any opinions on where pg_typeof() should be defined? This function is
a little unusual and doesn't seem to slot nicely into any one of the
existing categories.

A few candidates:

* regproc.c - it contains functions for working with regtype.
* ruleutils.c - it contains a lot of other system information
functions, like pg_get_expr(), pg_get_userbyid(), et al.
* format_type.c - functions for presenting type information to the user.
* misc.c

Personally I'd be inclined to go with misc.c (if it's not clear where
it belongs, that probably makes it miscellany), but it's a weak
preference only.

Cheers,
BJ

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Chernow 2008-09-03 03:27:32 Re: libpq object hooks (libpq events)
Previous Message Hitoshi Harada 2008-09-03 02:34:24 Re: Window functions patch v04 for the September commit fest

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Chernow 2008-09-03 03:27:32 Re: libpq object hooks (libpq events)
Previous Message Alvaro Herrera 2008-09-03 00:19:20 Re: libpq object hooks (libpq events)