]> granicus.if.org Git - postgresql/commitdiff
Modify test_decoding/messages to remove non-ascii chars
authorSimon Riggs <simon@2ndQuadrant.com>
Wed, 6 Apr 2016 13:55:11 +0000 (14:55 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Wed, 6 Apr 2016 13:55:11 +0000 (14:55 +0100)
contrib/test_decoding/expected/messages.out
contrib/test_decoding/sql/messages.sql

index e26f793daf8325ba26f474e797254bb8c79ed3bb..70130e93789887cc84028cc0b732a96324816eb2 100644 (file)
@@ -53,22 +53,22 @@ SELECT 'msg7' FROM pg_logical_emit_message(true, 'test', 'msg7');
 (1 row)
 
 COMMIT;
-SELECT 'žluťoučký kůň' FROM pg_logical_emit_message(true, 'test', 'žluťoučký kůň');
-   ?column?    
----------------
- žluťoučký kůň
+SELECT 'ignorethis' FROM pg_logical_emit_message(true, 'test', 'czechtastic');
+  ?column?  
+------------
+ ignorethis
 (1 row)
 
 SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'force-binary', '0', 'skip-empty-xacts', '1');
-                                 data                                 
-----------------------------------------------------------------------
+                                data                                
+--------------------------------------------------------------------
  message: transactional: 1 prefix: test, sz: 4 content:msg1
  message: transactional: 0 prefix: test, sz: 4 content:msg2
  message: transactional: 0 prefix: test, sz: 4 content:msg4
  message: transactional: 0 prefix: test, sz: 4 content:msg6
  message: transactional: 1 prefix: test, sz: 4 content:msg5
  message: transactional: 1 prefix: test, sz: 4 content:msg7
- message: transactional: 1 prefix: test, sz: 19 content:žluťoučký kůň
+ message: transactional: 1 prefix: test, sz: 11 content:czechtastic
 (7 rows)
 
 SELECT 'init' FROM pg_drop_replication_slot('regression_slot');
index d72191b0a9c73a57dc4c14dfc85814964d02e7d6..4aedb045601d7441bf267a56d4a4aa87f2aa76d5 100644 (file)
@@ -18,7 +18,7 @@ SELECT 'msg6' FROM pg_logical_emit_message(false, 'test', 'msg6');
 SELECT 'msg7' FROM pg_logical_emit_message(true, 'test', 'msg7');
 COMMIT;
 
-SELECT 'žluťoučký kůň' FROM pg_logical_emit_message(true, 'test', 'žluťoučký kůň');
+SELECT 'ignorethis' FROM pg_logical_emit_message(true, 'test', 'czechtastic');
 
 SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'force-binary', '0', 'skip-empty-xacts', '1');