Re: pgsql/src/backend/commands define.c

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: <momjian(at)postgresql(dot)org>
Cc: <pgsql-committers(at)postgresql(dot)org>
Subject: Re: pgsql/src/backend/commands define.c
Date: 2001-10-13 19:23:27
Message-ID: Pine.LNX.4.30.0110132030460.643-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox
Thread:
Lists: pgsql-committers

momjian(at)postgresql(dot)org writes:

> Mention createlang when language not installed, per problem report.

I think this is inappropriate. It's quite possible that an ordinary user
is trying to create a function in a non-existent language, and he won't
have the authority to use createlang. Or the language name is a typo and
the language doesn't exist at all. Or the language is provided by a third
party and createlang doesn't support it.

You will find that almost nowhere a program will report 'foo not found --
use bar to install it' because 'foo' missing might be fully intentional.
(Or otherwise one might ask, if the program knows how to fix the
situation, why doesn't it do so itself?)

A user that has problems in this area can read the CREATE FUNCTION man
page and find a reference to createlang there (or should find one).

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2001-10-13 19:47:18 Re: pgsql/src/backend/commands define.c
Previous Message petere 2001-10-13 19:16:33 pgsql/src/interfaces/odbc odbc.sql