Re: [HACKERS] PL/pgSQL definition

From: jwieck(at)debis(dot)com (Jan Wieck)
To: sferac(at)bo(dot)nettuno(dot)it
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] PL/pgSQL definition
Date: 1998-11-10 11:36:20
Message-ID: m0zdC5s-000EBYC@orion.SAPserv.Hamburg.dsh.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> --postgresql-v6.4/src/pl/plpgsql/src/INSTALL says:
> ...
> If you declare the language in the template1 database,
> any subsequently created database will have PL/pgSQL
> support installed automatically.
>
>
> --I declared PL/pgSQL in the template1 database but I have an ERROR
> message when I try to
> --use PL/pgSQL language in another database.
>
>
> ERROR: Unrecognized language specified in a CREATE FUNCTION:
> 'plpgsql'. Recogn
> ized languages are sql, C, internal and the created procedural
> languages.
>
> --Seems that I must to declare PL/pgSQL in every database.
> --Any ideas?
>

You must declare PL/pgSQL in template1 BEFORE you create the
other databases. At createdb time, the template1 database is
copied into the new created database. All definitions, you
made until then are automatically in the new db. So you could
also create tables, functions and anything else you want to
have by default in any new db.

> --Please relply to sferac(at)bo(dot)nettuno(dot)it
>
> --Jose-
>
>

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#======================================== jwieck(at)debis(dot)com (Jan Wieck) #

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Brook Milligan 1998-11-10 15:34:52 include/port directory?
Previous Message Jose' Soares 1998-11-10 10:12:03 PL/pgSQL definition