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 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.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
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.