Re: Warning for missing createlang

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Warning for missing createlang
Date: 2003-09-05 20:56:54
Message-ID: 200309052056.h85Kus117759@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Peter Eisentraut wrote:
> Bruce Momjian writes:
>
> > How about this, that also suggests you mistyped the name:
> >
> > > HINT: Perhaps you need to use 'createlang' to load the language into
> > > the database, or you mistyped the language name.
>
> That's only one step away from this:
>
> peter=# SELECT * FROM test;
> ERROR: relation "test" does not exist
> HINT: Perhaps you need to use "CREATE TABLE" to create the table in the
> database, or you mistyped the table name.
>
> I think not...

I never suggested that. Just because the extreme is wrong doesn't make
the case we are discussing wrong.

If the hint is useful, then we add it. I don't see the above as useful,
while I see the CREATE FUCTION as useful. No one is posting asking why
they have to create the table before selecting from it.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-09-05 20:58:59 Re: [PATCHES] Warning for missing createlang
Previous Message Bruce Momjian 2003-09-05 20:54:39 Re: [PATCHES] Warning for missing createlang

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-09-05 20:58:49 Re: minor documentation improvements
Previous Message Bruce Momjian 2003-09-05 20:54:39 Re: [PATCHES] Warning for missing createlang