server/serverctl.py
branch3.5
changeset 3303 f961392e7517
parent 3301 1050fcfdb5cf
child 3316 c4c07aab1c39
equal deleted inserted replaced
3302:6526febd9151 3303:f961392e7517
   310         indexer = get_indexer(driver)
   310         indexer = get_indexer(driver)
   311         indexer.init_extensions(cursor)
   311         indexer.init_extensions(cursor)
   312         # postgres specific stuff
   312         # postgres specific stuff
   313         if driver == 'postgres':
   313         if driver == 'postgres':
   314             # install plpythonu/plpgsql language if not installed by the cube
   314             # install plpythonu/plpgsql language if not installed by the cube
   315             langs = sys.platform == 'win32' and ('plpgsql',) or ('plpythonu', 'plpgsql') 
   315             langs = sys.platform == 'win32' and ('plpgsql',) or ('plpythonu', 'plpgsql')
   316             for extlang in langs:
   316             for extlang in langs:
   317                 helper.create_language(cursor, extlang)
   317                 helper.create_language(cursor, extlang)
   318         cursor.close()
   318         cursor.close()
   319         cnx.commit()
   319         cnx.commit()
   320         print '-> database for instance %s created and necessary extensions installed.' % appid
   320         print '-> database for instance %s created and necessary extensions installed.' % appid