зеркало из
				https://github.com/iharh/notes.git
				synced 2025-10-31 13:46:08 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			21 строка
		
	
	
		
			325 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			21 строка
		
	
	
		
			325 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| \dn
 | |
|     list [non-sys] schemas
 | |
| \dt
 | |
|     list tables
 | |
| 
 | |
| current_schemas(true)
 | |
|     pg_temp_<N>, pg_catalog, public, app
 | |
| 
 | |
| search_path
 | |
|     pg_temp (pg_temp_<N>)
 | |
|     $user
 | |
|     gp_catalog
 | |
|     public
 | |
| 
 | |
| alter database <dbname> set search_path=...;
 | |
| 
 | |
| alter table <tablename> set schema=...;
 | |
| 
 | |
| create schema...
 | |
| drop schema ... drop cascade;
 | 
