Re: Lookup penalty for VARIADIC patch

From: Decibel! <decibel(at)decibel(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Lookup penalty for VARIADIC patch
Date: 2008-07-16 02:53:44
Message-ID: B2BD8195-E6A7-44C5-B4EC-65BD5D9CEBCF@decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Jul 15, 2008, at 4:58 PM, Tom Lane wrote:
> There are two ways we
> could do it: a bool column that is TRUE if the function is variadic,
> or an oid column that is the variadic array's element type, or zero
> if the function isn't variadic. The second would take more space but
> would avoid having to do a catalog lookup to get the element type in
> the case that the function is indeed variadic. I'm leaning to the
> second way but wanted to know if anyone objected?

If you go the second route, I'd vote for it being NULL if the
function isn't variadic, unless that would play hell with the C side
of the catalog code...

> Also, it occurs to me that we could buy back a good part of the extra
> space if we allowed pg_proc.probin to be NULL for internal functions.
> Right now it's always "-" in that case, which is useless ...

I'd vote for that being NULL in any case... magic values should be
avoided when possible.
--
Decibel!, aka Jim C. Nasby, Database Architect decibel(at)decibel(dot)org
Give your computer some brain candy! www.distributed.net Team #1828

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-07-16 03:26:18 Re: PATCH: CITEXT 2.0 v3
Previous Message ITAGAKI Takahiro 2008-07-16 02:49:13 Re: [PATCHES] WIP: executor_hook for pg_stat_statements