Search Postgresql Archives

Check if language is installed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



My script running as superuser needs to install plpgsql using

CREATE LANGUAGE plpgsql;


in 8.2+

Which is the best way to check that this command does not cause error ?

Is it best to use
select true from pg_language where lanname='plpgsql'

for checking for plpgsql existance  before running CREATE LANGUAGE ?

Andrus.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux