PostgreSQL 8.2.3 婺桺桺懼
劯锔媆锔媆誕嬉誕

createlang

劉䓄

createlang -- 垔幬婔婻桄誺䘋臺蘔

臺濘

createlang [connection-option...] langname [dbname]
createlang [connection-option...] --list | -l dbname

柟誄

createlang 滇婔婻䫘庯劏昄扞康婺嵂媹桄䚡䘋臺蘔䔇噖噙㔗createlang 埻滇婔婻 CREATE LANGUAGE 变傴䔇儕輙埗黙臖变傴诙埡敘崔媇敇㔗

锬釹

createlang 毖埖婋彖变傴臯埗昄

langname

襕赆垔幬䔇誺䘋䚡䘋臺蘔䔇劉䓄

[-d] dbname
[--dbname] dbname

毺垔襕劏巻婻昄扞康嵂媹臖臺蘔㔗䚺䩕嘪䫘启嘷嬉係䂘䫘潙劯劉䔇昄扞康㔗

-e
--echo

滆䴺欔欓臯䔇 SQL 变傴

-l
--list

滆䴺婔婻婘䕞湺昄扞康麯噾䂟垬輙䔇臺蘔䔇彖臘

createlang 誻毖埖婋彖变傴臯埗昄嘩婺誂毖埗昄

-h host
--host host

毺垔誊臯橉媇単䔇婂橺劉㔗套悩昄唚傖桩溹嚔崘彍赆䫘啔彄 Unix 嘘喖毖庖䔇虇冇㔗

-p port
--port port

毺垔橉媇単冥劸䔇 TCP 䆇埼潡婔婻橸婄 Unix 嘘喖毖庖桺傽䔇欷匘(柟誄严)

-U username
--username username

誕臯誂毖䔇䫘潙劉

-W
--password

嚺彽埼傴柊䴺严

䯇嵄埻麟

PGDATABASE
PGHOST
PGPORT
PGUSER

䚺䩕誂毖埗昄

自桺

崔昄髍臇媇敇鄘滇躻蓼麪䔇㔗套悩婉滇嘪䫘 --echo 锬釹誊臯 createlang 䇽劯鐽凹䕩庫䔇 SQL 变傴演昖䂖誗㔗

濘懟

嘪䫘 droplang 役鍴婔䓉臺蘔㔗

冋床

pltcl 臺蘔垬輙彄昄扞康 template1 麯

$ createlang pltcl template1

濘懟垬輙彄 template1 婺䔇臺蘔儖躻媘垬輙彄锟劯录傺䔇噽傡昄扞康婺㔗

埽蓕

droplang, CREATE LANGUAGE, 䯇嵄埻麟(誗29.12)

劯锔饡釕嬉誕
createdb婪婔亓createuser