]> 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:57:25 +0000 (00:57 +0100)
Set errcode to ERRCODE_LOCK_NOT_AVAILABLE

Zoltán Bsöszörményi

src/backend/tcop/postgres.c

index ad258b74fd950fa7b83f8dc5d092819e25dc8034..c0667b24e1700fbe5368b4985f7ef7c8897b285a 100644 (file)
@@ -2900,7 +2900,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))