code: func PgNamespaceByNspname(db XODB, nspname pgtypes.Name) (*PgNamespace, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT ` +
  		`tableoid, cmax, xmax, cmin, xmin, oid, ctid, nspname, nspowner, nspacl ` +
  		`FROM pg_catalog.pg_namespace ` +
  		`WHERE nspname = $1`
  
  	// run query
  	XOLog(sqlstr, nspname)
  	pn := PgNamespace{}
  
  	err = db.QueryRow(sqlstr, nspname).Scan(&pn.Tableoid, &pn.Cmax, &pn.Xmax, &pn.Cmin, &pn.Xmin, &pn.Oid, &pn.Ctid, &pn.Nspname, &pn.Nspowner, &pn.Nspacl)
  	if err != nil {
  		return nil, err
  	}
  
  	return &pn, nil
  }
docs: // PgNamespaceByNspname retrieves a row from 'pg_catalog.pg_namespace' as a PgNamespace.
  //
  // Generated from index 'pg_namespace_nspname_index'.