Package: postgresql-client
Version: 7.4.7-6sarge1
Severity: minor

Hi,

You cannot use the pg_service.conf functionality present in the Debian
package. Example:

$ PGDATABASE=test psql
Welcome to psql 7.4.7, the PostgreSQL interactive terminal.
<..snip...>
$ PGSERVICE=test psql
psql (pg_wrapper): No database specified

If there was a service defined, then it would (possibly) define the
database to connect to. pg_wrapper should continue if the PGSERVICE
variable is defined.

Next, if you provide a dummy dbname to get past pg_wrapper you get:

$ PGSERVICE=test psql f
psql: ERROR: Service file '/usr/etc/postgresql/pg_service.conf' not found

The path is obviously bogus, evidently a broken SYSCONFPATH somewhere.

I've filed this as minor given that obviously this feature is rarely
used and these issues are probably fixed in later versions anyway.

Have a nice day,

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages postgresql-client depends on:
ii  debconf [debconf-2.0]  1.4.30.13         Debian configuration management sy
ii  debianutils            2.8.4             Miscellaneous utilities specific t
ii  libc6                  2.3.5-8           GNU C Library: Shared libraries an
ii  libkrb53               1.3.6-2sarge2     MIT Kerberos runtime libraries
ii  libpam0g               0.76-22           Pluggable Authentication Modules l
ii  libpq3                 7.4.7-6sarge1     PostgreSQL C client library
ii  libreadline4           4.3-11            GNU readline and history libraries
ii  libssl0.9.7            0.9.7e-3sarge1    SSL shared libraries
ii  zlib1g                 1:1.2.2-4.sarge.2 compression library - runtime

-- debconf information excluded

-- 
Martijn van Oosterhout
Ecomtel Pty Ltd


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to