Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YYe3V-0001v2-2s for pgsql-odbc@arkaria.postgresql.org; Thu, 19 Mar 2015 17:16:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YYe3T-0003uK-Km for pgsql-odbc@arkaria.postgresql.org; Thu, 19 Mar 2015 17:16:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YYbG6-00016q-Vn for pgsql-odbc@postgresql.org; Thu, 19 Mar 2015 14:17:15 +0000 Received: from mwork.nabble.com ([162.253.133.43]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YYbG1-0004Ne-2L for pgsql-odbc@postgresql.org; Thu, 19 Mar 2015 14:17:13 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id 1066517E000E for ; Thu, 19 Mar 2015 07:17:19 -0700 (PDT) Date: Thu, 19 Mar 2015 07:17:06 -0700 (MST) From: Jacobo To: pgsql-odbc@postgresql.org Message-ID: <1426774626502-5842571.post@n5.nabble.com> In-Reply-To: References: Subject: Re: Is it possible to set psql connection parameters before an ODBC connection? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org 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-connection-tp5842291p5842571.html 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