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 1qPR30-00B0t3-FM for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Jul 2023 17:14:38 +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 1qPR2x-00HSqm-V4 for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Jul 2023 17:14:35 +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 1qPR2x-00HSoJ-JF for pgsql-hackers@lists.postgresql.org; Fri, 28 Jul 2023 17:14:35 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qPR2v-0024g4-0z for pgsql-hackers@postgresql.org; Fri, 28 Jul 2023 17:14:34 +0000 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1b8b4749013so18173325ad.2 for ; Fri, 28 Jul 2023 10:14:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690564472; x=1691169272; 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=cUbp4u8bXN4SRMhSVg/V8d/C7KFB3Mcy7z9SlRsjyOs=; b=aWG2ga9KZSaJ4LyXxnvZn6CLXdZMgRzrGKugAXtfvCEcoP/FThBl22JCkkIJAdqhaC m1Pe3rXRDTmRuQ7Q4kQHEub8hrclJtI71Lb8cc96jK4CC+SJVbKt4VouoAcS1d8iqaUg /Hd0KoRpXMECwd2SXwwHzpsSodnWi01G179YJuUUkr04xqT4SFsHAUmfpHTiS5u4Mrko uP/mHVIA4pgSs4BZuXm7kMgYm6IKVcsi2qATSQGpIZuruGCLQP+659O5DsVyNDIeP37L T25PXFLRarCnLEruXqa37I5R47ddnD8KKRvPd2rPCflSvV6PdnRDcZwiRlWl53o/xUNG sTRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690564472; x=1691169272; 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=cUbp4u8bXN4SRMhSVg/V8d/C7KFB3Mcy7z9SlRsjyOs=; b=gabrM2rV4NN+6Zy655Bq18ZXmrHVPHMaraZshHmM43dyRnt5pIBami350e6cSR7AFG MjQ0UZugM+reaGOK8vWJkyRyt8GskyCm2719OTRbdIBMR8/f1MPpxkBywhkjMakZ41yU y94n1GyjPk49U9JiT6EGc0ffhAoI2U2bKdidx/KguUhVnJ+nPLxDHSpD7FNRy7Njt2Ww vcXcTdoBlH3a7E6iv2faBMIs7wuHlry376DmT8kUMgbVpqVpJe8v0VSzaEpNCd3QIwyW BmRi5GPZIcVO7BLr3tKdEDhabsXNhHxhevZLE6oUZe2/KXSwMxuq5JN4cXlELup/84ce MQzQ== X-Gm-Message-State: ABy/qLbUH82+8DWnn4+S20oOz2FKNC/i+t6PMLoXWceTLJH9ZYnOK7qT sbUluxUMBnV2oP8zYCR3XnI= X-Google-Smtp-Source: APBJJlE6bBT0tJrbaK47VaEd4GfI8k6CiLAm8vIRqRrEwBgOuMs9O2epUsa1Bt87u4d7oLdk23n57A== X-Received: by 2002:a17:902:7602:b0:1b8:9461:6729 with SMTP id k2-20020a170902760200b001b894616729mr2303218pll.2.1690564471729; Fri, 28 Jul 2023 10:14:31 -0700 (PDT) Received: from nathanxps13 ([50.47.162.83]) by smtp.gmail.com with ESMTPSA id t14-20020a1709028c8e00b001b8062c1db3sm3839471plo.82.2023.07.28.10.14.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 10:14:31 -0700 (PDT) Date: Fri, 28 Jul 2023 10:14:29 -0700 From: Nathan Bossart To: Gurjeet Singh Cc: pgsql-hackers@postgresql.org, tgl@sss.pgh.pa.us Subject: Re: harmonize password reuse in vacuumdb, clusterdb, and reindexdb Message-ID: <20230728171429.GA3764457@nathanxps13> References: <20230628045741.GA1813397@nathanxps13> <20230629052409.GB2049807@nathanxps13> <20230719174311.GA1186744@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230719174311.GA1186744@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jul 19, 2023 at 10:43:11AM -0700, Nathan Bossart wrote: > On Wed, Jun 28, 2023 at 10:24:09PM -0700, Nathan Bossart wrote: >> The same commit that added this comment (ff402ae) also set the >> allow_password_reuse parameter to true in vacuumdb's connectDatabase() >> calls. I found a message from the corresponding thread that provides some >> additional detail [0]. I wonder if this comment should instead recommend >> against using the allow_password_reuse flag unless reconnecting to the same >> host/port/user target. Connecting to different databases with the same >> host/port/user information seems okay. Maybe I am missing something... > > I added Tom here since it looks like he was the original author of this > comment. Tom, do you have any concerns with updating the comment for > connectDatabase() in src/fe_utils/connect_utils.c like this? I went ahead and committed this. I'm happy to revisit if there are concerns. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com