pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org
Subject: Re: win32ver data in meson-built postgres.exe
Date: Wed, 7 Jun 2023 18:45:07 -0700
Message-ID: <20230608014507.GD1334487@rfd.leadboat.com> (raw)
In-Reply-To: <20230607234726.gqvydjl6qamoyq2k@awork3.anarazel.de>
References: <20230607231407.GC1334487@rfd.leadboat.com>
	<20230607234726.gqvydjl6qamoyq2k@awork3.anarazel.de>

On Wed, Jun 07, 2023 at 04:47:26PM -0700, Andres Freund wrote:
> On 2023-06-07 16:14:07 -0700, Noah Misch wrote:
> > A postgres.exe built with meson, ninja, and MSVC lacks the version metadata
> > that postgres.exe gets under non-meson build systems.  Patch attached.
> 
> I dimly recall that we discussed that and basically decided that it doesn't
> really make sense to attach this information to postgres.exe.

I looked for a discussion behind that, but I didn't find it.  A key
user-visible consequence is whether the task manager "Name" column shows (1)
"PostgreSQL Server" (version data present) vs. (2) "postgres.exe" (no version
data).  While (2) is not terrible, (1) is more typical on Windows.  I don't
see cause to migrate to (2) after N years of sending (1).  Certainly this part
of the user experience should not depend on one's choice of build system.

> >     This preserves two quirks of the older build systems.  First,
> >     postgres.exe is icon-free.
> 
> We could also just change that.

I would be +1 for that (only if done for all build systems).  Showing the
elephant in task manager feels better than showing the generic-exe icon.

> >     Second, the resources object is not an input
> >     to postgres.def.
> 
> I don't see what negative effects that could have:

Agreed.  I wrote that sentence for archaeologists of the future who might
wonder why this change didn't use generated_backend_sources.





view thread (6+ messages)  latest in thread

Message-ID: <20230608014507.GD1334487@rfd.leadboat.com>
Permalink:  ../20230608014507.GD1334487@rfd.leadboat.com/
Also on:    postgresql.org/message-id/20230608014507.GD1334487@rfd.leadboat.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: noah@leadboat.com, andres@anarazel.de
  Subject: Re: win32ver data in meson-built postgres.exe
  In-Reply-To: <20230608014507.GD1334487@rfd.leadboat.com>
  References: <20230607231407.GC1334487@rfd.leadboat.com> <20230607234726.gqvydjl6qamoyq2k@awork3.anarazel.de> <20230608014507.GD1334487@rfd.leadboat.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox