How do I create functions using WinSQL?
By default, PL/PGSQL interpreter is not installed on each database. You must install it before creating a function in PL/PGSQL. Use the following command to install one. createlang –host=hostname –port=5432 –username=postgres –dbname=yourdb –pglib=$PGLIB plpgsql yourdb Here $PGLIB is the location where plpgsql.so library is installed.