It didn’t work:
DEBUG 2/17/14 6:27 PM:liquibase: Connected to innotest@jdbc:postgresql://blabla.redshift.amazonaws.com:5439/test
DEBUG 2/17/14 6:27 PM:liquibase: Setting auto commit to false from true
DEBUG 2/17/14 6:27 PM:liquibase: Executing QUERY database command: select count(*) from public.databasechangeloglock
DEBUG 2/17/14 6:27 PM:liquibase: Executing QUERY database command: SELECT LOCKED FROM public.databasechangeloglock WHERE ID=1
DEBUG 2/17/14 6:27 PM:liquibase: Lock Database
DEBUG 2/17/14 6:27 PM:liquibase: Executing UPDATE database command: UPDATE public.databasechangeloglock SET LOCKED = TRUE, LOCKEDBY = ‘galaxy (fe80:0:0:0:800:27ff:fe00:0%4)’, LOCKGRANTED = ‘2014-02-17 18:27:20.394’ WHERE ID = 1 AND LOCKED = FALSE
INFO 2/17/14 6:27 PM:liquibase: Successfully acquired change log lock
INFO 2/17/14 6:27 PM:liquibase: Dropping Database Objects in schema: test.public
DEBUG 2/17/14 6:27 PM:liquibase: Executing QUERY database command: SELECT MD5SUM FROM public.databasechangelog WHERE MD5SUM IS NOT NULL
DEBUG 2/17/14 6:27 PM:liquibase: Executing QUERY database command: select count(*) from public.databasechangeloglock
DEBUG 2/17/14 6:27 PM:liquibase: Executing QUERY database command: SELECT relname AS SEQUENCE_NAME FROM pg_class, pg_namespace WHERE relkind=‘S’ AND pg_class.relnamespace = pg_namespace.oid AND nspname = ‘public’ AND ‘nextval(’‘public.’||relname||’’’::regclass)’ not in (select adsrc from pg_attrdef where adsrc is not null) AND ‘nextval(’‘public."’||relname||’"’’::regclass)’ not in (select adsrc from pg_attrdef where adsrc is not null) AND ‘nextval(’’’||relname||’’’::regclass)’ not in (select adsrc from pg_attrdef where adsrc is not null)AND ‘nextval(’’"’||relname||’"’’::regclass)’ not in (select adsrc from pg_attrdef where adsrc is not null)
DEBUG 2/17/14 6:27 PM:liquibase: Release Database Lock
DEBUG 2/17/14 6:27 PM:liquibase: Executing UPDATE database command: UPDATE public.databasechangeloglock SET LOCKED = FALSE, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1
INFO 2/17/14 6:27 PM:liquibase: Successfully released change log lock
Liquibase dropAll Failed: liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: org.postgresql.util.PSQLException: Unable to determine a value for MaxIndexKeys due to missing system catalog data.
SEVERE 2/17/14 6:27 PM:liquibase: liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: org.postgresql.util.PSQLException: Unable to determine a value for MaxIndexKeys due to missing system catalog data.
liquibase.exception.DatabaseException: liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: org.postgresql.util.PSQLException: Unable to determine a value for MaxIndexKeys due to missing system catalog data.
… 23 more