mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	Create objects in public schema. Make spacing/capitalization consistent. Remove transaction block use for object creation. Remove unneeded function GRANTs.
		
			
				
	
	
		
			18 lines
		
	
	
		
			193 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			193 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| --
 | |
| -- init pgcrypto
 | |
| --
 | |
| \set ECHO none
 | |
| -- check for encoding fn's
 | |
| SELECT encode('foo', 'hex');
 | |
|  encode 
 | |
| --------
 | |
|  666f6f
 | |
| (1 row)
 | |
| 
 | |
| SELECT decode('666f6f', 'hex');
 | |
|  decode 
 | |
| --------
 | |
|  foo
 | |
| (1 row)
 | |
| 
 |