1 -- This file is intended to be called by eg_db_config.pl
3 -- If manually calling:
4 -- Connect to the postgres database initially
5 -- Specify the database to create as -vdb_name=DATABASE
6 -- Specify the postgres contrib directory as -vcontrib_dir=CONTRIBDIR
7 -- You can get the contrib directory using pg_config --sharedir and adding a /contrib to it
9 -- NOTE: This file does not do transactions
10 -- This is intentional. Please do not wrap in BEGIN/COMMIT.
11 DROP DATABASE IF EXISTS :db_name;
13 CREATE DATABASE :db_name TEMPLATE template0 ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C';
17 CREATE LANGUAGE plperlu;
19 CREATE EXTENSION tablefunc;
20 CREATE EXTENSION xml2;
21 CREATE EXTENSION hstore;