Re: Warning for missing createlang

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Warning for missing createlang
Date: 2003-09-05 01:28:56
Message-ID: 19519.1062725336@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> I have written a patch to issue an hint if someone tries to create a
> function in a language that isn't loaded into the database:

> ERROR: language "plpgsql" does not exist
> HINT: Perhaps you need to use 'createlang' to load the language into
> the database.

> I know Peter didn't like this idea in the past, but we are getting too
> many people who forget createlang, and with our new HINT tags, it seems
> appropriate.

I still agree with Peter's opinion ... this hint is fairly silly,
especially since it would pop out for simple misspellings of language
names.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-09-05 01:33:20 Re: Warning for missing createlang
Previous Message Bruce Momjian 2003-09-05 01:14:42 psql \h alter scrolls of screen

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-09-05 01:33:20 Re: Warning for missing createlang
Previous Message Bruce Momjian 2003-09-05 01:14:42 psql \h alter scrolls of screen