Changeset 680 for trunk/docs


Ignore:
Timestamp:
Dec 30, 2015, 4:56:42 PM (4 years ago)
Author:
cito
Message:

Remove the deprecated tty parameter and attribute

This parameter has been ignored by PostgreSQL since version 7.4.

Location:
trunk/docs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/pg.rst

    r679 r680  
    5252---------------------------------------
    5353
    54 .. function:: connect([dbname], [host], [port], [opt], [tty], [user], [passwd])
     54.. function:: connect([dbname], [host], [port], [opt], [user], [passwd])
    5555
    5656    Open a :mod:`pg` connection
     
    6464    :param opt: connection options (*None* = :data:`defopt`)
    6565    :type opt: str or None
    66     :param tty: debug terminal (*None* = :data:`deftty`)
    67     :type tty: str or None
    6866    :param user: PostgreSQL user (*None* = :data:`defuser`)
    6967    :type user: str or None
     
    176174If ``None`` is supplied as parameter, environment variables will be used in
    177175future connections. It returns the previous setting for default options.
    178 
    179 get/set_deftty -- default debug tty [DV]
    180 ----------------------------------------
    181 
    182 .. function:: get_deftty()
    183 
    184     Get the default debug terminal
    185 
    186     :returns: the current default debug terminal specification
    187     :rtype: str or None
    188     :raises TypeError: too many arguments
    189 
    190 This method returns the current default debug terminal specification, or
    191 ``None`` if the environment variables should be used. Environment variables
    192 won't be looked up.
    193 
    194 .. function:: set_deftty(terminal)
    195 
    196     Set the default debug terminal
    197 
    198     :param terminal: the new default debug terminal
    199     :type terminal: str or None
    200     :returns: the previous default debug terminal specification
    201     :rtype: str or None
    202     :raises TypeError: bad argument type, or too many arguments
    203 
    204 This methods sets the default debug terminal value for new connections.
    205 If ``None`` is supplied as parameter, environment variables will be used
    206 in future connections. It returns the previous setting for default terminal.
    207176
    208177get/set_defbase -- default database name [DV]
     
    840809
    841810   the connection options (str)
    842 
    843 .. attribute:: Connection.tty
    844 
    845    the connection debug terminal (str)
    846811
    847812.. attribute:: Connection.user
  • trunk/docs/pgdb.rst

    r679 r680  
    5555database and returns a :class:`Connection` object using these parameters.
    5656If specified, the *dsn* parameter must be a string with the format
    57 ``'host:base:user:passwd:opt:tty'``. All of the parts specified in the *dsn*
     57``'host:base:user:passwd:opt'``. All of the parts specified in the *dsn*
    5858are optional. You can also specify the parameters individually using keyword
    5959arguments, which always take precedence. The *host* can also contain a port
    6060if specified in the format ``'host:port'``. In the *opt* part of the *dsn*
    61 you can pass command-line options to the server, the *tty* part is used to
    62 send server debug output.
     61you can pass command-line options to the server.
    6362
    6463Example::
Note: See TracChangeset for help on using the changeset viewer.