Re: cannot use createlang after removing public schema

From: Richard Huxton <dev(at)archonet(dot)com>
To: "Lee Harr" <missive(at)hotmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: cannot use createlang after removing public schema
Date: 2004-02-18 20:46:31
Message-ID: 200402182046.31803.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday 18 February 2004 19:24, Lee Harr wrote:
> I have a database where I remove the schema public. When I
> try to use the createlang script, it fails like this ...
>
[snip]
> DROP SCHEMA
>
> >createlang plpgsql foo
>
> createlang: language installation failed: ERROR: no schema has been
> selected to create in

> I read through the man page, but I do not see how to specify the
> schema to createlang ...
>
> I can add the language using the manual syntax, I am just wondering if
> there is a simple way to use the script.

What if you use CREATE LANGUAGE as an SQL statement, but after setting
search_path to the single schema you want?

Incidentally, createlang is just a script that issues SQL, so you could
probably hack that if you wanted to. Perhaps even post it as a bug with a
patch.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2004-02-18 20:53:40 Re: Best replication options
Previous Message scott.marlowe 2004-02-18 20:39:28 Re: Need help with postgresql/apache/php optimisation