Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 1169

Does liquibase support PostgreSQL 10?

$
0
0
Hi,

Does liquibase 3.5 support support PostgreSQL 10?

mvn liquibase:generateChangeLog fails to generate the initial changelog.

liquibase.properties:
  1. url=jdbc:postgresql://localhost:5432/testdb
  2. driver=org.postgresql.Driver
  3. username=user
  4. password=pass

Error message:
  1. [ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.5.3:generateChangeLog (default-cli) on project test-project: Error setting up or running Liquibase: liquibase.command.CommandExecutionException: liquibase.exception.DatabaseException: Error getting jdbc:postgresql://localhost:5432/testdb view with liquibase.statement.core.GetViewDefinitionStatement@fe34b86: Expected single row from liquibase.statement.core.GetViewDefinitionStatement@26bbe604 but got 0: Empty result set, expected one row -> [Help 1]

Database query and response:
  1. ERROR:  column i.indproc does not exist at character 610
  2. HINT:  Perhaps you meant to reference the column "i.indpred".

  3. SELECT NULL AS TABLE_CAT, NULL AS TABLE_SCHEM,  ct.relname AS TABLE_NAME, NOT i.indisunique AS NON_UNIQUE, NULL AS INDEX_QUALIFIER, ci.relname AS INDEX_NAME,  CASE i.indisclustered  WHEN true THEN 1 ELSE CASE am.amname  WHEN 'hash' THEN 2 ELSE 3 END  END AS TYPE,  a.attnum AS ORDINAL_POSITION,  CASE i.indpred WHEN 0 THEN a.attname ELSE ip.proname || '(' || ai.attname || ')' END AS COLUMN_NAME,  NULL AS ASC_OR_DESC,  ci.reltuples AS CARDINALITY,  ci.relpages AS PAGES,  NULL AS FILTER_CONDITION  FROM pg_class ct, pg_class ci, pg_attribute a, pg_am am, pg_attribute ai, pg_index i LEFT JOIN pg_proc ip ON (i.indpred = ip.oid)  WHERE ct.oid=i.indrelid AND ci.oid=i.indexrelid AND a.attrelid=ci.oid AND ci.relam=am.oid  AND ai.attnum = i.indkey[0] AND ai.attrelid = ct.oid  AND ct.relname = 'sql_sizing_profiles' ORDER BY NON_UNIQUE, TYPE, INDEX_NAME, ORDINAL_POSITION;

What is strange is that column pg_index.indproc was available in PostgresQL 7.3 (https://www.postgresql.org/docs/7.3/static/catalog-pg-index.html).
Can it be that liquibase fails to recognise PostgresQL 10 and falls back to some default logic? Although Pg 7.2 should be way too for any kind of support by liquibase.

Thanks,
Gin



Viewing all articles
Browse latest Browse all 1169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>