Re: [PATCH] pgweb: Add SEARCH_DSN to example settings.py

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Célestin Matte <celestin(dot)matte(at)cmatte(dot)me>
Cc: PostgreSQL WWW <pgsql-www(at)lists(dot)postgresql(dot)org>
Subject: Re: [PATCH] pgweb: Add SEARCH_DSN to example settings.py
Date: 2022-01-19 22:30:08
Message-ID: CABUevEy0y4vM77A_hbn8YXA6DpLx7dtbvsT+D_13gASbJNjizg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

On Wed, Jan 19, 2022 at 3:30 PM Célestin Matte <celestin(dot)matte(at)cmatte(dot)me> wrote:
>
> 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?

Yeah, indeed that was forgotten.

Patch now conflicted with your own patch for archives frontend
address. I adjusted it for that and applied. Thanks!

--
Magnus Hagander
Me: https://www.hagander.net/
Work: https://www.redpill-linpro.com/

In response to

Browse pgsql-www by date

  From Date Subject
Next Message Ilaria Battiston 2022-01-20 19:42:36 GSoC 2022 [-www]
Previous Message Magnus Hagander 2022-01-19 22:26:00 Re: [PATCH] Fix typo in an unsubscribe-related message