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 1jZKug-0002MB-DL for pgsql-hackers@arkaria.postgresql.org; Thu, 14 May 2020 20:57:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZKuf-0002pL-58 for pgsql-hackers@arkaria.postgresql.org; Thu, 14 May 2020 20:57:05 +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 1jZKue-0002kh-Qa for pgsql-hackers@lists.postgresql.org; Thu, 14 May 2020 20:57:04 +0000 Received: from mail-qv1-xf42.google.com ([2607:f8b0:4864:20::f42]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jZKuY-0004Jb-6N for pgsql-hackers@lists.postgresql.org; Thu, 14 May 2020 20:57:03 +0000 Received: by mail-qv1-xf42.google.com with SMTP id l3so18097qvo.7 for ; Thu, 14 May 2020 13:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=MSivzYALR4u1J4bnHNBwQSuy8UQU4cbywNz7KGybjYM=; b=bTgr8TxZF49a1/dF+eAQHYCmy5CmSXsJ0jFMI6wPJXUITdFvfUQfxgks1XEuDdWhim TbraffQlHRTyGLllyHXA7O2WhOMnWb4vvEWU7GWT00XZGUwb8RdKBbHGPZJllpodYKb/ FS57RZAcYrSPVsh8Ow2KlwOlO7UwesiSHwKh/pohZeUxpOWl99sAYkbtzqWSW2E8hA6L bFozgDe3OKZcxepr2LpejGXkmAadDLQ84kki4ibBHb3TJ2pOtQmvSbym81x6byqOZstN TbTaYLC4ik7/b2AUdzFA+Z8qnxph9nxLNBeWMrZROU3tEzJut+TjUjEFT6zHmur+IsSt ZO/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=MSivzYALR4u1J4bnHNBwQSuy8UQU4cbywNz7KGybjYM=; b=SCm1oclCxorREMttOwx4blclcm8quFwQvtC3Pt0pBSz6oPqhCzLoiYDGczQji9Gy5g 1QO+7V+/qQFaDhH2hFp5qEp8HE2+wdmk84QVYtotve4tRSA/LypvY5xcfTwN0q/wZx71 r71uv8jKPd7FzEWaWUeQ5cgOJblSlBoygAf5Rlb1qUStvxMErkbzzwifmD1AW5FOm6SO ZfQuuy9zzClglCU5fH4x0ehxNt7k2wYIGG8vppwf/N8YaITWlLBZGVThuiypyZQ1BAtS 44ge+ZDggqA3tbS+3/rBzVdpOnQaBiqmaHbq1im6JSbjIGul+QDSJc2FsulrWHzCYhe+ WJTQ== X-Gm-Message-State: AOAM530GsRW38Pi0lWvHZnfIZ6f61MwH0Jq7VpBmXjivKEv0Vfdt2i6R f5eanfjX52E3pEbku5nUZgXIqQ== X-Google-Smtp-Source: ABdhPJxv4+58A1xG6OC63LXdF+qwEvLiMmAxnJH6gtkZHR2vPQQVJg3bgg4vy0XJYSfYVBYmTyz7aQ== X-Received: by 2002:a05:6214:1491:: with SMTP id bn17mr384963qvb.138.1589489817299; Thu, 14 May 2020 13:56:57 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id v144sm40013qka.69.2020.05.14.13.56.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2020 13:56:56 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 4CE1A30069A; Thu, 14 May 2020 16:56:54 -0400 (-04) Date: Thu, 14 May 2020 16:56:54 -0400 From: Alvaro Herrera To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org, Isaac Morland , Robert Haas Subject: Re: Our naming of wait events is a disaster. Message-ID: <20200514205654.GA24219@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1261.1589488034@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-May-14, Tom Lane wrote: > A case could be made for doing s/async/notify/ more widely in async.c; > for instance it's odd that the struct protected by NotifyQueueLock > didn't get renamed to NotifyQueueControl. But that seems a bit out > of scope for the immediate problem, and anyway I'm not sure how far to > take it. I don't really want to rename async.c's externally-visible > functions, for instance. For the moment I just renamed symbols used > in the SimpleLruInit() call. That approach seems fine -- we'd only rename those things if and when we modified them for other reasons; and the file itself, probably not at all. Much like our renaming of XLOG to WAL, we changed the user-visible term all at once, but the code kept the original names until changed. Maybe in N years, when the SCM tooling is much better (so that it doesn't get confused by us having renamed the file in the newer branches and back-patching to an older branch), we can rename xlog.c to wal.c and async.c to notify.c. Or maybe not. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services