~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-security

« back to all changes in this revision

Viewing changes to src/interfaces/libpq/fe-protocol3.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-01 17:41:41 UTC
  • mfrom: (1.1.4 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20090701174141-jfmn9tt8e69m950x
Tags: 8.4.0-1
* Final 8.4.0 release. Major enhancements:
  - Windowing Functions
  - Common Table Expressions and Recursive Queries
  - Default and variadic parameters for functions
  - Parallel Restore
  - Column Permissions
  - Per-database locale settings
  - Improved hash indexes
  - Improved join performance for EXISTS and NOT EXISTS queries
  - Easier-to-use Warm Standby
  - Automatic sizing of the Free Space Map
  - Visibility Map (greatly reduces vacuum overhead for slowly-changing
    tables)
  - Version-aware psql (backslash commands work against older servers)
  - Support SSL certificates for user authentication
  - Per-function runtime statistics
  - Easy editing of functions in psql
  - New contrib modules: pg_stat_statements, auto_explain, citext,
    btree_gin 
  Upload to unstable, 8.4 is the new default. 
* debian/control: Build the versionless metapackages and have them point to
  8.4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 *
9
9
 *
10
10
 * IDENTIFICATION
11
 
 *        $PostgreSQL: pgsql/src/interfaces/libpq/fe-protocol3.c,v 1.38 2009/01/09 18:50:03 tgl Exp $
 
11
 *        $PostgreSQL: pgsql/src/interfaces/libpq/fe-protocol3.c,v 1.39 2009/06/11 14:49:14 momjian Exp $
12
12
 *
13
13
 *-------------------------------------------------------------------------
14
14
 */
309
309
                                                if (conn->result == NULL)
310
310
                                                {
311
311
                                                        conn->result = PQmakeEmptyPGresult(conn,
312
 
                                                                                                                        PGRES_COMMAND_OK);
 
312
                                                                                                                   PGRES_COMMAND_OK);
313
313
                                                        if (!conn->result)
314
314
                                                                return;
315
315
                                                }
1378
1378
        for (;;)
1379
1379
        {
1380
1380
                /*
1381
 
                 * Collect the next input message.  To make life simpler for async
 
1381
                 * Collect the next input message.      To make life simpler for async
1382
1382
                 * callers, we keep returning 0 until the next message is fully
1383
1383
                 * available, even if it is not Copy Data.
1384
1384
                 */
1387
1387
                {
1388
1388
                        /*
1389
1389
                         * On end-of-copy, exit COPY_OUT mode and let caller read status
1390
 
                         * with PQgetResult().  The normal case is that it's Copy Done,
1391
 
                         * but we let parseInput read that.  If error, we expect the
1392
 
                         * state was already changed.
 
1390
                         * with PQgetResult().  The normal case is that it's Copy Done,
 
1391
                         * but we let parseInput read that.  If error, we expect the state
 
1392
                         * was already changed.
1393
1393
                         */
1394
1394
                        if (msgLength == -1)
1395
1395
                                conn->asyncStatus = PGASYNC_BUSY;
1396
 
                        return msgLength;               /* end-of-copy or error */
 
1396
                        return msgLength;       /* end-of-copy or error */
1397
1397
                }
1398
1398
                if (msgLength == 0)
1399
1399
                {