</screen>
your DTrace installation is too old to handle probes in static
functions. You need Solaris 10u4 or newer to use DTrace.
</para>
</sect3>
</sect2>
<sect2 id="installation-notes-visual-studio">
<title>Visual Studio</title>
<indexterm zone="installation-notes-visual-studio">
<primary>Visual Studio</primary>
<secondary>installation on</secondary>
</indexterm>
<para>
It is recommended that most users download the binary distribution for
Windows, available as a graphical installer package from the
<productname>PostgreSQL</productname> website at
<ulink url="https://www.postgresql.org/download/"></ulink>. Building from
source is only intended for people developing
<productname>PostgreSQL</productname> or extensions.
</para>
<para>
PostgreSQL for Windows with Visual Studio can be built using Meson, as
described in <xref linkend="install-meson"/>.
The native Windows port requires a 32 or 64-bit version of Windows
10 or later.
</para>
<para>
Native builds of <application>psql</application> don't support command
line editing. The <productname>Cygwin</productname> build does support
command line editing, so it should be used where psql is needed for
interactive use on <productname>Windows</productname>.
</para>
<para>
PostgreSQL can be built using the Visual C++ compiler suite from Microsoft.
These compilers can be either from <productname>Visual Studio</productname>,
<productname>Visual Studio Express</productname> or some versions of the
<productname>Microsoft Windows SDK</productname>. If you do not already have a
<productname>Visual Studio</productname> environment set up, the easiest
ways are to use the compilers from
<productname>Visual Studio 2022</productname> or those in the
<productname>Windows SDK 10</productname>, which are both free downloads
from Microsoft.
</para>
<para>
Both 32-bit and 64-bit builds are possible with the Microsoft Compiler suite.
32-bit PostgreSQL builds are possible with
<productname>Visual Studio 2015</productname> to
<productname>Visual Studio 2022</productname>,
as well as standalone Windows SDK releases 10 and above.
64-bit PostgreSQL builds are supported with
<productname>Microsoft Windows SDK</productname> version 10 and above or
<productname>Visual Studio 2015</productname> and above.
<!--
For 2015 requirements:
https://docs.microsoft.com/en-us/visualstudio/productinfo/vs2015-sysrequirements-vs
For 2017 requirements:
https://docs.microsoft.com/en-us/visualstudio/productinfo/vs2017-system-requirements-vs
For 2019 requirements:
https://docs.microsoft.com/en-us/visualstudio/releases/2019/system-requirements
For 2022 requirements:
https://docs.microsoft.com/en-us/visualstudio/releases/2022/system-requirements
-->
</para>
<para>
If your build environment doesn't ship with a supported version of the
<productname>Microsoft Windows SDK</productname> it is recommended
that you upgrade to the latest version (currently version 10), available
for download from <ulink url="https://www.microsoft.com/download"></ulink>.
</para>
<para>
You must always include the
<application>Windows Headers and Libraries</application> part of the SDK.
If you install a <productname>Windows SDK</productname>
including the <application>Visual C++ Compilers</application>,
you don't need <productname>Visual Studio</productname> to build.
Note that as of Version 8.0a the Windows SDK no longer ships with a
complete command-line build environment.
</para>
<sect3 id="windows-requirements">
<title>Requirements</title>
<para>
The following additional products are required to build
<productname>PostgreSQL</productname> on Windows.
<variablelist>
<varlistentry>
<term><productname>Strawberry