String metaQuery = "SELECT a.attnum,t.typname,a.attlen,t.typnotnull,t.typdefault,a.attndims FROM pg_class c, pg_attribute a, pg_type t WHERE c.relname='"+tableName+"' AND a.attnum > 0 AND a.attrelid = c.oid AND a.atttypid = t.oid ORDER BY a.attnum";  PostgresResult result = pg_query(env, conn, metaQuery);  return pg_fetch_all(env, result);  } catch (Exception ex) { log.log(Level.FINE, ex.toString(), ex); return null; }
return null;
  public static ArrayValue pg_meta_data(Env env,                                        @NotNull Postgres conn,                                        String tableName)  {    try {      String metaQuery = "SELECT a.attnum,t.typname,a.attlen,t.typnotnull,t.typdefault,a.attndims FROM pg_class c, pg_attribute a, pg_type t WHERE c.relname='"+tableName+"' AND a.attnum > 0 AND a.attrelid = c.oid AND a.atttypid = t.oid ORDER BY a.attnum";      PostgresResult result = pg_query(env, conn, metaQuery);      return pg_fetch_all(env, result);    } catch (Exception ex) {      log.log(Level.FINE, ex.toString(), ex);      return null;    }  }