mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-29 22:49:41 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			159 B
		
	
	
	
		
			PL/PgSQL
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			159 B
		
	
	
	
		
			PL/PgSQL
		
	
	
	
	
	
| --
 | |
| -- init pgcrypto
 | |
| --
 | |
| 
 | |
| \set ECHO none
 | |
| \i pgcrypto.sql
 | |
| \set ECHO all
 | |
| 
 | |
| -- check for encoding fn's
 | |
| SELECT encode('foo', 'hex');
 | |
| SELECT decode('666f6f', 'hex');
 | |
| 
 |