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:03:09 -0400 |
| commit | c359a1b0823f798fc419adea5da7991845c915aa (patch) | |
| tree | 491eeedd516c8fe2e3867e6445ef1534acf718dd /src/include | |
| parent | 765ad89be36f699e2d65238c1f0458a1ab7e4d8b (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')
| -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); |
