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 1rLdTK-0099Er-1D for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jan 2024 06:14:22 +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 1rLdTI-000qAc-Iq for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jan 2024 06:14:20 +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 1rLdTI-000q7z-9Q for pgsql-hackers@lists.postgresql.org; Fri, 05 Jan 2024 06:14:20 +0000 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rLdTF-00DoUt-OJ for pgsql-hackers@postgresql.org; Fri, 05 Jan 2024 06:14:19 +0000 Received: by mail-io1-xd30.google.com with SMTP id ca18e2360f4ac-7ba7c845e1aso54389439f.2 for ; Thu, 04 Jan 2024 22:14:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704435257; x=1705040057; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=k3biF4FPfw5PvV0Wx/r05sR5pPA2/gxaK/rFNtc9PNk=; b=cEzhEI5LVsKOlrVWvG8glE+MoRIMscyQcSgEWwav5voW5dwSi1sySfUj2qhYCGqrvL 6ddnec/v0TzJFgZdLfvYGCiYwmQOYI11XPyOMKZgsvcDvktiRPeXEEwe8EV34m5tieW7 AsgcK6JZDpoORxDtGDwHImw74H/Q9nCq2edGiKibSk41Sp5E3SvtM1DirIL/LLA5Oc1n Ib3sqG1BVjMRkpBpCHVlek0zFwHUpXCkjvopFqqcgF+UfoLZUns6KPQFfcLxg5gruW9H HjL7M8aH3sdnY0fKzGYGkNCh1Xyt3mXumP5pReipwgt65QE4RXK1VSaKHN9ljJNp80GY Bfaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704435257; x=1705040057; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=k3biF4FPfw5PvV0Wx/r05sR5pPA2/gxaK/rFNtc9PNk=; b=NGFyMT6qwuJ88IQyUkxFV3QT1iJ/CvmVQABQGRvw03mHv3SSr2MFw6afE/So5Q1+ai DmBJm0+kjCHH7JXzgSoB4jdhgGB3q9xdzqYz/TKTgo6irOtJOx7jCugK9PBEfCKf58LD 9p76j6P7IONfF+8iKtbUyXxRykfLcT0ij2VLEp2NsP2Szz763Nhp+gjDrOQvqygS4m0o xy6wbUd77IgndyQVvE7IRTr/kfCJwMWY9c4mu7jDtEt0PJvSSCMZLLS1BPlw2xlmfg7x aNZfXRQeoygExl30KhKhPResTPZlEvWK8eMby4uilDknWyND/TmDnA3qFxLq4gBBqXYD MMvA== X-Gm-Message-State: AOJu0YwYTLMaUWyThgIf4qFDZUg3yMXWUi8gk3BK+7e8x361RfJwwo+M aCgXostAkORFmXC/aUqnILw= X-Google-Smtp-Source: AGHT+IEt6Q9Wmv1I6/I1GrzK1//R4MzLTFY3uxHuSVWv6xEg8Ksg9UdwiTnzBfcdqEvC4vIpsLsuLQ== X-Received: by 2002:a6b:6015:0:b0:7b7:fde0:ccfb with SMTP id r21-20020a6b6015000000b007b7fde0ccfbmr1861959iog.9.1704435257021; Thu, 04 Jan 2024 22:14:17 -0800 (PST) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id n10-20020a05663831ca00b0046df946c006sm264648jav.3.2024.01.04.22.14.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 22:14:16 -0800 (PST) Date: Fri, 5 Jan 2024 00:14:15 -0600 From: Nathan Bossart To: Michael Paquier Cc: Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: verify predefined LWLocks have entries in wait_event_names.txt Message-ID: <20240105061415.GA2167264@nathanxps13> References: <20240102173120.GA1061678@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jan 03, 2024 at 11:34:25AM +0900, Michael Paquier wrote: > On Tue, Jan 02, 2024 at 11:31:20AM -0600, Nathan Bossart wrote: >> +# Find the location of lwlocknames.h. >> +my $include_dir = $node->config_data('--includedir'); >> +my $lwlocknames_file = "$include_dir/server/storage/lwlocknames.h"; > > I am afraid that this is incorrect because an installation could > decide to install server-side headers in a different path than > $include/server/. Using --includedir-server would be the correct > answer, appending "storage/lwlocknames.h" to the path retrieved from > pg_config. Ah, good to know, thanks. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com