From: Guillaume Lelarge <guillaume@lelarge.info>
To: Lukasz Brodziak <lukasz.brodziak@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Unable to create function via psql
Date: Mon, 07 Mar 2011 10:31:21 +0100
Message-ID: <4D74A5E9.7070906@lelarge.info> (raw)
In-Reply-To: <AANLkTim4r6Hra0vHUOC8bnF1qA6YqreQFcs3PyiaDnkv@mail.gmail.com>
References: <AANLkTim4r6Hra0vHUOC8bnF1qA6YqreQFcs3PyiaDnkv@mail.gmail.com>
Le 07/03/2011 09:17, Lukasz Brodziak a écrit :
> Hello,
>
> I have a problem with creating function through script ran in psql.
> I'm running the script AdminPack.sql from the contrib package using
> this statement:
> sudo su postgres -c psql MyDB < /usr/share/postgresql/8.2/contrib/adminpack.sql
>
> Script performs without problem yet when I log into my software I get
> the error that pg_file_lenght does not exists. Opening the script in
> pgAdmin and hitting F5 creates the function and enables logging into
> the program without error. Can anyone help me with running the script
> correctly through shell.
You need to execute the script in the postgres database, not the MyDB
database.
--
Guillaume
http://www.postgresql.frhttp://dalibo.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: guillaume@lelarge.info, lukasz.brodziak@gmail.com
Subject: Re: Unable to create function via psql
In-Reply-To: <4D74A5E9.7070906@lelarge.info>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox