Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1so5xl-008G3R-5b for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Sep 2024 18:51:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1so5xk-000QLT-RL for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Sep 2024 18:51:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1so5xk-000QHO-HR for pgsql-hackers@lists.postgresql.org; Tue, 10 Sep 2024 18:51:40 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1so5xh-000VZ0-Hj for pgsql-hackers@postgresql.org; Tue, 10 Sep 2024 18:51:39 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a8d2daa2262so357719966b.1 for ; Tue, 10 Sep 2024 11:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725994296; x=1726599096; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=M9eqd4Uf4WKjlcza/tb6uf8wGZBHA9Dc0wWtow8+/YA=; b=bZWYUpx40+xXUMLM231nWVNhyJ4WSSlbO8FlhvCk7v+v/3/bWL5CFMPbP7KtiW6KGg zUQI4v60I/dC7Z5WefqVPIbEpN1h3TTjNdTVcZCVrnuz5kMBh7/R/Fqt52C3alX5kDTb bgNBEZPpv6tx6/QTOMCAFwJpXLK6o3s9JciBF7LfLWcbL68gGsYP8F5zhLUzPl/WTn0n Tlu0dmI1KTWVdTm8P4AdaUSWcnixlekzoSJrbiNBsFPwj4lALuHNtgQjBtPcHcqyuufb XpmNH1rQicNcAKvzrV7bj2PnVcW3U0TnbHMXT/LbxkdlpTE62lvoRDyCr5TlcnRnznhj WxqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725994296; x=1726599096; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M9eqd4Uf4WKjlcza/tb6uf8wGZBHA9Dc0wWtow8+/YA=; b=xDfw3KvnB3HBGYb3EdR+B7UWg2kl07rVq6SVxhO+md5qzmMVjFOQ+EAuh8H+5/8pJ1 TYtHVxTxZ4oYNVdDBk/WKp1wLoAELFSl00twasDMZEfI5X2JJ6UBtobR9nn32RX4Ir2K 2QGDQmNaFu0z77qZCLRFlchv7KHhfe7llDMeFiTupGnCGvjVd/tgNUFIAhNP6o5iTsYs JQxk7Yr7ciGISyyCjovcx8goN1iuS3L95Q6z0DAL1nJgeuKzRUes2++9Gz1o6IOVmGcs Y6l3cpnd3a8jFdUW9TQhCSqwj4GQTV4Eu83K7DQLXwsuzl3u5X3dJPTHC0SslttzuIFO /Rqw== X-Forwarded-Encrypted: i=1; AJvYcCX69nGYOrrCXoplo+3QcPO4V5Sv79ubsiWF1R333E1NAnQOYkNZuf0kl/Dm6UtWM3G8/AnohE+AqtZvjjRW@postgresql.org X-Gm-Message-State: AOJu0Yxeq2g2J9qIe1TGKN/eZEF3uVsxh9f5KK2f2vuzTJ1Cy5+mwUL9 JLEiaz7IEjEVIN8aWeNiexIHTRPYhbi9f25+8KyEewsZRJF4VgvxaTM0zW+4B9guLlI8dI1nuuv VxRVf5pCnsoJi1/nmCEY12tXADmM= X-Google-Smtp-Source: AGHT+IFJ/Y+RgLeJZ2si2l+O/OWgZt2Putt53gUwyg3bsCF2a59Ea9/i7OTcd3RC9dF04GsNkfuQfFhaaAIoqU5CNiA= X-Received: by 2002:a17:906:7949:b0:a86:7514:e646 with SMTP id a640c23a62f3a-a8ffadee012mr180338466b.42.1725994295546; Tue, 10 Sep 2024 11:51:35 -0700 (PDT) MIME-Version: 1.0 References: <20240630174812.d1.nmisch@google.com> <34cc0828-d988-4503-9944-ea6288f0ca8a@dunslane.net> <20240910172712.e8.nmisch@google.com> In-Reply-To: <20240910172712.e8.nmisch@google.com> From: Robert Haas Date: Tue, 10 Sep 2024 14:51:23 -0400 Message-ID: Subject: Re: [PATCH] pg_stat_activity: make slow/hanging authentication more visible To: Noah Misch Cc: Michael Paquier , Jacob Champion , Andrew Dunstan , PostgreSQL Hackers , Euler Taveira Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Sep 10, 2024 at 1:27=E2=80=AFPM Noah Misch wrot= e: > On Tue, Sep 10, 2024 at 02:29:57PM +0900, Michael Paquier wrote: > > You are adding twelve event points with only 5 > > new wait names. Couldn't it be better to have a one-one mapping > > instead, adding twelve entries in wait_event_names.txt? > > No, I think the patch's level of detail is better. One shouldn't expect = the > two ldap_simple_bind_s() calls to have different-enough performance > characteristics to justify exposing that level of detail to the DBA. > ldap_search_s() and InitializeLDAPConnection() differ more, but the DBA m= ostly > just needs to know the scale of their LDAP responsiveness problem. > > (Someday, it might be good to expose the file:line and/or backtrace assoc= iated > with a wait, like we do for ereport(). As a way to satisfy rare needs fo= r > more detail, I'd prefer that over giving every pgstat_report_wait_start()= a > different name.) I think unique names are a good idea. If a user doesn't care about the difference between sdgjsA and sdjgsB, they can easily ignore the trailing suffix, and IME, people typically do that without really stopping to think about it. If on the other hand the two are lumped together as sdjgs and a user needs to distinguish them, they can't. So I see unique names as having much more upside than downside. --=20 Robert Haas EDB: http://www.enterprisedb.com