public static List<PostgreSQLColumnInfo> getColumns(final Connection conn, final String schemaName,
            final String tableName) throws Exception {
        final List<PostgreSQLColumnInfo> columnList = new ArrayList<>();
        final String querySql = PostgreSQLSqlBuilder.buildDescTableSql(schemaName, tableName);

        try (Statement stmt = conn.createStatement();
                ResultSet rs = stmt.executeQuery(querySql)) {
            while (rs.next()) {
                columnList.add(new PostgreSQLColumnInfo(rs.getString(1), rs.getString(2),
                        rs.getString(3)));
            }
        }
        return columnList;
    }
Query all columns of the tableName.

@param conn JDBC Connection  {@link Connection}
@param schemaName PostgreSQL schema name
@param tableName PostgreSQL table name
@return {@link List}
@throws Exception on get columns error
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/postgresql/PostgreSQLJdbcUtils.java