Re: [PATCHES] Warning for missing createlang

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCHES] Warning for missing createlang
Date: 2003-09-05 13:52:41
Message-ID: 9599.1062769961@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> Bruce Momjian wrote:
>>> HINT: Perhaps you need to use 'createlang' to load the language into
>>> the database, or you mistyped the language name.

> Why not list out the languages we *do* know about, and tell them it's
> not in the list? Or is that too much work?

Seems like it would clutter the error message without really addressing
Bruce's concern. I doubt that seeing the list of available languages
would do much to jog a newbie's memory about needing to run createlang.

We could answer my objection about the hint popping out on misspelled
language names if the code were to arrange to put out the hint only when
the language name is one of "plpgsql", "pltcl", "pltclu", etc. This
would have to use a hard-coded list of loadable language names, since
by definition looking in pg_language won't help. It would be enough of
a maintenance PITA that I don't especially want to do it ... but it
would ensure that the hint is likely to be relevant.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-09-05 14:01:50 Re: TCP/IP with 7.4 beta2 broken?
Previous Message Tom Lane 2003-09-05 13:42:31 Re: TCP/IP with 7.4 beta2 broken?

Browse pgsql-patches by date

  From Date Subject
Next Message Rod Taylor 2003-09-05 14:18:28 Re: [PATCHES] Warning for missing createlang
Previous Message Andreas Pflug 2003-09-05 09:06:37 Re: IPV4 addresses on IPV6 machines in pg_hba.conf