pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bo Victor Thomsen <bo.victor.thomsen@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: productive usage of PostgreSQL with Windows Server
Date: Tue, 26 Jan 2021 14:01:11 +0100
Message-ID: <88c443fa-cb2b-3f59-5685-0ef841050ebd@gmail.com> (raw)
In-Reply-To: <AM0PR05MB60828507F7097170790AAF70E9BC0@AM0PR05MB6082.eurprd05.prod.outlook.com>
References: <AM0PR05MB60828507F7097170790AAF70E9BC0@AM0PR05MB6082.eurprd05.prod.outlook.com>

Hi Dirk -

I have installed and used a large number of Postgres installations on 
Windows for years. Mostly together with PostGIS using the combination as 
a really powerful and first-class data repository for spatial data.

Some points regarding the use of Postgres on a Windows platform.

  * Performance: On the same hardware and with similar setups, a Linux
    installation of Postgres will outperform a Windows ditto. Not by
    much, but it is measurable. On the other hand, it virtually
    impossible to get a Linux box inside a hard-core Windows enterprise
    organisation. So using Postgres on Windows is a reasonable
    compromise in those cases

  * Installation: I'm using the installation package from EnterpriseDB
    (https://www.enterprisedb.com/downloads/postgres-postgresql-downloads)
    . It works as a charm. I've used a number of other installers. All
    have been working at least adequately. So It is no problem
    installing Postgres on Windows.

  * Setup: Parameter-vise, the standard setup of Postgres out-of-the-box
    is *very* conservative - it can work on almost any Windows
    configuration. To get good performance, you have to change the
    Postgres setup parameters, especially regarding memory consumption.
    Postgres tuning is part science and part art. But one advise: If you
    a using some kind of guide for setup, then use the the *Linux*
    advice for memory setup. There is a lot of "advice" about not using
    "to much" shared memory on Windows compared to Linux. My experience
    - at least when using Postgres for spatial data - is you get a
    *significant* performance boost when Postgres gets enough memory on
    Windows to work with.

  * Security: As others in this thread has mentioned: You can emulate
    The SQLServer "integrated security" feature on Postgres running on a
    Windows server by using the SSPI security protocol. It integrates
    Postgres logon and security procedures into Active Directory, so
    users automatically gets Postgres privileges based on their Windows
    username without manually entering username/password when accessing
    Postgres. And this setup will endear you to both Windows users and
    administrators ;-)

  * Last: Postgres is really stable on Windows. I have very seldom
    experienced any significant trouble running Postgres on Windows. YMMV

Med venlig hilsen / Kind regards

Bo Victor Thomsen

Den 26-01-2021 kl. 12:20 skrev Dirk Krautschick:
>
> Hi,
>
> Please do not throw anything to me but I just want to ask if there is 
> a realistic
>
> recommendation for the productive usage of PostgreSQL with Windows. Or
>
> are there any references you may share regarding this.
>
> I am aware and I always surely recommend Linux but the matter of fact 
> that there
>
> are also customers with more Windows knowledge inhouse I always get 
> the question
>
> about experience and references which I cannot provide at this time.
>
> Regarding the build farm status I see that it is pretty much tested 
> and suppported at
>
> least. But I am interessted in fundational opinions and expierences.
>
> Thanks and cheers
>
> Dirk
>

view thread (6+ messages)  latest in thread

Message-ID: <88c443fa-cb2b-3f59-5685-0ef841050ebd@gmail.com>
Permalink:  ../88c443fa-cb2b-3f59-5685-0ef841050ebd@gmail.com/
Also on:    postgresql.org/message-id/88c443fa-cb2b-3f59-5685-0ef841050ebd@gmail.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: bo.victor.thomsen@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: productive usage of PostgreSQL with Windows Server
  In-Reply-To: <88c443fa-cb2b-3f59-5685-0ef841050ebd@gmail.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