Skip to content

Commit 68ac0b4

Browse files
committed
README: Windows support in beta
1 parent 8f9ca4a commit 68ac0b4

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Regardless of the chosen backup type, all backups taken with `pg_probackup` supp
3939
`pg_probackup` currently has the following limitations:
4040
* Creating backups from a remote server is currently not supported.
4141
* The server from which the backup was taken and the restored server must be compatible by the [block_size](https://postgrespro.com/docs/postgresql/current/runtime-config-preset#GUC-BLOCK-SIZE) and [wal_block_size](https://postgrespro.com/docs/postgresql/current/runtime-config-preset#GUC-WAL-BLOCK-SIZE) parameters and have the same major release number.
42-
* Microsoft Windows operating system is not supported.
42+
* Microsoft Windows operating system support is in beta stage.
4343
* Configuration files outside of PostgreSQL data directory are not included into the backup and should be backed up separately.
4444

4545
## Installation and Setup
@@ -71,13 +71,28 @@ yum install pg_probackup-{11,10,9.6,9.5}
7171
yumdownloader --source pg_probackup-{11,10,9.6,9.5}
7272
```
7373

74+
Once you have `pg_probackup` installed, complete [the setup](https://postgrespro.com/docs/postgrespro/current/app-pgprobackup.html#pg-probackup-install-and-setup).
75+
76+
## Building from source
77+
### Linux
78+
7479
To compile `pg_probackup`, you must have a PostgreSQL installation and raw source tree. To install `pg_probackup`, execute this in the module's directory:
7580

7681
```shell
7782
make USE_PGXS=1 PG_CONFIG=<path_to_pg_config> top_srcdir=<path_to_PostgreSQL_source_tree>
7883
```
84+
### Windows
7985

80-
Once you have `pg_probackup` installed, complete [the setup](https://postgrespro.com/docs/postgrespro/current/app-pgprobackup.html#pg-probackup-install-and-setup).
86+
Currently pg_probackup can be build using only MSVC 2013.
87+
Build PostgreSQL using [pgwininstall](https://github.com/postgrespro/pgwininstall) or [PostgreSQL instruction](https://www.postgresql.org/docs/10/install-windows-full.html) with MSVC 2013.
88+
If zlib support is needed, src/tools/msvc/config.pl must contain path to directory with compiled zlib. [Example](https://gist.githubusercontent.com/gsmol/80989f976ce9584824ae3b1bfb00bd87/raw/240032950d4ac4801a79625dd00c8f5d4ed1180c/gistfile1.txt)
89+
90+
```shell
91+
CALL "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall" amd64
92+
SET PATH=%PATH%;C:\Perl64\bin
93+
SET PATH=%PATH%;C:\msys64\usr\bin
94+
gen_probackup_project.pl C:\path_to_postgresql_source_tree
95+
```
8196

8297
## Documentation
8398

0 commit comments

Comments
 (0)