Skip to content

Commit 9cbbc0f

Browse files
author
James William Pye
committed
Hopefully the last updates.
1 parent 30ad2d8 commit 9cbbc0f

19 files changed

Lines changed: 30 additions & 33 deletions

postgresql/documentation/html/_sources/copyman.txt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ on the `postgresql.copyman.ReceiverFault` must be referenced::
149149
... try:
150150
... for num_messages, num_bytes in copy:
151151
... update_rate(num_bytes)
152+
... break
152153
... except copyman.ReceiverFault as cf:
153154
... # Access the original exception using the receiver as the key.
154155
... original_exception = cf.faults[receiver]
@@ -230,13 +231,10 @@ Failures
230231
========
231232

232233
When a COPY operation is aborted, either by an exception or by the iterator
233-
being broken, a `postgresql.copyman.CopyFail` exception will be raised,
234-
generalizing the failure. When a failure occurs, the Manager will *attempt* to
235-
recover and realign the Producer and the Receivers. Regardless of the success of
236-
the recovery process, a `postgresql.copyman.CopyFail` exception will be raised.
237-
238-
The `postgresql.copyman.CopyFail` offers to record any exceptions that occur
239-
during the exit of the context manager.
234+
being broken, a `postgresql.copyman.CopyFail` exception will be raised by the
235+
Manager's ``__exit__()`` method. The `postgresql.copyman.CopyFail` exception
236+
offers to record any exceptions that occur during the exit of the context
237+
managers of the Producer and the Receivers.
240238

241239

242240
CopyFail Properties

postgresql/documentation/html/_sources/notifyman.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ The above example illustrates that idle events are represented using `None`
6060
objects. Idle events are guaranteed to occur *approximately* at the
6161
specified interval--the ``timeout`` keyword parameter. In addition to
6262
providing a means to do other processing or polling, they also offer a safe
63-
break point for the loop. Internally, the iterator produced by the ``wait``
64-
method *is* a `NotificationManager`, which will localize the notifications
65-
prior to emitting them via the iterator.
63+
break point for the loop. Internally, the iterator produced by the
64+
``iternotifies`` method *is* a `NotificationManager`, which will localize the
65+
notifications prior to emitting them via the iterator.
6666
*It's not safe to break out of the loop, unless an idle event is being handled.*
6767
If the loop is broken while a regular event is being processed, some events may
6868
remain in the iterator. In order to consume those events, the iterator *must*

postgresql/documentation/html/admin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ <h3>Navigation</h3>
143143
</div>
144144
<div class="footer">
145145
&copy; Copyright 2010, James William Pye &lt;x@jwp.name&gt;.
146-
Last updated on Mar 27, 2010.
146+
Last updated on Mar 28, 2010.
147147
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.3.
148148
</div>
149149
</body>

postgresql/documentation/html/alock.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ <h3>Navigation</h3>
209209
</div>
210210
<div class="footer">
211211
&copy; Copyright 2010, James William Pye &lt;x@jwp.name&gt;.
212-
Last updated on Mar 27, 2010.
212+
Last updated on Mar 28, 2010.
213213
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.3.
214214
</div>
215215
</body>

postgresql/documentation/html/bin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ <h3>Navigation</h3>
316316
</div>
317317
<div class="footer">
318318
&copy; Copyright 2010, James William Pye &lt;x@jwp.name&gt;.
319-
Last updated on Mar 27, 2010.
319+
Last updated on Mar 28, 2010.
320320
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.3.
321321
</div>
322322
</body>

postgresql/documentation/html/changes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ <h3>Navigation</h3>
154154
</div>
155155
<div class="footer">
156156
&copy; Copyright 2010, James William Pye &lt;x@jwp.name&gt;.
157-
Last updated on Mar 27, 2010.
157+
Last updated on Mar 28, 2010.
158158
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.3.
159159
</div>
160160
</body>

postgresql/documentation/html/clientparameters.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ <h3>Navigation</h3>
415415
</div>
416416
<div class="footer">
417417
&copy; Copyright 2010, James William Pye &lt;x@jwp.name&gt;.
418-
Last updated on Mar 27, 2010.
418+
Last updated on Mar 28, 2010.
419419
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.3.
420420
</div>
421421
</body>

postgresql/documentation/html/copyman.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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&#8217;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
&copy; Copyright 2010, James William Pye &lt;x@jwp.name&gt;.
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>
-785 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)