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 1nAJTE-0003a6-5m for pgsql-www@arkaria.postgresql.org; Wed, 19 Jan 2022 22:30:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nAJTD-0003pP-3M for pgsql-www@arkaria.postgresql.org; Wed, 19 Jan 2022 22:30:23 +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 1nAJTC-0003pG-Sy for pgsql-www@lists.postgresql.org; Wed, 19 Jan 2022 22:30:22 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nAJTA-0005l0-Dp for pgsql-www@lists.postgresql.org; Wed, 19 Jan 2022 22:30:22 +0000 Received: by mail-lf1-x131.google.com with SMTP id x7so14042789lfu.8 for ; Wed, 19 Jan 2022 14:30:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander-net.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=JSynINQE9mBs0+4U0KxnUneGqZnfiQTAOP8m5DP30Y4=; b=XQ41B9FNnU5zah+gYDKFx/3aUEQfsJ+owz3O5ETZOqG3Tya9VFxpjDgl5va22SH0cu P/Ip4KxLjRgs4pVO9LGm3x6Tp2lRJ/DfTTuylskRFsMthkk/Q6EKuokzLYSzkpMNyIZP z1jodOXy51fyEW7Bp+LeWadP2KBQe943NipmLUMpwbo+4yJ3QJkh0ZWd2N6i/giOTZeC /yOVfB5e4ra7xZyjnbG155MygILG0MBtSfbgN5vvPm4lUo9SeOxLxaT1j6rPNicBBdp4 WnG8WY3DpyBWZb5sR9AJ085okol57Q27jC3N+1iEmIbewCHNWephdbeN5ATosGDnBSqt 3VAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=JSynINQE9mBs0+4U0KxnUneGqZnfiQTAOP8m5DP30Y4=; b=q5R2EJVOYKBcLHmqgt5ZpFMUxyiPZ8t/DU+QkHuxCHsDB0csBGVJhZ7ujoK07hsGm5 mmd3V9RnpggnbG/VywpV8xVYVqnW07BrVMM6Jba7HBjFYGkLuMo8hZYKvkvm/q/VcnlZ EqGXeM3PPMduRchjUuVvK7W+Ew9nxwBaojJO77cnPx0MoXBFtqNTBNY/HNzdxs6P3gpj 0oTqCFN6BRM4X7zAe/KwIBx+oXgCahqrnJ2/rnSuzNiUEt1yHYjyQHn6Tz0K8AO3wTlL dKiWdEQBdcqPN/v+JYvCtoEw872oB1sXcQA9xchx8zccWFmrhQ7lHmIb1UhZi7gjDcpg Lo1A== X-Gm-Message-State: AOAM533NcDhyM8pFJrw54msQO5w7dQa3XyF8r2b2GJcIBgVe67Zk3t7q ErDvS2yI4SstUzZXqC5QA8Wn/GgtduVQVyhQFPM0ew== X-Google-Smtp-Source: ABdhPJxIZS3fg7NDRtSqvEBOGiNJH/jIEOuliTmMCojaFMAiWP9i4unusgIWy1/4ef/lvMQJwHoPdh73rPUFGkQIXZc= X-Received: by 2002:a05:651c:2106:: with SMTP id a6mr18253134ljq.98.1642631419671; Wed, 19 Jan 2022 14:30:19 -0800 (PST) MIME-Version: 1.0 References: <0d7d2e12-bdf9-8b7b-4b90-8380eeef7c16@postgresql.org> <0c0f0cff-513a-e2e5-8ff7-a8f1463e364d@cmatte.me> In-Reply-To: <0c0f0cff-513a-e2e5-8ff7-a8f1463e364d@cmatte.me> From: Magnus Hagander Date: Wed, 19 Jan 2022 23:30:08 +0100 Message-ID: Subject: Re: [PATCH] pgweb: Add SEARCH_DSN to example settings.py To: =?UTF-8?Q?C=C3=A9lestin_Matte?= Cc: PostgreSQL WWW Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jan 19, 2022 at 3:30 PM C=C3=A9lestin Matte wrote: > > Hi, > > I'm reviewing the patches I sent a few months ago and this short one seem= s to have been left mid-discussion. > > > I think having a default like in this patch is better. Otherwise it cou= ld randomly connect to a database with the same name as the user for exampl= e, 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? Yeah, indeed that was forgotten. Patch now conflicted with your own patch for archives frontend address. I adjusted it for that and applied. Thanks! --=20 Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/