mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			444 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			444 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
| -- Adjust this setting to control where the objects get created.
 | |
| SET search_path = public;
 | |
| 
 | |
| CREATE TYPE pgrowlocks_type AS (
 | |
| 	locked_row TID,		-- row TID
 | |
| 	lock_type TEXT,		-- lock type
 | |
| 	locker XID,		-- locking XID
 | |
| 	multi bool,		-- multi XID?
 | |
| 	xids xid[],		-- multi XIDs
 | |
| 	pids INTEGER[]		-- locker's process id
 | |
| );
 | |
| 
 | |
| CREATE OR REPLACE FUNCTION pgrowlocks(text)
 | |
| RETURNS setof pgrowlocks_type
 | |
| AS 'MODULE_PATHNAME', 'pgrowlocks'
 | |
| LANGUAGE 'C' STRICT;
 |