@@ -177,6 +177,7 @@ <h3>Receiver Faults<a class="headerlink" href="#receiver-faults" title="Permalin
177177< span class ="gp "> ... </ span > < span class ="k "> try</ span > < span class ="p "> :</ span >
178178< span class ="gp "> ... </ span > < span class ="k "> for</ span > < span class ="n "> num_messages</ span > < span class ="p "> ,</ span > < span class ="n "> num_bytes</ span > < span class ="ow "> in</ span > < span class ="n "> copy</ span > < span class ="p "> :</ span >
179179< span class ="gp "> ... </ span > < span class ="n "> update_rate</ span > < span class ="p "> (</ span > < span class ="n "> num_bytes</ span > < span class ="p "> )</ span >
180+ < span class ="gp "> ... </ span > < span class ="k "> break</ span >
180181< span class ="gp "> ... </ span > < span class ="k "> except</ span > < span class ="n "> copyman</ span > < span class ="o "> .</ span > < span class ="n "> ReceiverFault</ span > < span class ="k "> as</ span > < span class ="n "> cf</ span > < span class ="p "> :</ span >
181182< span class ="gp "> ... </ span > < span class ="c "> # Access the original exception using the receiver as the key.</ span >
182183< span class ="gp "> ... </ span > < span class ="n "> original_exception</ span > < span class ="o "> =</ span > < span class ="n "> cf</ span > < span class ="o "> .</ span > < span class ="n "> faults</ span > < span class ="p "> [</ span > < span class ="n "> receiver</ span > < span class ="p "> ]</ span >
@@ -256,12 +257,10 @@ <h4>ProducerFault Properties<a class="headerlink" href="#producerfault-propertie
256257< div class ="section " id ="failures ">
257258< h2 > Failures< a class ="headerlink " href ="#failures " title ="Permalink to this headline "> ¶</ a > </ h2 >
258259< p > When a COPY operation is aborted, either by an exception or by the iterator
259- being broken, a < cite > postgresql.copyman.CopyFail</ cite > exception will be raised,
260- generalizing the failure. When a failure occurs, the Manager will < em > attempt</ em > to
261- recover and realign the Producer and the Receivers. Regardless of the success of
262- the recovery process, a < cite > postgresql.copyman.CopyFail</ cite > exception will be raised.</ p >
263- < p > The < cite > postgresql.copyman.CopyFail</ cite > offers to record any exceptions that occur
264- during the exit of the context manager.</ p >
260+ being broken, a < cite > postgresql.copyman.CopyFail</ cite > exception will be raised by the
261+ Manager’s < tt class ="docutils literal "> < span class ="pre "> __exit__()</ span > </ tt > method. The < cite > postgresql.copyman.CopyFail</ cite > exception
262+ offers to record any exceptions that occur during the exit of the context
263+ managers of the Producer and the Receivers.</ p >
265264< div class ="section " id ="copyfail-properties ">
266265< h3 > CopyFail Properties< a class ="headerlink " href ="#copyfail-properties " title ="Permalink to this headline "> ¶</ a > </ h3 >
267266< p > The following properties exist on < cite > postgresql.copyman.CopyFail</ cite > exceptions:</ p >
@@ -423,7 +422,7 @@ <h3>Navigation</h3>
423422 </ div >
424423 < div class ="footer ">
425424 © Copyright 2010, James William Pye <x@jwp.name>.
426- Last updated on Mar 27 , 2010.
425+ Last updated on Mar 28 , 2010.
427426 Created using < a href ="http://sphinx.pocoo.org/ "> Sphinx</ a > 0.6.3.
428427 </ div >
429428 </ body >
0 commit comments