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 1rS6oX-00BTJF-Im for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jan 2024 02:47:02 +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 1rS6oW-008Wbg-Pc for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jan 2024 02:47:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rS6oW-008WbY-G9 for pgsql-hackers@lists.postgresql.org; Tue, 23 Jan 2024 02:47:00 +0000 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rS6oT-003Dsn-Aj for pgsql-hackers@postgresql.org; Tue, 23 Jan 2024 02:46:59 +0000 Received: by mail-io1-xd30.google.com with SMTP id ca18e2360f4ac-7bed9fb159fso178701839f.1 for ; Mon, 22 Jan 2024 18:46:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705978015; x=1706582815; darn=postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=eaFwBucWvwUHVmnwT3uhzKrmmE2XV20n1LW2AJdJEIg=; b=O5eyVj0OzCNSd7TZfgEA6Op4kpXGrGmgkPJVpmSRBxIOm8p0WsINHy4zcRsBJHtERs f6rv0nqwXraMgwyxwhrmQfUMJOGiWo0yf7UZMAFYzIS9CkBrx+U4+PylFeyTQBofTEwV Cdv1tqRQOn5mA+ii7/+4MlaIAltE0nZN5k0S28JA3rqOGQbggafHuTmqv8lB6ck4iQNb v6hR+ytOU1gVNnLVpMKxPgvlxRueB6PHQ8exHq/B8iSD9c+oQJRuLazNwc43rYUs5hVO mYKaPWTJSNGOWnHH/i351sVB3STe3rd1f68mfk77tlIkq8tDMMXQMlDghtWV/7mEjziV i3nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705978015; x=1706582815; h=in-reply-to:content-transfer-encoding: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=eaFwBucWvwUHVmnwT3uhzKrmmE2XV20n1LW2AJdJEIg=; b=er+xBOPbZQ8FSVAfoFth4rlIWRCLgm9mxijA0AQzevj64BRMn+RFJhMyV32aasgQe4 4agsN9VnevMwW0XSTpOARQ2LHWe911VHoIoCjoujcYBBgjRHuFCsN2xlGF/SDcukzHt5 59FWVtPgH18PmMMVfsbRt8dMbgn8QugA3aMcMADePm1dWiDY+TtGz3G7CyizpK+0vASB bfl2nN4PJC9GC5bFCxlTGXRH7155R9wBail3INJufKmX6DfgkJHNs4pw8SBnYhWcI1Bp tGHC74GlVGuYjxlxZmtD/GwShRwPN7JGvJnTToypjuOby3u9l99Zln98KVXo8S1GUYCL dhvA== X-Gm-Message-State: AOJu0YzaTuOeS9epStN210TODd6UEnomcgm4FUBaaip86388ITXsXOGq PlsGV6ZU4gW5iWtNLgYdTUzO/ZGVLdUY4rA2hGV/4p7+UcKnrff7 X-Google-Smtp-Source: AGHT+IEZnCjRXKahkFPlkyxPc62P93VVICpfTVW4GcS6V3w9OnwbiQOlH3lBEldmrqocdUeXehrQVA== X-Received: by 2002:a05:6e02:52d:b0:361:a1fb:8b34 with SMTP id h13-20020a056e02052d00b00361a1fb8b34mr5998625ils.39.1705978014880; Mon, 22 Jan 2024 18:46:54 -0800 (PST) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id x11-20020a056e021cab00b00361b753bb2bsm2005762ill.45.2024.01.22.18.46.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 18:46:54 -0800 (PST) Date: Mon, 22 Jan 2024 20:46:52 -0600 From: Nathan Bossart To: Bharath Rupireddy Cc: Tom Lane , Abhijit Menon-Sen , Michael Paquier , Robert Haas , pgsql-hackers@postgresql.org Subject: Re: introduce dynamic shared memory registry Message-ID: <20240123024652.GA2251765@nathanxps13> References: <20240112194555.GA3804945@nathanxps13> <20240113214124.GA4162765@nathanxps13> <20240116160748.GB100542@nathanxps13> <20240119204636.GA1178173@nathanxps13> <3348869.1705854106@sss.pgh.pa.us> <20240121221320.GA1682397@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Jan 22, 2024 at 05:00:48PM +0530, Bharath Rupireddy wrote: > On Mon, Jan 22, 2024 at 3:43 AM Nathan Bossart wrote: >> Oops. I've attached an attempt at fixing this. I took the opportunity to >> clean up the surrounding code a bit. > > The code looks cleaner and readable with the patch. All the call sites > are taking care of dsm_attach returning NULL value. So, the attached > patch looks good to me. Committed. Thanks for the report and the reviews. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com