Re: DO hint update?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: DO hint update?
Date: 2011-03-27 04:10:04
Message-ID: 9119.1301199004@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> Does this need updating now that languages are more exensiony? Or is
> it OK?

> if (!HeapTupleIsValid(languageTuple))
> ereport(ERROR,
> (errcode(ERRCODE_UNDEFINED_OBJECT),
> errmsg("language \"%s\" does not
> exist", languageName),
> (PLTemplateExists(languageName) ?
> errhint("Use CREATE LANGUAGE to load
> the language into the database.") : 0)));

Hm ... the core languages would now prefer CREATE EXTENSION, but it's
not clear how fast non-core PLs will follow suit.

Perhaps "Use CREATE EXTENSION or CREATE LANGUAGE to load ..." ?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-03-27 04:20:14 Re: Libpq PGRES_COPY_BOTH - version compatibility
Previous Message Robert Haas 2011-03-27 03:09:51 Re: Libpq PGRES_COPY_BOTH - version compatibility