@@ -2149,31 +2149,31 @@ CheckSelectLocking(Query *qry)
21492149if (qry -> setOperations )
21502150ereport (ERROR ,
21512151(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2152- errmsg ("SELECT FOR UPDATE/SHARE/FOR KEY UPDATE/FOR KEY SHARE is not allowed with UNION/INTERSECT/EXCEPT" )));
2152+ errmsg ("row-level locks are not allowed with UNION/INTERSECT/EXCEPT" )));
21532153if (qry -> distinctClause != NIL )
21542154ereport (ERROR ,
21552155(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2156- errmsg ("SELECT FOR UPDATE/SHARE/FOR KEY UPDATE/FOR KEY SHARE is not allowed with DISTINCT clause" )));
2156+ errmsg ("row-level locks are not allowed with DISTINCT clause" )));
21572157if (qry -> groupClause != NIL )
21582158ereport (ERROR ,
21592159(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2160- errmsg ("SELECT FOR UPDATE/SHARE/FOR KEY UPDATE/FOR KEY SHARE is not allowed with GROUP BY clause" )));
2160+ errmsg ("row-level locks are not allowed with GROUP BY clause" )));
21612161if (qry -> havingQual != NULL )
21622162ereport (ERROR ,
21632163(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2164- errmsg ("SELECT FOR UPDATE/SHARE/FOR KEY UPDATE/FOR KEY SHARE is not allowed with HAVING clause" )));
2164+ errmsg ("row-level locks are not allowed with HAVING clause" )));
21652165if (qry -> hasAggs )
21662166ereport (ERROR ,
21672167(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2168- errmsg ("SELECT FOR UPDATE/SHARE/FOR KEY UPDATE/FOR KEY SHARE is not allowed with aggregate functions" )));
2168+ errmsg ("row-level locks are not allowed with aggregate functions" )));
21692169if (qry -> hasWindowFuncs )
21702170ereport (ERROR ,
21712171(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2172- errmsg ("SELECT FOR UPDATE/SHARE/FOR KEY UPDATE/FOR KEY SHARE is not allowed with window functions" )));
2172+ errmsg ("row-level locks are not allowed with window functions" )));
21732173if (expression_returns_set ((Node * )qry -> targetList ))
21742174ereport (ERROR ,
21752175(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2176- errmsg ("SELECT FOR UPDATE/SHARE/FOR KEY UPDATE/FOR KEY SHARE is not allowed with set-returning functions in the target list" )));
2176+ errmsg ("row-level locks are not allowed with set-returning functions in the target list" )));
21772177}
21782178
21792179/*
@@ -2252,7 +2252,7 @@ transformLockingClause(ParseState *pstate, Query *qry, LockingClause *lc,
22522252if (thisrel -> catalogname || thisrel -> schemaname )
22532253ereport (ERROR ,
22542254(errcode (ERRCODE_SYNTAX_ERROR ),
2255- errmsg ("SELECT FOR UPDATE/SHARE/KEY UPDATE/KEY SHARE must specify unqualified relation names" ),
2255+ errmsg ("row-level locks must specify unqualified relation names" ),
22562256parser_errposition (pstate ,thisrel -> location )));
22572257
22582258i = 0 ;
@@ -2269,7 +2269,7 @@ transformLockingClause(ParseState *pstate, Query *qry, LockingClause *lc,
22692269if (rte -> relkind == RELKIND_FOREIGN_TABLE )
22702270ereport (ERROR ,
22712271 (errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2272- errmsg ("SELECT FOR UPDATE/SHARE/KEY UPDATE/KEY SHARE cannot be used with foreign table \"%s\"" ,
2272+ errmsg ("row-level locks cannot be used with foreign table \"%s\"" ,
22732273rte -> eref -> aliasname ),
22742274parser_errposition (pstate ,thisrel -> location )));
22752275applyLockingClause (qry ,i ,
@@ -2288,25 +2288,25 @@ transformLockingClause(ParseState *pstate, Query *qry, LockingClause *lc,
22882288case RTE_JOIN :
22892289ereport (ERROR ,
22902290(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2291- errmsg ("SELECT FOR UPDATE/SHARE/KEY UPDATE/KEY SHARE cannot be applied to a join" ),
2291+ errmsg ("row-level locks cannot be applied to a join" ),
22922292parser_errposition (pstate ,thisrel -> location )));
22932293break ;
22942294case RTE_FUNCTION :
22952295ereport (ERROR ,
22962296(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2297- errmsg ("SELECT FOR UPDATE/SHARE/KEY UPDATE/KEY SHARE cannot be applied to a function" ),
2297+ errmsg ("row-level locks cannot be applied to a function" ),
22982298parser_errposition (pstate ,thisrel -> location )));
22992299break ;
23002300case RTE_VALUES :
23012301ereport (ERROR ,
23022302(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2303- errmsg ("SELECT FOR UPDATE/SHARE/KEY UPDATE/KEY SHARE cannot be applied to VALUES" ),
2303+ errmsg ("row-level locks cannot be applied to VALUES" ),
23042304parser_errposition (pstate ,thisrel -> location )));
23052305break ;
23062306case RTE_CTE :
23072307ereport (ERROR ,
23082308(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2309- errmsg ("SELECT FOR UPDATE/SHARE/KEY UPDATE/KEY SHARE cannot be applied to a WITH query" ),
2309+ errmsg ("row-level locks cannot be applied to a WITH query" ),
23102310parser_errposition (pstate ,thisrel -> location )));
23112311break ;
23122312default :
@@ -2320,7 +2320,7 @@ transformLockingClause(ParseState *pstate, Query *qry, LockingClause *lc,
23202320if (rt == NULL )
23212321ereport (ERROR ,
23222322(errcode (ERRCODE_UNDEFINED_TABLE ),
2323- errmsg ("relation \"%s\" inFOR UPDATE/SHARE/KEY UPDATE/KEY SHARE clause not found in FROM clause" ,
2323+ errmsg ("relation \"%s\" inrow-level lock clause not found in FROM clause" ,
23242324thisrel -> relname ),
23252325parser_errposition (pstate ,thisrel -> location )));
23262326}