pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jacobo Sánchez López <jsanchez@denodo.com>
To: pgsql-odbc@lists.postgresql.org
Subject: Re: Connection / Login Timeout
Date: Thu, 17 Oct 2024 10:19:46 +0200
Message-ID: <6703f29a-1635-40bc-ab47-8d07e2979449@denodo.com> (raw)
In-Reply-To: <CADK3HH+eNBTQKoMR2QzcFYd1jzpzfrS0reMrsntr2J6AYiazkQ@mail.gmail.com>
References: <13244b1a-197f-4bcd-9565-089b2060d7d5@planit.com.br>
	<CADK3HH+eNBTQKoMR2QzcFYd1jzpzfrS0reMrsntr2J6AYiazkQ@mail.gmail.com>

That setting is on the ODBC API. You can set it using the 
SQLSetConnectAttr  API method (See 
https://learn.microsoft.com/en-us/sql/odbc/reference/syntax/sqlsetconnectattr-function)

As an example Power-BI does set it to 15 seconds by default, see the 
following ODBC trace fragment:

	ENTER SQLSetConnectAttrW
         SQLHDBC             0x00000000060673E0
         SQLINTEGER                 103 <SQL_ATTR_LOGIN_TIMEOUT>
         SQLPOINTER                15

AFAIK there is no url setting to configure it in the connection string

El 16/10/2024 a las 21:42, Dave Cramer escribió:
> Looks like in PGAPI_SetConnectOption
>
> https://github.com/postgresql-interfaces/psqlodbc/blob/c362d981c05014fed245f8c77de5cc642bd7d750/opti...
> Dave Cramer
> www.postgres.rocks
>
>
> On Wed, 16 Oct 2024 at 11:59, Administrativo <adm@planit.com.br> wrote:
>
>     Hi,
>
>     In the release documentation, version 08.02.0006 added support for
>     LOGIN_TIMEOUT , but how to configure this ?
>
>     It's possible to configure  throught the connection string ?
>
>     Thanks in advance.
>
>
>     Luiz
>
>
>

view thread (4+ messages)  latest in thread

Message-ID: <6703f29a-1635-40bc-ab47-8d07e2979449@denodo.com>
Permalink:  ../6703f29a-1635-40bc-ab47-8d07e2979449@denodo.com/
Also on:    postgresql.org/message-id/6703f29a-1635-40bc-ab47-8d07e2979449@denodo.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: Connection / Login Timeout
  In-Reply-To: <6703f29a-1635-40bc-ab47-8d07e2979449@denodo.com>
  References: <13244b1a-197f-4bcd-9565-089b2060d7d5@planit.com.br> <CADK3HH+eNBTQKoMR2QzcFYd1jzpzfrS0reMrsntr2J6AYiazkQ@mail.gmail.com> <6703f29a-1635-40bc-ab47-8d07e2979449@denodo.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