~ubuntu-branches/ubuntu/lucid/postgresql-8.4/lucid-proposed

« back to all changes in this revision

Viewing changes to src/bin/psql/mainloop.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 * Copyright (c) 2000-2009, PostgreSQL Global Development Group
5
5
 *
6
 
 * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.94 2009/01/01 17:23:55 momjian Exp $
 
6
 * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.95 2009/06/11 14:49:08 momjian Exp $
7
7
 */
8
8
#include "postgres_fe.h"
9
9
#include "mainloop.h"
26
26
MainLoop(FILE *source)
27
27
{
28
28
        PsqlScanState scan_state;       /* lexer working state */
29
 
        volatile PQExpBuffer query_buf; /* buffer for query being accumulated */
 
29
        volatile PQExpBuffer query_buf;         /* buffer for query being accumulated */
30
30
        volatile PQExpBuffer previous_buf;      /* if there isn't anything in the new
31
 
                                                                 * buffer yet, use this one for \e, etc. */
 
31
                                                                                 * buffer yet, use this one for \e,
 
32
                                                                                 * etc. */
32
33
        PQExpBuffer history_buf;        /* earlier lines of a multi-line command, not
33
34
                                                                 * yet saved to readline history */
34
35
        char       *line;                       /* current line of input */
183
184
                        printf(_("Type:  \\copyright for distribution terms\n"
184
185
                                         "       \\h for help with SQL commands\n"
185
186
                                         "       \\? for help with psql commands\n"
186
 
                                         "       \\g or terminate with semicolon to execute query\n"
 
187
                                  "       \\g or terminate with semicolon to execute query\n"
187
188
                                         "       \\q to quit\n"));
188
189
 
189
190
                        fflush(stdout);