| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| 2 | "http://www.w3.org/TR/html4/loose.dtd"> |
| 3 | <html> |
| 4 | <head> |
| 5 | <meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.6.0"> |
| 6 | <title>pg_blocking</title> |
| 7 | <meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.79"> |
| 8 | <link rev="MADE" href="mailto:[email protected]"> |
| 9 | <link rel="HOME" title="PostgreSQL Tcl Interface Documentation" href="index.html"> |
| 10 | <link rel="UP" title="pgtcl Command Reference" href="libpgtcl-ref.html"> |
| 11 | <link rel="PREVIOUS" title="pg_isbusy" href="pgtcl-pgisbusy.html"> |
| 12 | <link rel="NEXT" title="pg_cancelrequest" href="pgtcl-pgcancelrequest.html"> |
| 13 | <link rel="STYLESHEET" type="text/css" href="stylesheet.css"> |
| 14 | </head> |
| 15 | <body class="REFENTRY"> |
| 16 | <div class="NAVHEADER"> |
| 17 | <table summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0"> |
| 18 | <tr> |
| 19 | <th colspan="5" align="center" valign="bottom">PostgreSQL Tcl Interface Documentation</th> |
| 20 | </tr> |
| 21 | <tr> |
| 22 | <td width="10%" align="left" valign="top"><a href="pgtcl-pgisbusy.html" accesskey="P">Prev</a></td> |
| 23 | <td width="10%" align="left" valign="top"><a href="pgtcl-pgisbusy.html">Fast Backward</a></td> |
| 24 | <td width="60%" align="center" valign="bottom"></td> |
| 25 | <td width="10%" align="right" valign="top"><a href="pgtcl-pgcancelrequest.html">Fast Forward</a></td> |
| 26 | <td width="10%" align="right" valign="top"><a href="pgtcl-pgcancelrequest.html" accesskey="N">Next</a></td> |
| 27 | </tr> |
| 28 | </table> |
| 29 | <hr align="left" width="100%"></div> |
| 30 | <h1><a name="PGTCL-PGBLOCKING" id="PGTCL-PGBLOCKING"></a>pg_blocking</h1> |
| 31 | <div class="REFNAMEDIV"><a name="AEN1668" id="AEN1668"></a> |
| 32 | <h2>Name</h2> |
| 33 | pg_blocking -- see or set whether or not a connection is set to blocking or nonblocking<a name="IX-PGTCL-PGBLOCKING-2" id="IX-PGTCL-PGBLOCKING-2"></a></div> |
| 34 | <div class="REFSYNOPSISDIV"><a name="AEN1673" id="AEN1673"></a> |
| 35 | <h2>Synopsis</h2> |
| 36 | <pre class="SYNOPSIS">pg_blocking <code class="PARAMETER">conn</code> ?<span class="OPTIONAL"><code class="PARAMETER">mode</code></span>?</pre></div> |
| 37 | <div class="REFSECT1"><a name="AEN1678" id="AEN1678"></a> |
| 38 | <h2>Description</h2> |
| 39 | <p><code class="FUNCTION">pg_blocking</code> can set the connection to either blocking or nonblocking, and it can see which way the connection is currently set.</p> |
| 40 | </div> |
| 41 | <div class="REFSECT1"><a name="AEN1682" id="AEN1682"></a> |
| 42 | <h2>Arguments</h2> |
| 43 | <div class="VARIABLELIST"> |
| 44 | <dl> |
| 45 | <dt><code class="PARAMETER">conn</code></dt> |
| 46 | <dd> |
| 47 | <p>The handle of a connection to the database in which the large object exists.</p> |
| 48 | </dd> |
| 49 | <dt><code class="PARAMETER">mode</code></dt> |
| 50 | <dd> |
| 51 | <p>If present, sets the mode of the connection to <tt class="LITERAL">nonblocking</tt> if <tt class="LITERAL">0</tt>. Otherwise it sets the connection to <tt class="LITERAL">blocking</tt>.</p> |
| 52 | </dd> |
| 53 | </dl> |
| 54 | </div> |
| 55 | </div> |
| 56 | <div class="REFSECT1"><a name="AEN1698" id="AEN1698"></a> |
| 57 | <h2>Return Value</h2> |
| 58 | <p>Returns nothing if called with the <code class="PARAMETER">mode</code> argument. Otherwise it returns <tt class="LITERAL">1</tt> if the connection is set for <tt class="LITERAL">blocking</tt>, or <tt class="LITERAL">0</tt> if the connection is set for <tt class="LITERAL">nonblocking</tt>.</p> |
| 59 | </div> |
| 60 | <div class="NAVFOOTER"> |
| 61 | <hr align="left" width="100%"> |
| 62 | <table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0"> |
| 63 | <tr> |
| 64 | <td width="33%" align="left" valign="top"><a href="pgtcl-pgisbusy.html" accesskey="P">Prev</a></td> |
| 65 | <td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">Home</a></td> |
| 66 | <td width="33%" align="right" valign="top"><a href="pgtcl-pgcancelrequest.html" accesskey="N">Next</a></td> |
| 67 | </tr> |
| 68 | <tr> |
| 69 | <td width="33%" align="left" valign="top">pg_isbusy</td> |
| 70 | <td width="34%" align="center" valign="top"><a href="libpgtcl-ref.html" accesskey="U">Up</a></td> |
| 71 | <td width="33%" align="right" valign="top">pg_cancelrequest</td> |
| 72 | </tr> |
| 73 | </table> |
| 74 | </div> |
| 75 | </body> |
| 76 | </html> |