@@ -2149,31 +2149,31 @@ CheckSelectLocking(Query *qry)
21492149 if (qry -> setOperations )
21502150 ereport (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" )));
21532153 if (qry -> distinctClause != NIL )
21542154 ereport (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" )));
21572157 if (qry -> groupClause != NIL )
21582158 ereport (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" )));
21612161 if (qry -> havingQual != NULL )
21622162 ereport (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" )));
21652165 if (qry -> hasAggs )
21662166 ereport (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" )));
21692169 if (qry -> hasWindowFuncs )
21702170 ereport (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" )));
21732173 if (expression_returns_set ((Node * ) qry -> targetList ))
21742174 ereport (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,
22522252 if (thisrel -> catalogname || thisrel -> schemaname )
22532253 ereport (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" ),
22562256 parser_errposition (pstate , thisrel -> location )));
22572257
22582258 i = 0 ;
@@ -2269,7 +2269,7 @@ transformLockingClause(ParseState *pstate, Query *qry, LockingClause *lc,
22692269 if (rte -> relkind == RELKIND_FOREIGN_TABLE )
22702270 ereport (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\"" ,
22732273 rte -> eref -> aliasname ),
22742274 parser_errposition (pstate , thisrel -> location )));
22752275 applyLockingClause (qry , i ,
@@ -2288,25 +2288,25 @@ transformLockingClause(ParseState *pstate, Query *qry, LockingClause *lc,
22882288 case RTE_JOIN :
22892289 ereport (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" ),
22922292 parser_errposition (pstate , thisrel -> location )));
22932293 break ;
22942294 case RTE_FUNCTION :
22952295 ereport (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" ),
22982298 parser_errposition (pstate , thisrel -> location )));
22992299 break ;
23002300 case RTE_VALUES :
23012301 ereport (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" ),
23042304 parser_errposition (pstate , thisrel -> location )));
23052305 break ;
23062306 case RTE_CTE :
23072307 ereport (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" ),
23102310 parser_errposition (pstate , thisrel -> location )));
23112311 break ;
23122312 default :
@@ -2320,7 +2320,7 @@ transformLockingClause(ParseState *pstate, Query *qry, LockingClause *lc,
23202320 if (rt == NULL )
23212321 ereport (ERROR ,
23222322 (errcode (ERRCODE_UNDEFINED_TABLE ),
2323- errmsg ("relation \"%s\" in FOR UPDATE/SHARE/KEY UPDATE/KEY SHARE clause not found in FROM clause" ,
2323+ errmsg ("relation \"%s\" in row-level lock clause not found in FROM clause" ,
23242324 thisrel -> relname ),
23252325 parser_errposition (pstate , thisrel -> location )));
23262326 }
0 commit comments