code: func IsInvalidCatalogName(err error) bool {
  	if err == nil {
  		return false
  	}
  	pqError, ok := err.(*pq.Error)
  	if !ok {
  		return false
  	}
  	return pqError.Code == errInvalidCatalogName
  }
docs: // IsInvalidCatalogName returns true if the given error says that the catalog
  // is ivalid (e.g. database does not exist)