Skip to content

Commit

Permalink
Unbreak regression tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Euler Taveira de Oliveira committed Mar 10, 2014
1 parent 1ec32ff commit 032f5d4
Show file tree
Hide file tree
Showing 26 changed files with 68 additions and 68 deletions.
6 changes: 3 additions & 3 deletions expected/bytea.out

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions expected/delete1.out
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ UNIQUE(g, n)
INSERT INTO table_with_pk (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
INSERT INTO table_without_pk (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
INSERT INTO table_with_unique (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
SELECT 'init' FROM pg_create_decoding_replication_slot('regression_slot', 'wal2json');
SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot', 'wal2json');
?column?
----------
init
Expand All @@ -75,11 +75,11 @@ DELETE FROM table_without_pk WHERE b = 1;
DELETE FROM table_with_pk WHERE b = 1;
-- DELETE: unique
DELETE FROM table_with_unique WHERE b = 1;
SELECT data FROM pg_decoding_slot_get_changes('regression_slot', 'now', 'include-xids', '0');
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0');
WARNING: table "table_without_pk" without primary key or replica identity is nothing
CONTEXT: slot "regression_slot", output plugin "wal2json" during the pg_decode_change callback, associated LSN 0/1781EE8
CONTEXT: slot "regression_slot", output plugin "wal2json", in the change callback, associated LSN 0/1793540
WARNING: table "table_with_unique" without primary key or replica identity is nothing
CONTEXT: slot "regression_slot", output plugin "wal2json" during the pg_decode_change callback, associated LSN 0/1782018
CONTEXT: slot "regression_slot", output plugin "wal2json", in the change callback, associated LSN 0/1793658
data
-----------------------------------------------------------------------
{ +
Expand Down
10 changes: 5 additions & 5 deletions expected/delete2.out
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ UNIQUE(g, n)
INSERT INTO table_with_pk (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
INSERT INTO table_without_pk (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
INSERT INTO table_with_unique (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
SELECT 'init' FROM pg_create_decoding_replication_slot('regression_slot', 'wal2json');
SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot', 'wal2json');
?column?
----------
init
Expand All @@ -79,13 +79,13 @@ ALTER TABLE table_without_pk REPLICA IDENTITY DEFAULT;
ALTER TABLE table_with_unique REPLICA IDENTITY NOTHING;
DELETE FROM table_with_unique WHERE b = 1;
ALTER TABLE table_with_unique REPLICA IDENTITY DEFAULT;
SELECT data FROM pg_decoding_slot_get_changes('regression_slot', 'now', 'include-xids', '0');
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0');
WARNING: table "table_with_pk" without primary key or replica identity is nothing
CONTEXT: slot "regression_slot", output plugin "wal2json" during the pg_decode_change callback, associated LSN 0/17A9528
CONTEXT: slot "regression_slot", output plugin "wal2json", in the change callback, associated LSN 0/17B8728
WARNING: table "table_without_pk" without primary key or replica identity is nothing
CONTEXT: slot "regression_slot", output plugin "wal2json" during the pg_decode_change callback, associated LSN 0/17A99B8
CONTEXT: slot "regression_slot", output plugin "wal2json", in the change callback, associated LSN 0/17B8BB8
WARNING: table "table_with_unique" without primary key or replica identity is nothing
CONTEXT: slot "regression_slot", output plugin "wal2json" during the pg_decode_change callback, associated LSN 0/17A9E48
CONTEXT: slot "regression_slot", output plugin "wal2json", in the change callback, associated LSN 0/17B9048
data
---------------------
{ +
Expand Down
4 changes: 2 additions & 2 deletions expected/delete3.out
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ INSERT INTO table_with_pk (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1
INSERT INTO table_with_pk (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(4, 5, 6, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
INSERT INTO table_without_pk (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
INSERT INTO table_with_unique (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
SELECT 'init' FROM pg_create_decoding_replication_slot('regression_slot', 'wal2json');
SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot', 'wal2json');
?column?
----------
init
Expand All @@ -81,7 +81,7 @@ ALTER TABLE table_without_pk REPLICA IDENTITY DEFAULT;
ALTER TABLE table_with_unique REPLICA IDENTITY FULL;
DELETE FROM table_with_unique WHERE b = 1;
ALTER TABLE table_with_unique REPLICA IDENTITY DEFAULT;
SELECT data FROM pg_decoding_slot_get_changes('regression_slot', 'now', 'include-xids', '0');
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0');
data
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
{ +
Expand Down
4 changes: 2 additions & 2 deletions expected/delete4.out
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ UNIQUE(g, n)
-- INSERT
INSERT INTO table_with_unique (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', false, '{ "a": 123 }', 'Old Old Parr'::tsvector);
INSERT INTO table_with_unique (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(4, 5, 6, 3.54, 876.563452345, 4.56, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
SELECT 'init' FROM pg_create_decoding_replication_slot('regression_slot', 'wal2json');
SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot', 'wal2json');
?column?
----------
init
Expand All @@ -34,7 +34,7 @@ ALTER TABLE table_with_unique REPLICA IDENTITY USING INDEX table_with_unique_g_n
DELETE FROM table_with_unique WHERE b = 1;
DELETE FROM table_with_unique WHERE n = true;
ALTER TABLE table_with_unique REPLICA IDENTITY DEFAULT;
SELECT data FROM pg_decoding_slot_get_changes('regression_slot', 'now', 'include-xids', '0');
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0');
data
-----------------------------------------------------------------
{ +
Expand Down
6 changes: 3 additions & 3 deletions expected/insert1.out
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- this is the first test (CREATE EXTENSION, no DROP TABLE)
CREATE EXTENSION test_decoding;
LOAD 'test_decoding';
-- predictability
SET synchronous_commit = on;
CREATE TABLE table_with_pk (
Expand Down Expand Up @@ -58,7 +58,7 @@ o json,
p tsvector,
UNIQUE(g, n)
);
SELECT 'init' FROM pg_create_decoding_replication_slot('regression_slot', 'wal2json');
SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot', 'wal2json');
?column?
----------
init
Expand All @@ -70,7 +70,7 @@ INSERT INTO table_with_pk (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1
INSERT INTO table_without_pk (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
INSERT INTO table_with_unique (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
COMMIT;
SELECT data FROM pg_decoding_slot_get_changes('regression_slot', 'now', 'include-xids', '0');
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0');
data
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
{ +
Expand Down
4 changes: 2 additions & 2 deletions expected/savepoint.out
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- predictability
SET synchronous_commit = on;
CREATE TABLE xpto (a SERIAL PRIMARY KEY, b text);
SELECT 'init' FROM pg_create_decoding_replication_slot('regression_slot', 'wal2json');
SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot', 'wal2json');
?column?
----------
init
Expand All @@ -22,7 +22,7 @@ ROLLBACK TO SAVEPOINT sp2;
RELEASE SAVEPOINT sp1;
INSERT INTO xpto (b) VALUES('francisco');
END;
SELECT data FROM pg_decoding_slot_get_changes('regression_slot', 'now', 'include-xids', '0');
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0');
data
----------------------------------------------------------
{ +
Expand Down
4 changes: 2 additions & 2 deletions expected/specialvalue.out
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- predictability
SET synchronous_commit = on;
DROP TABLE IF EXISTS xpto;
SELECT 'init' FROM pg_create_decoding_replication_slot('regression_slot', 'wal2json');
SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot', 'wal2json');
?column?
----------
init
Expand All @@ -16,7 +16,7 @@ INSERT INTO xpto (b, c, d) VALUES('f', 'test2', 'nan');
INSERT INTO xpto (b, c, d) VALUES(NULL, 'null', '-inf');
INSERT INTO xpto (b, c, d) VALUES(TRUE, E'valid: '' " \\ / \b \f \n \r \t \u207F \u967F invalid: \\g \\k end', 123.456);
COMMIT;
SELECT data FROM pg_decoding_slot_get_changes('regression_slot', 'now', 'include-xids', '0');
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0');
data
--------------------------------------------------------------------------------------------------------------------------
{ +
Expand Down
10 changes: 5 additions & 5 deletions expected/toast.out

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions expected/update1.out
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ UNIQUE(g, n)
INSERT INTO table_with_pk (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
INSERT INTO table_without_pk (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
INSERT INTO table_with_unique (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
SELECT 'init' FROM pg_create_decoding_replication_slot('regression_slot', 'wal2json');
SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot', 'wal2json');
?column?
----------
init
Expand All @@ -77,11 +77,11 @@ UPDATE table_with_pk SET f = -f WHERE b = 1;
UPDATE table_with_pk SET b = -b WHERE b = 1;
-- UPDATE: unique
UPDATE table_with_unique SET n = false WHERE b = 1;
SELECT data FROM pg_decoding_slot_get_changes('regression_slot', 'now', 'include-xids', '0');
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0');
WARNING: table "table_without_pk" without primary key or replica identity is nothing
CONTEXT: slot "regression_slot", output plugin "wal2json" during the pg_decode_change callback, associated LSN 0/1700320
CONTEXT: slot "regression_slot", output plugin "wal2json", in the change callback, associated LSN 0/170E8E8
WARNING: table "table_with_unique" without primary key or replica identity is nothing
CONTEXT: slot "regression_slot", output plugin "wal2json" during the pg_decode_change callback, associated LSN 0/17006D8
CONTEXT: slot "regression_slot", output plugin "wal2json", in the change callback, associated LSN 0/170ECA0
data
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
{ +
Expand Down
10 changes: 5 additions & 5 deletions expected/update2.out
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ UNIQUE(g, n)
INSERT INTO table_with_pk (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
INSERT INTO table_without_pk (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
INSERT INTO table_with_unique (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
SELECT 'init' FROM pg_create_decoding_replication_slot('regression_slot', 'wal2json');
SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot', 'wal2json');
?column?
----------
init
Expand All @@ -79,13 +79,13 @@ ALTER TABLE table_without_pk REPLICA IDENTITY DEFAULT;
ALTER TABLE table_with_unique REPLICA IDENTITY NOTHING;
UPDATE table_with_unique SET f = -f WHERE b = 1;
ALTER TABLE table_with_unique REPLICA IDENTITY DEFAULT;
SELECT data FROM pg_decoding_slot_get_changes('regression_slot', 'now', 'include-xids', '0');
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0');
WARNING: table "table_with_pk" without primary key or replica identity is nothing
CONTEXT: slot "regression_slot", output plugin "wal2json" during the pg_decode_change callback, associated LSN 0/1725E70
CONTEXT: slot "regression_slot", output plugin "wal2json", in the change callback, associated LSN 0/1734538
WARNING: table "table_without_pk" without primary key or replica identity is nothing
CONTEXT: slot "regression_slot", output plugin "wal2json" during the pg_decode_change callback, associated LSN 0/17263B0
CONTEXT: slot "regression_slot", output plugin "wal2json", in the change callback, associated LSN 0/1734A60
WARNING: table "table_with_unique" without primary key or replica identity is nothing
CONTEXT: slot "regression_slot", output plugin "wal2json" during the pg_decode_change callback, associated LSN 0/1726918
CONTEXT: slot "regression_slot", output plugin "wal2json", in the change callback, associated LSN 0/1734FC8
data
---------------------
{ +
Expand Down
4 changes: 2 additions & 2 deletions expected/update3.out
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ UNIQUE(g, n)
INSERT INTO table_with_pk (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
INSERT INTO table_without_pk (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
INSERT INTO table_with_unique (b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) VALUES(1, 2, 3, 3.54, 876.563452345, 1.23, 'teste', 'testando', 'um texto longo', B'001110010101010', '2013-11-02 17:30:52', '2013-02-04', true, '{ "a": 123 }', 'Old Old Parr'::tsvector);
SELECT 'init' FROM pg_create_decoding_replication_slot('regression_slot', 'wal2json');
SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot', 'wal2json');
?column?
----------
init
Expand All @@ -79,7 +79,7 @@ ALTER TABLE table_without_pk REPLICA IDENTITY DEFAULT;
ALTER TABLE table_with_unique REPLICA IDENTITY FULL;
UPDATE table_with_unique SET f = -f WHERE b = 1;
ALTER TABLE table_with_unique REPLICA IDENTITY DEFAULT;
SELECT data FROM pg_decoding_slot_get_changes('regression_slot', 'now', 'include-xids', '0');
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0');
data
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
{ +
Expand Down
Loading

0 comments on commit 032f5d4

Please sign in to comment.