This project is archived and is in readonly mode.

#132 ✓invalid
Psycopg website

PGSERVICE/PGSERVICEFILE not read properly

Reported by Psycopg website | October 8th, 2012 @ 05:47 PM

Submitted by: breinbaas

This looks like a bug to me:

Setting a PGSERVICE, and also
setting PGSERVICEFILE (as a fully qualified name):

export PGSERVICE=prod
export PGSERVICEFILE=/home/mynick/.pg_service.conf

then psycopg2 still complains about not having the service, because it reads the default system pg_service.conf file

(perhaps psycopg2 is skipping dot files?)

Comments and changes to this ticket

  • Daniele Varrazzo

    Daniele Varrazzo October 8th, 2012 @ 06:04 PM

    • State changed from “new” to “invalid”

    Psycopg doesn't use PGSERVICE at all (and I didn't even know about them). It is the libpq to handle them.

    You should look into the libpq why the dotfile is ignored.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

<b>WARNING:</b> the informations in this tracker are archived. Please submit new tickets or comments to <a href="https://github.com/psycopg/psycopg2/issues">the new tracker</a>.
<br/>
Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.

Shared Ticket Bins

Tags

Pages