CREATE DATABASE oikdb
    WITH 
    OWNER = postgres
    TEMPLATE = template0
    ENCODING = 'WIN1251'
    LC_COLLATE = 'ru_RU.CP1251'
    LC_CTYPE = 'ru_RU.CP1251'
    TABLESPACE = pg_default
    CONNECTION LIMIT = -1;
    
ALTER DATABASE oikdb SET search_path TO oik, public;
