Start background writer during archive recovery. Background writer now performs
[PostgreSQL.git] / contrib / pgcrypto / expected / pgp-armor.out
blob1655f13318061d8acd13249ecc81ba9d2310d0ce
1 --
2 -- PGP Armor
3 --
4 select armor('');
5             armor            
6 -----------------------------
7  -----BEGIN PGP MESSAGE-----
8                             
9  =twTO                      
10  -----END PGP MESSAGE-----  
11                             
12 (1 row)
14 select armor('test');
15             armor            
16 -----------------------------
17  -----BEGIN PGP MESSAGE-----
18                             
19  dGVzdA==                   
20  =+G7Q                      
21  -----END PGP MESSAGE-----  
22                             
23 (1 row)
25 select dearmor(armor(''));
26  dearmor 
27 ---------
28         
29 (1 row)
31 select dearmor(armor('zooka'));
32  dearmor 
33 ---------
34  zooka  
35 (1 row)
37 select armor('0123456789abcdef0123456789abcdef0123456789abcdef
38 0123456789abcdef0123456789abcdef0123456789abcdef');
39                                     armor                                     
40 ------------------------------------------------------------------------------
41  -----BEGIN PGP MESSAGE-----                                                 
42                                                                              
43  MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWYwMTIzNDU2Nzg5YWJjZGVmCjAxMjM0NTY3
44  ODlhYmNkZWYwMTIzNDU2Nzg5YWJjZGVmMDEyMzQ1Njc4OWFiY2RlZg==                    
45  =JFw5                                                                       
46  -----END PGP MESSAGE-----                                                   
47                                                                              
48 (1 row)
50 -- lots formatting
51 select dearmor(' a pgp msg:
53 -----BEGIN PGP MESSAGE-----
54 Comment: Some junk
56 em9va2E=
58   =D5cR
60 -----END PGP MESSAGE-----');
61  dearmor 
62 ---------
63  zooka  
64 (1 row)
66 -- lots messages
67 select dearmor('
68 wrong packet:
69   -----BEGIN PGP MESSAGE-----
71   d3Jvbmc=
72   =vCYP
73   -----END PGP MESSAGE-----
75 right packet:
76 -----BEGIN PGP MESSAGE-----
78 cmlnaHQ=
79 =nbpj
80 -----END PGP MESSAGE-----
82 use only first packet
83 -----BEGIN PGP MESSAGE-----
85 d3Jvbmc=
86 =vCYP
87 -----END PGP MESSAGE-----
88 ');
89  dearmor 
90 ---------
91  right  
92 (1 row)
94 -- bad crc
95 select dearmor('
96 -----BEGIN PGP MESSAGE-----
98 em9va2E=
99 =ZZZZ
100 -----END PGP MESSAGE-----
102 ERROR:  Corrupt ascii-armor