pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jacobo <jsanchez@denodo.com>
To: pgsql-odbc@postgresql.org
Subject: Re: Is it possible to set psql connection parameters before an ODBC connection?
Date: Thu, 19 Mar 2015 07:17:06 -0700 (MST)
Message-ID: <1426774626502-5842571.post@n5.nabble.com> (raw)
In-Reply-To: <CAG2CW_JMDxxHJ8QTRQH0dUZQC2MLcjhUBRWcT4qcyCMUN1NHmw@mail.gmail.com>
References: <CAG2CW_JMDxxHJ8QTRQH0dUZQC2MLcjhUBRWcT4qcyCMUN1NHmw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

I was currently digging into the code to find a way to specify krbsrvname and
just found that before reading the PGKRBSRVNAME environment variable it
calls a function in order to find the krbsrvname.

Checking the implementation i realized that in order to read this parameter
from Connect Settings at this level they should be added inside a comment. 

To verify this i have configured a DSN with Connect Settings
/*krbsrvname=myvalue*/ and from the logs it seems to be using this value.

I don't know for the rest of parameters but this may also work for them.

Hope this helps

Regards,

Jacobo



--
View this message in context: http://postgresql.nabble.com/Is-it-possible-to-set-psql-connection-parameters-before-an-ODBC-connect...
Sent from the PostgreSQL - odbc mailing list archive at Nabble.com.


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (5+ messages)  latest in thread

Message-ID: <1426774626502-5842571.post@n5.nabble.com>
Permalink:  ../1426774626502-5842571.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1426774626502-5842571.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: jsanchez@denodo.com
  Subject: Re: Is it possible to set psql connection parameters before an ODBC connection?
  In-Reply-To: <1426774626502-5842571.post@n5.nabble.com>
  References: <CAG2CW_JMDxxHJ8QTRQH0dUZQC2MLcjhUBRWcT4qcyCMUN1NHmw@mail.gmail.com> <1426774626502-5842571.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox