From d25379eb23383f1d2f969e65e0332b47c19aea94 Mon Sep 17 00:00:00 2001
From: Simon Riggs <simon@2ndQuadrant.com>
Date: Wed, 6 Apr 2016 14:55:11 +0100
Subject: [PATCH] Modify test_decoding/messages to remove non-ascii chars

---
 contrib/test_decoding/expected/messages.out | 14 +++++++-------
 contrib/test_decoding/sql/messages.sql      |  2 +-
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/contrib/test_decoding/expected/messages.out b/contrib/test_decoding/expected/messages.out
index e26f793daf8..70130e93789 100644
--- a/contrib/test_decoding/expected/messages.out
+++ b/contrib/test_decoding/expected/messages.out
@@ -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');
diff --git a/contrib/test_decoding/sql/messages.sql b/contrib/test_decoding/sql/messages.sql
index d72191b0a9c..4aedb045601 100644
--- a/contrib/test_decoding/sql/messages.sql
+++ b/contrib/test_decoding/sql/messages.sql
@@ -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');
 
-- 
GitLab