diff --git a/contrib/hstore/expected/hstore.out b/contrib/hstore/expected/hstore.out
index e78264d12bc5402e27e72621dae4a7c822b2a896..0ed109203cfc60995b85d56c0cbd696df01147c7 100644
--- a/contrib/hstore/expected/hstore.out
+++ b/contrib/hstore/expected/hstore.out
@@ -207,25 +207,25 @@ select 'aa=>"NuLl"'::hstore;
  "aa"=>"NuLl"
 (1 row)
 
-select '\\=a=>q=w'::hstore;
+select e'\\=a=>q=w'::hstore;
    hstore    
 -------------
  "=a"=>"q=w"
 (1 row)
 
-select '"=a"=>q\\=w'::hstore;
+select e'"=a"=>q\\=w'::hstore;
    hstore    
 -------------
  "=a"=>"q=w"
 (1 row)
 
-select '"\\"a"=>q>w'::hstore;
+select e'"\\"a"=>q>w'::hstore;
     hstore    
 --------------
  "\"a"=>"q>w"
 (1 row)
 
-select '\\"a=>q"w'::hstore;
+select e'\\"a=>q"w'::hstore;
     hstore     
 ---------------
  "\"a"=>"q\"w"
diff --git a/contrib/hstore/sql/hstore.sql b/contrib/hstore/sql/hstore.sql
index 8fefcbba93a623fa6a1b1087e0e80de907ec3811..76f742299ea962e096a69fafc94850bc07322d26 100644
--- a/contrib/hstore/sql/hstore.sql
+++ b/contrib/hstore/sql/hstore.sql
@@ -48,10 +48,10 @@ select 'aa=>null'::hstore;
 select 'aa=>NuLl'::hstore;
 select 'aa=>"NuLl"'::hstore;
 
-select '\\=a=>q=w'::hstore;
-select '"=a"=>q\\=w'::hstore;
-select '"\\"a"=>q>w'::hstore;
-select '\\"a=>q"w'::hstore;
+select e'\\=a=>q=w'::hstore;
+select e'"=a"=>q\\=w'::hstore;
+select e'"\\"a"=>q>w'::hstore;
+select e'\\"a=>q"w'::hstore;
 
 select ''::hstore;
 select '	'::hstore;