diff --git a/configure b/configure
index 3cbb2f25e5228ebdb9dc8bd269bb58f1b896e126..fdb2fb53cfe3937884ddb2a2b77af814d33d6240 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for PostgreSQL 9.5.16.
+# Generated by GNU Autoconf 2.69 for PostgreSQL 9.5.17.
 #
 # Report bugs to <pgsql-bugs@postgresql.org>.
 #
@@ -582,8 +582,8 @@ MAKEFLAGS=
 # Identity of this package.
 PACKAGE_NAME='PostgreSQL'
 PACKAGE_TARNAME='postgresql'
-PACKAGE_VERSION='9.5.16'
-PACKAGE_STRING='PostgreSQL 9.5.16'
+PACKAGE_VERSION='9.5.17'
+PACKAGE_STRING='PostgreSQL 9.5.17'
 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
 PACKAGE_URL=''
 
@@ -1399,7 +1399,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures PostgreSQL 9.5.16 to adapt to many kinds of systems.
+\`configure' configures PostgreSQL 9.5.17 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1464,7 +1464,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of PostgreSQL 9.5.16:";;
+     short | recursive ) echo "Configuration of PostgreSQL 9.5.17:";;
    esac
   cat <<\_ACEOF
 
@@ -1614,7 +1614,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-PostgreSQL configure 9.5.16
+PostgreSQL configure 9.5.17
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2329,7 +2329,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by PostgreSQL $as_me 9.5.16, which was
+It was created by PostgreSQL $as_me 9.5.17, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -16849,7 +16849,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by PostgreSQL $as_me 9.5.16, which was
+This file was extended by PostgreSQL $as_me 9.5.17, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -16919,7 +16919,7 @@ _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-PostgreSQL config.status 9.5.16
+PostgreSQL config.status 9.5.17
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff --git a/configure.in b/configure.in
index 02edf0445efec1933ed4c72fb5b700db1ba62f7d..d35b9086517b868d10095cfe312b048f20b4404b 100644
--- a/configure.in
+++ b/configure.in
@@ -17,7 +17,7 @@ dnl Read the Autoconf manual for details.
 dnl
 m4_pattern_forbid(^PGAC_)dnl to catch undefined macros
 
-AC_INIT([PostgreSQL], [9.5.16], [pgsql-bugs@postgresql.org])
+AC_INIT([PostgreSQL], [9.5.17], [pgsql-bugs@postgresql.org])
 
 m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required.
 Untested combinations of 'autoconf' and PostgreSQL versions are not
diff --git a/doc/bug.template b/doc/bug.template
index 9c9be37a3e327c9976cf76d437506821e33f3928..1fa18f88209d07f464cd589915f6d45048bffc42 100644
--- a/doc/bug.template
+++ b/doc/bug.template
@@ -27,7 +27,7 @@ System Configuration:
 
   Operating System (example: Linux 2.4.18)	:
 
-  PostgreSQL version (example: PostgreSQL 9.5.16):  PostgreSQL 9.5.16
+  PostgreSQL version (example: PostgreSQL 9.5.17):  PostgreSQL 9.5.17
 
   Compiler used (example: gcc 3.3.5)		:
 
diff --git a/src/include/pg_config.h.win32 b/src/include/pg_config.h.win32
index 64252f668efa5e644dfe3409ed048977ebf5848e..042e077dddfb59031f780b7c415c8032d7084ff3 100644
--- a/src/include/pg_config.h.win32
+++ b/src/include/pg_config.h.win32
@@ -588,10 +588,10 @@
 #define PACKAGE_NAME "PostgreSQL"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "PostgreSQL 9.5.16"
+#define PACKAGE_STRING "PostgreSQL 9.5.17"
 
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "9.5.16"
+#define PACKAGE_VERSION "9.5.17"
 
 /* Define to the name of a signed 128-bit integer type. */
 #undef PG_INT128_TYPE
@@ -600,10 +600,10 @@
 #define PG_INT64_TYPE long long int
 
 /* PostgreSQL version as a string */
-#define PG_VERSION "9.5.16"
+#define PG_VERSION "9.5.17"
 
 /* PostgreSQL version as a number */
-#define PG_VERSION_NUM 90516
+#define PG_VERSION_NUM 90517
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "postgresql"
diff --git a/src/interfaces/libpq/libpq.rc.in b/src/interfaces/libpq/libpq.rc.in
index 09c0fd0345e227fa0fee94f0f9bff6a04d2d7d78..30384c2693a0619e585fbe0c827b80386c1e36a4 100644
--- a/src/interfaces/libpq/libpq.rc.in
+++ b/src/interfaces/libpq/libpq.rc.in
@@ -1,8 +1,8 @@
 #include <winver.h>
 
 VS_VERSION_INFO VERSIONINFO
- FILEVERSION 9,5,16,0
- PRODUCTVERSION 9,5,16,0
+ FILEVERSION 9,5,17,0
+ PRODUCTVERSION 9,5,17,0
  FILEFLAGSMASK 0x3fL
  FILEFLAGS 0
  FILEOS VOS__WINDOWS32
@@ -15,13 +15,13 @@ BEGIN
         BEGIN
             VALUE "CompanyName", "\0"
             VALUE "FileDescription", "PostgreSQL Access Library\0"
-            VALUE "FileVersion", "9.5.16\0"
+            VALUE "FileVersion", "9.5.17\0"
             VALUE "InternalName", "libpq\0"
             VALUE "LegalCopyright", "Copyright (C) 2015\0"
             VALUE "LegalTrademarks", "\0"
             VALUE "OriginalFilename", "libpq.dll\0"
             VALUE "ProductName", "PostgreSQL\0"
-            VALUE "ProductVersion", "9.5.16\0"
+            VALUE "ProductVersion", "9.5.17\0"
         END
     END
     BLOCK "VarFileInfo"
diff --git a/src/port/win32ver.rc b/src/port/win32ver.rc
index 7d4109509ecc497f537b2013f1e8f925dfd4f10a..7be266499ab19dfd441ab9aea20516c4b704f216 100644
--- a/src/port/win32ver.rc
+++ b/src/port/win32ver.rc
@@ -2,8 +2,8 @@
 #include "pg_config.h"
 
 VS_VERSION_INFO VERSIONINFO
- FILEVERSION    9,5,16,0
- PRODUCTVERSION 9,5,16,0
+ FILEVERSION    9,5,17,0
+ PRODUCTVERSION 9,5,17,0
  FILEFLAGSMASK  0x17L
  FILEFLAGS      0x0L
  FILEOS         VOS_NT_WINDOWS32