You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
me@my_host:~/dev/my_org/my_db$ java -jar ~/lib/java/apgdiff-2.4/apgdiff-2.4.jar --ignore-start-with ./my_db.pg_dump.localhost.sql ./my_db.pg_dump.stage.sql
Exception in thread "main" cz.startnet.utils.pgdiff.parsers.ParserException: Cannot parse string: ALTER TABLE public.my_databases ALTER COLUMN my_db_id ADD GENERATED ALWAYS AS IDENTITY (
SEQUENCE NAME public.my_db_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
Unsupported command at position 57 'ADD GENERATED ALWAYS'
at cz.startnet.utils.pgdiff.parsers.Parser.throwUnsupportedCommand(Parser.java:390)
at cz.startnet.utils.pgdiff.parsers.AlterTableParser.parseAlterColumn(AlterTableParser.java:294)
at cz.startnet.utils.pgdiff.parsers.AlterTableParser.parse(AlterTableParser.java:79)
at cz.startnet.utils.pgdiff.loader.PgDumpLoader.loadDatabaseSchema(PgDumpLoader.java:180)
at cz.startnet.utils.pgdiff.loader.PgDumpLoader.loadDatabaseSchema(PgDumpLoader.java:236)
at cz.startnet.utils.pgdiff.PgDiff.createDiff(PgDiff.java:29)
at cz.startnet.utils.pgdiff.Main.main(Main.java:39)
me@my_host:~/dev/my_org/my_db$ < ./my_db_create.sql sed -rne '/CREATE.*my_databases/,/GRANT/ p'
CREATE TABLE IF NOT EXISTS my_databases(
f1 integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
f2 text,
f3 text,
f4 text,
f5 text,
f6 text
);
GRANT SELECT ON TABLE my_databases TO read_user;
The text was updated successfully, but these errors were encountered:
me@my_host:~/dev/my_org/my_db$ java -jar ~/lib/java/apgdiff-2.4/apgdiff-2.4.jar --ignore-start-with ./my_db.pg_dump.localhost.sql ./my_db.pg_dump.stage.sql
Exception in thread "main" cz.startnet.utils.pgdiff.parsers.ParserException: Cannot parse string: CREATE SEQUENCE public.my_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
Unsupported command at position ## 'AS integer
START'
at cz.startnet.utils.pgdiff.parsers.Parser.throwUnsupportedCommand(Parser.java:390)
at cz.startnet.utils.pgdiff.parsers.CreateSequenceParser.parse(CreateSequenceParser.java:80)
at cz.startnet.utils.pgdiff.loader.PgDumpLoader.loadDatabaseSchema(PgDumpLoader.java:183)
at cz.startnet.utils.pgdiff.loader.PgDumpLoader.loadDatabaseSchema(PgDumpLoader.java:236)
at cz.startnet.utils.pgdiff.PgDiff.createDiff(PgDiff.java:29)
at cz.startnet.utils.pgdiff.Main.main(Main.java:39)
me@my_host:~/dev/my_org/my_db$ < ./my_db_create2.sql sed -rne '/^CREATE SEQUENCE.*my_id_seq/,/^\s*$/ p'
CREATE SEQUENCE my_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
me@my_host:~/dev/my_org/my_db$ java -jar ~/lib/java/apgdiff-2.4/apgdiff-2.4.jar --ignore-start-with ./my_db.pg_dump.localhost.sql ./my_db.pg_dump.stage.sql
Exception in thread "main" cz.startnet.utils.pgdiff.parsers.ParserException: Cannot parse string: ALTER TABLE public.my_databases ALTER COLUMN my_db_id ADD GENERATED ALWAYS AS IDENTITY (
SEQUENCE NAME public.my_db_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
Unsupported command at position 57 'ADD GENERATED ALWAYS'
at cz.startnet.utils.pgdiff.parsers.Parser.throwUnsupportedCommand(Parser.java:390)
at cz.startnet.utils.pgdiff.parsers.AlterTableParser.parseAlterColumn(AlterTableParser.java:294)
at cz.startnet.utils.pgdiff.parsers.AlterTableParser.parse(AlterTableParser.java:79)
at cz.startnet.utils.pgdiff.loader.PgDumpLoader.loadDatabaseSchema(PgDumpLoader.java:180)
at cz.startnet.utils.pgdiff.loader.PgDumpLoader.loadDatabaseSchema(PgDumpLoader.java:236)
at cz.startnet.utils.pgdiff.PgDiff.createDiff(PgDiff.java:29)
at cz.startnet.utils.pgdiff.Main.main(Main.java:39)
me@my_host:~/dev/my_org/my_db$ < ./my_db_create.sql sed -rne '/CREATE.*my_databases/,/GRANT/ p'
CREATE TABLE IF NOT EXISTS my_databases(
f1 integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
f2 text,
f3 text,
f4 text,
f5 text,
f6 text
);
GRANT SELECT ON TABLE my_databases TO read_user;
The text was updated successfully, but these errors were encountered: