mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Support UPDATE/DELETE WHERE CURRENT OF cursor_name, per SQL standard.
Along the way, allow FOR UPDATE in non-WITH-HOLD cursors; there may once have been a reason to disallow that, but it seems to work now, and it's really rather necessary if you want to select a row via a cursor and then update it in a concurrent-safe fashion. Original patch by Arul Shaji, rather heavily editorialized by Tom Lane.
This commit is contained in:
		@@ -7,7 +7,7 @@
 | 
			
		||||
 * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
 | 
			
		||||
 * Portions Copyright (c) 1994, Regents of the University of California
 | 
			
		||||
 *
 | 
			
		||||
 * $PostgreSQL: pgsql/src/include/nodes/nodes.h,v 1.200 2007/06/05 21:31:08 tgl Exp $
 | 
			
		||||
 * $PostgreSQL: pgsql/src/include/nodes/nodes.h,v 1.201 2007/06/11 01:16:30 tgl Exp $
 | 
			
		||||
 *
 | 
			
		||||
 *-------------------------------------------------------------------------
 | 
			
		||||
 */
 | 
			
		||||
@@ -139,6 +139,7 @@ typedef enum NodeTag
 | 
			
		||||
	T_CoerceToDomain,
 | 
			
		||||
	T_CoerceToDomainValue,
 | 
			
		||||
	T_SetToDefault,
 | 
			
		||||
	T_CurrentOfExpr,
 | 
			
		||||
	T_TargetEntry,
 | 
			
		||||
	T_RangeTblRef,
 | 
			
		||||
	T_JoinExpr,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user