mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +03:00
Improve the representation of FOR UPDATE/FOR SHARE so that we can
support both FOR UPDATE and FOR SHARE in one command, as well as both NOWAIT and normal WAIT behavior. The more general code is actually simpler and cleaner.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/parser/parsetree.h,v 1.32 2006/03/05 15:58:58 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/include/parser/parsetree.h,v 1.33 2006/04/30 18:30:40 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -70,4 +70,11 @@ extern bool get_rte_attribute_is_dropped(RangeTblEntry *rte,
|
||||
|
||||
extern TargetEntry *get_tle_by_resno(List *tlist, AttrNumber resno);
|
||||
|
||||
/* ----------------
|
||||
* FOR UPDATE/SHARE info
|
||||
* ----------------
|
||||
*/
|
||||
|
||||
extern RowMarkClause *get_rowmark(Query *qry, Index rtindex);
|
||||
|
||||
#endif /* PARSETREE_H */
|
||||
|
||||
Reference in New Issue
Block a user