<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/createlang.sgml,v 1.5 2000/03/27 17:14:42 thomas Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/createlang.sgml,v 1.6 2000/05/15 16:12:38 momjian Exp $
Postgres documentation
-->
</refsynopsisdivinfo>
<synopsis>
createlang [ <replaceable class="parameter">connection options</replaceable> ] [ <replaceable class="parameter">langname</replaceable> [ <replaceable class="parameter">dbname</replaceable> ] ]
-createlang [ <replaceable class="parameter">connection options</replaceable> ] --list|-l
+createlang [ <replaceable class="parameter">connection options</replaceable> ] --list|-l [ <replaceable class="parameter">dbname</replaceable> ]
</synopsis>
<refsect2 id="R2-APP-CREATELANG-1">
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.8 2000/03/25 19:10:27 tgl Exp $
+# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.9 2000/05/15 16:12:39 momjian Exp $
#
#-------------------------------------------------------------------------
exit 1
;;
*)
- langname="$1"
- if [ "$2" ]; then
- shift
- dbname="$1"
+ if [ "$list" = 't' ]
+ then dbname="$1"
+ else langname="$1"
+ if [ "$2" ]
+ then
+ shift
+ dbname="$1"
+ fi
fi
;;
esac