pgsql: Rewrite much of psql's \connect code, for the sake of code

Поиск
Список
Период
Сортировка
От neilc@postgresql.org (Neil Conway)
Тема pgsql: Rewrite much of psql's \connect code, for the sake of code
Дата
Msg-id 20060402200823.7BBBE11F6D45@postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Adjust interval-addition test so that it won't fail on DST
Следующее
От: jwp@pgfoundry.org (James William Pye)
Дата:
Сообщение: python - be: Throw IndexError when subscript is out of bounds.