Permalink
Browse files

Make replication docs use PREFER_QUERY_MODE (#761)

The follow prop must be set:

```
PGProperty.PREFER_QUERY_MODE.set(props, "simple");
```

on a replication connection to create replication slots. The
docs demonstrate this in the full example near the bottom of
the page but not at the top where it shows creating a slot
thru pgjdbc.

fixes #759
  • Loading branch information...
jpfuentes2 authored and davecramer committed Feb 23, 2017
1 parent 3e1eb34 commit bd0497dee741e92de1cc3eeabb58a82608ed6070
Showing with 1 addition and 0 deletions.
  1. +1 −0 docs/documentation/head/replication.md
@@ -98,6 +98,7 @@ execute SQL commands, and can only be used with replication API. This is a restr
PGProperty.PASSWORD.set(props, "postgres");
PGProperty.ASSUME_MIN_SERVER_VERSION.set(props, "9.4");
PGProperty.REPLICATION.set(props, "database");
PGProperty.PREFER_QUERY_MODE.set(props, "simple");
Connection con = DriverManager.getConnection(url, props);
PGConnection replConnection = con.unwrap(PGConnection.class);

0 comments on commit bd0497d

Please sign in to comment.