pgsql: Rewrite much of psql's \connect code, for the sake of code - Mailing list pgsql-committers

From neilc@postgresql.org (Neil Conway)
Subject pgsql: Rewrite much of psql's \connect code, for the sake of code
Date
Msg-id 20060402200823.7BBBE11F6D45@postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Rewrite much of psql's \connect code, for the sake of code clarity and
to fix regressions introduced in the recent patch adding additional
\connect options. This is based on work by Volkan YAZICI, although
this version of the patch doesn't bear much resemblance to Volkan's
version.

\connect takes 4 optional arguments: database name, user name, host
name, and port number. If any of those parameters are omitted or
specified as "-", the value of that parameter from the previous
connection is used instead; if there is no previous connection,
the libpq default is used. Note that this behavior makes it
impossible to reuse the libpq defaults without quitting psql and
restarting it; I don't really see the use case for needing to do
that.

Modified Files:
--------------
    pgsql/doc/src/sgml/ref:
        psql-ref.sgml (r1.160 -> r1.161)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/ref/psql-ref.sgml.diff?r1=1.160&r2=1.161)
    pgsql/src/bin/psql:
        command.c (r1.165 -> r1.166)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/command.c.diff?r1=1.165&r2=1.166)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Adjust interval-addition test so that it won't fail on DST
Next
From: jwp@pgfoundry.org (James William Pye)
Date:
Subject: python - be: Throw IndexError when subscript is out of bounds.