createlang and Schemas

Started by Ian Hardingabout 23 years ago7 messagesgeneral
Jump to latest
#1Ian Harding
ianh@tpchd.org

createlang seems not to take a schema argument. Should it? I am trying to get rid of public, but if I use createlang first, it depends on public, and if I try to use it later, I can't specify a schema.

I can just create language for now, but createlang is handy...

I love 7.3.

Ian

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Ian Harding (#1)
Re: createlang and Schemas

"Ian Harding" <ianh@tpchd.org> writes:

createlang seems not to take a schema argument. Should it?

Hm. The language itself does not have any associated schema --- but the
underlying call handler function does. Perhaps there should be a way to
tell createlang which schema to put the function in. Right now it will
be effectively determined by the default search path, so you could do

PGOPTIONS='--search_path=myschema' createlang plpgsql mydb

but this seems inelegant.

regards, tom lane

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Ian Harding (#1)
Re: createlang and Schemas

Ian Harding writes:

createlang seems not to take a schema argument. Should it?

Schema of what? Languages do not live in schemas.

--
Peter Eisentraut peter_e@gmx.net

#4Jochem van Dieten
jochemd@oli.tudelft.nl
In reply to: Peter Eisentraut (#3)
Re: createlang and Schemas

Peter Eisentraut wrote:

Ian Harding writes:

createlang seems not to take a schema argument. Should it?

Schema of what? Languages do not live in schemas.

Languages not, but language call handler functions do.

Since languages are global to the database, I think the location for the
call handler functions should be the pg_catalog schema. Currently, that
creates a problem with pg_dump:
http://archives.postgresql.org/pgsql-general/2002-12/msg01098.php
http://archives.postgresql.org/pgsql-general/2003-01/msg00006.php

Jochem

#5Jean-Luc Lachance
jllachan@nsd.ca
In reply to: Peter Eisentraut (#3)
any caveat upgrading from 7.2.1 to 7.3.x on RH 7.3?

Hi all,

Any caveat upgrading from 7.2.1 to 7.3.x on RH 7.3?

Like for example:

pg_access, perl's DBI::pg, function and/or keyword no longer supported,
different behaviours, etc

I know about COPY not converting '' to 0, but what about the rest?

I am craving for SCHEMA...

JLL

#6Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#2)
Re: createlang and Schemas

Is this a TODO? Not sure.

---------------------------------------------------------------------------

Tom Lane wrote:

"Ian Harding" <ianh@tpchd.org> writes:

createlang seems not to take a schema argument. Should it?

Hm. The language itself does not have any associated schema --- but the
underlying call handler function does. Perhaps there should be a way to
tell createlang which schema to put the function in. Right now it will
be effectively determined by the default search path, so you could do

PGOPTIONS='--search_path=myschema' createlang plpgsql mydb

but this seems inelegant.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#7Bruce Momjian
bruce@momjian.us
In reply to: Jean-Luc Lachance (#5)
Re: any caveat upgrading from 7.2.1 to 7.3.x on RH 7.3?

See HISTORY file in 7.3 release or release notes.

---------------------------------------------------------------------------

Jean-Luc Lachance wrote:

Hi all,

Any caveat upgrading from 7.2.1 to 7.3.x on RH 7.3?

Like for example:

pg_access, perl's DBI::pg, function and/or keyword no longer supported,
different behaviours, etc

I know about COPY not converting '' to 0, but what about the rest?

I am craving for SCHEMA...

JLL

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

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