Re: question re internal functions requiring initdb

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: question re internal functions requiring initdb
Date: 2002-07-14 01:01:46
Message-ID: 13252.1026608506@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Joe Conway <mail(at)joeconway(dot)com> writes:
> It made me wonder why don't we always create internal functions this
> way, or at least all except a core set of bootstrapped functions.

I don't believe it will actually work: you *must* add an internal
function to include/catalog/pg_proc.h, or it won't get into the function
lookup table that's built by Gen_fmgrtab.sh.

It is true that you don't have to force an initdb right away, but
there's an efficiency penalty IIRC (can't bypass the lookup table
search, or something ... read the fmgr code for details).

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2002-07-14 02:25:53 Re: question re internal functions requiring initdb
Previous Message Joe Conway 2002-07-14 00:50:38 question re internal functions requiring initdb