docs: function pg_create_index(self, ObjType, type, field, typefield, is_unique) {
  	return nr_fcall("nopg:pg_create_index", function() {
  		var colname = _parse_predicate_key(ObjType, {'epoch':false}, field);
  		var name = pg_create_index_name(self, ObjType, type, field, typefield);
  		var query = pg_create_index_query_internal_v1(self, ObjType, type, field, typefield, is_unique);
  		var query_v2 = pg_create_index_query_internal_v2(self, ObjType, type, field, typefield, is_unique);
  
  		query = Query.numerifyPlaceHolders(query);
  		var params = colname.getParams();
  		//debug.log("params = ", params);
  		return do_query(self, query, params).then(function verify_index_was_created_correctly(res) {
  			// Check that the index was created correctly
  			return pg_get_indexdef(self, name).then(function(indexdef) {
  				if (!( (indexdef === query) || (indexdef === query_v2) )) {
  					debug.log('attempted to use: ', query, '\n',
  					          '.but created as: ', indexdef);
  					throw new TypeError("Failed to create index correctly!");
  				}
  				return res;
  			});
  		});
  	});
  }