Ok problem solved.
I managed to get through this using remote connection from Windows
machine using: psql -h 192.168.1.10 -U postgres -d MyDB <
C:\adminpack.sql command
Thank You all for You help and input on this subject.
2011/3/7 Kevin Grittner <Kevin.Grittner@wicourts.gov>:
> Lukasz Brodziak <lukasz.brodziak@gmail.com> wrote:
>
>> Still don't why the problem with the function occurs only when the
>> script is ran through psql and not through pgAdmin.
>
> It would help if you could provide a self-contained psql test script
> which demonstrates the problem. If the function is large, it would
> be good to pare it down to the smallest function which still shows
> the problem.
>
> -Kevin
>
--
Łukasz Brodziak
"What if everyting around You isn't quite as it seems,
What if all the world You think You know is an inelaborate dream
When You look at Your reflection is that all you want it to be
What if You could look right through the cracks
Would You find Yourself...... Find Yourself afraid to see"