]> granicus.if.org Git - postgresql/commitdiff
Change errcode for lock_timeout to match NOWAIT
authorSimon Riggs <simon@2ndQuadrant.com>
Fri, 28 Jun 2013 23:57:25 +0000 (00:57 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Fri, 28 Jun 2013 23:59:20 +0000 (00:59 +0100)
Set errcode to ERRCODE_LOCK_NOT_AVAILABLE

Zoltán Bsöszörményi

src/backend/tcop/postgres.c

index 31ea31304b45895b8c10dfc774a38c2d928e0896..ba895d5854ae5bcd4de8b2b7495964d3f5ddf46a 100644 (file)
@@ -2895,7 +2895,7 @@ ProcessInterrupts(void)
                        DisableNotifyInterrupt();
                        DisableCatchupInterrupt();
                        ereport(ERROR,
-                                       (errcode(ERRCODE_QUERY_CANCELED),
+                                       (errcode(ERRCODE_LOCK_NOT_AVAILABLE),
                                         errmsg("canceling statement due to lock timeout")));
                }
                if (get_timeout_indicator(STATEMENT_TIMEOUT, true))