| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
| Subject: | Warning for missing createlang |
| Date: | 2003-09-04 23:09:49 |
| Message-ID: | 200309042309.h84N9nx11372@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-patches |
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:
test=> CREATE FUNCTION xx() RETURNS INT AS '
test'> select 1'
test-> LANGUAGE 'plpgsql';
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.
--
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
| Attachment | Content-Type | Size |
|---|---|---|
| unknown_filename | text/plain | 1.1 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Relaxin | 2003-09-04 23:10:10 | Re: PG7.5 |
| Previous Message | Tom Lane | 2003-09-04 23:08:01 | Re: tablelevel and rowlevel locks |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Neil Conway | 2003-09-05 00:21:21 | minor documentation improvements |
| Previous Message | Robert Treat | 2003-09-04 22:33:33 | note on dropped columns in pg_attribute |