Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pI552-000191-Kc for pgsql-admin@arkaria.postgresql.org; Wed, 18 Jan 2023 09:50:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pI551-0007OR-Il for pgsql-admin@arkaria.postgresql.org; Wed, 18 Jan 2023 09:50:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pI551-0007Lo-4o for pgsql-admin@lists.postgresql.org; Wed, 18 Jan 2023 09:50:03 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pI54z-0005Xg-0B for pgsql-admin@postgresql.org; Wed, 18 Jan 2023 09:50:02 +0000 Received: by mail-ej1-x62a.google.com with SMTP id mp20so35237216ejc.7 for ; Wed, 18 Jan 2023 01:50:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=XIDz+SQV0nn/bKi1Ll0a/oYU2MP6c+xFYCL2GHDjBiM=; b=5LQMQPGU33gFRGLD0EwYKxLDqqor7HNJIW3W+ix5kWYIUHeQPE6iRp0pClhGtBYNY5 mV7QnLSgLlBzF+sMFgzN4iRALR+yTrqswi+aj0DQaRn7IU46N9OA1vLwFtkTpp8G8aiL fa7EZumJ01rZUi0rFbLgOQgJr/lkHfMCo9S/n/0b63dHgqCbAtnP5joz4zJZrr0fKbdD MVxogdrsSXvUhV07FczaBlXcsfPphs5DyJ5jsqkOnSMDJRD/LP0ZXkJrA0Cxxl+un0ZW 0S2/6KbqkXttmSAiHXMN89VG+UAgHxgBY8QBNNAyDy8NEFORPPK1C8vI4ivOW6itO5hP wN/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=XIDz+SQV0nn/bKi1Ll0a/oYU2MP6c+xFYCL2GHDjBiM=; b=fV6vBPL0aqBB79W+DRSnzd+LI9Wqw9kTjo7vBHopKpk+dEzDMGL+qh1jZRkTtwyIN3 zCCjIJwvarG10a2PFq//Wtmq6RwVhcoIR+kRLswaeixUN0Ebsk/q2E9idS34g1zZGR6H OD7vW7pyxeG3GHHb8HwSwm2tgqN0wim8GC69xFpDk53gwdegiLWfytpHlwLbr3kekYD3 RLQ+SWiMi1aye9aGurC6ceHaKu3B4m0kSKTXZaLqLNadAUAJ0jWmmJKa2RPuDOyglqyn GrRAiKklo7YFZWwnTLx6UBUXHZUMRhErslJIRfi34C3D1Jr6HmSVfYiimVtIkLtsi/Bn httw== X-Gm-Message-State: AFqh2kruW1xNyOF69L982KN9cD6ocGfOmJDSWnNoblxBQOleOHo2mpLe dgsW4mewMbQtFcyhlRMLaq4iIw== X-Google-Smtp-Source: AMrXdXsR2kKTuffC4BNMjGxDUy+zYx2eJRId7PZNJFRwJBRy4WOXwlb8R2FVtnw1PIuI9ZbWiinu9g== X-Received: by 2002:a17:906:514:b0:7c1:1ada:5e1e with SMTP id j20-20020a170906051400b007c11ada5e1emr6484698eja.26.1674035399531; Wed, 18 Jan 2023 01:49:59 -0800 (PST) Received: from dynamic-pd01.res.v6.highway.a1.net ([2001:871:5e:539:1b2c:c52a:475d:310c]) by smtp.gmail.com with ESMTPSA id 17-20020a170906059100b007933047f923sm14378532ejn.118.2023.01.18.01.49.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 01:49:59 -0800 (PST) Message-ID: Subject: Re: Connection Taking time to authentication of database From: Laurenz Albe To: Vivek Gadge , pgsql-admin@postgresql.org Date: Wed, 18 Jan 2023 10:49:57 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.3 (3.46.3-1.fc37) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 2023-01-17 at 23:02 +0530, Vivek Gadge wrote: > From few days I am facing an issue while connecting to PostgreSQL databas= e. > It took 20sec to make a connection from application=C2=A0 Currently I am = using > PostgreSQL v13.5. Could you please provide me some input on this. Before you investigate that with a network sniffer, see if you have "pre_auth_delay" or "post_auth_delay" set on the PostgreSQL server. Yours, Laurenz Albe