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 1nABzE-0000mM-Eu for pgsql-www@arkaria.postgresql.org; Wed, 19 Jan 2022 14:30:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nABzD-0007AC-2A for pgsql-www@arkaria.postgresql.org; Wed, 19 Jan 2022 14:30:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nABzC-0007A3-Qm for pgsql-www@lists.postgresql.org; Wed, 19 Jan 2022 14:30:54 +0000 Received: from host-213-189-163-85.dynamic.voo.be ([213.189.163.85] helo=ploudseeker.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nABzA-0001hs-KU for pgsql-www@lists.postgresql.org; Wed, 19 Jan 2022 14:30:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cmatte.me; s=myselector; t=1642602650; bh=1s9G2cL/INBo9RYq1sQ2fI0/0RhIhccyc1a3uNCG9W4=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=BJi+douTEn1ZVzwpkKMT2/hOSGomDnrL1Hxy6dyODmgWNLCLWZDotN2qayzoApBkn VxGSGg2jEvs7TbmCz6xZCVH9nw0z9A5JxmrFpM2GGSuEORvdR2q0nAWaffknzvikGB YGP0t840rtFzlUjyER2wnDahbZY/phb6my4o42WCwNjnxTvBLhKHXeAyvBmjSbsaRN s9LLs4C3PNnr/tFeyJjnyUfTcWB0wtvUt4RD/K64y9p2w1zGL9/R+ap+8qFvehf9pm EtXew7aIxutkDLxAtMZoF48/4xRojdnshCVdeZdz7bsnEiJzdXnb+xwhc44ekn0xgn JAjSMLTTFTB/w== Message-ID: <0c0f0cff-513a-e2e5-8ff7-a8f1463e364d@cmatte.me> Date: Wed, 19 Jan 2022 15:30:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: [PATCH] pgweb: Add SEARCH_DSN to example settings.py Content-Language: en-US To: Magnus Hagander Cc: PostgreSQL WWW References: <0d7d2e12-bdf9-8b7b-4b90-8380eeef7c16@postgresql.org> From: =?UTF-8?Q?C=c3=a9lestin_Matte?= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, I'm reviewing the patches I sent a few months ago and this short one seems to have been left mid-discussion. > I think having a default like in this patch is better. Otherwise it could randomly connect to a database with the same name as the user for example, which might actually happen in dev scenarios. So if we want it empty we'd also need to add code to check if it's set or not before trying to use it - seems easier to set the default and have it fail :) I guess it's OK as-is, then? -- Célestin Matte