diff options
| author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2013-07-23 14:03:09 -0400 |
|---|---|---|
| committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2013-07-23 14:04:36 -0400 |
| commit | 5712eeb2e7cf8e4236acffd4a403e7f14a48866f (patch) | |
| tree | 7fc5347df300b28b7c9ef37fa3e592a138bffbb1 /src/include/parser | |
| parent | 026bc46da33ab6a6f720b0d0500e8a95d075ab92 (diff) | |
Tweak FOR UPDATE/SHARE error message wording (again)
In commit 0ac5ad5134 I changed some error messages from "FOR
UPDATE/SHARE" to a rather long gobbledygook which nobody liked. Then,
in commit cb9b66d31 I changed them again, but the alternative chosen
there was deemed suboptimal by Peter Eisentraut, who in message
1373937980.20441.8.camel@vanquo.pezone.net proposed an alternative
involving a dynamically-constructed string based on the actual locking
strength specified in the SQL command. This patch implements that
suggestion.
Diffstat (limited to 'src/include/parser')
| -rw-r--r-- | src/include/parser/analyze.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/parser/analyze.h b/src/include/parser/analyze.h index 2f988d40219..b24b205e458 100644 --- a/src/include/parser/analyze.h +++ b/src/include/parser/analyze.h @@ -36,6 +36,7 @@ extern Query *transformStmt(ParseState *pstate, Node *parseTree); extern bool analyze_requires_snapshot(Node *parseTree); +extern char *LCS_asString(LockClauseStrength strength); extern void CheckSelectLocking(Query *qry); extern void applyLockingClause(Query *qry, Index rtindex, LockClauseStrength strength, bool noWait, bool pushedDown); |
