21 Commits

Author SHA1 Message Date
Jack Christensen
7da69cd3db Restructure *Rows.Values() to use Get() 2017-03-11 20:07:31 -06:00
Jack Christensen
6c26c3a4a3 Improve replication test reliability
It was failing intermittently when run concurrently.
2017-03-11 11:17:51 -06:00
Jack Christensen
5702f34407 Fix replication with context
The normal connection context timeout cancels the current query. That isn't
appropriate for a replication connection.
2017-03-05 14:00:38 -06:00
Jack Christensen
c540b65edf Fix leaked contexts 2017-02-16 18:11:30 -06:00
Jack Christensen
11b82b3ca4 msgReader implemented in terms of ChunkReader
This should substantially reduce memory allocations and memory copies.

It also means that PostgreSQL messages are always entirely buffered in memory
before processing begins. This simplifies the message processing code.

In particular, Conn.WaitForNotification is dramatically simplified by this
change.
2017-02-13 20:45:42 -06:00
Kris Wehner
be5a9a0aff Clean shutdown after the flush lsn check 2017-01-30 14:12:12 -08:00
Kris Wehner
76ac06083e Dont test when you dont have a config 2017-01-30 13:55:18 -08:00
Kris Wehner
86fef0e5d7 go fmt 2017-01-30 11:37:07 -08:00
Kris Wehner
1424fb2b42 Add IdentifySystem and TimelineHistory functions, and tighten up the testing 2017-01-30 11:35:48 -08:00
Kris Wehner
41d9c0f338 Add tests for replication slot drop, and go fmt 2017-01-26 18:24:21 -08:00
Kris Wehner
b2f416c07d Drop replication slot has to run on a live connection, so we'll use the function form for the test. 2017-01-09 14:27:34 -08:00
Kris Wehner
af01afca00 Add the drop replication slot functionality 2017-01-09 14:19:08 -08:00
Kris Wehner
c88c110169 ReplicationConn refactor 2017-01-09 11:32:02 -08:00
Kris Wehner
d9a80caaad The naming really matters 2017-01-05 12:50:42 -08:00
Kris Wehner
69852595d8 Properly make the replication tests skippable on 9.5 and below 2017-01-05 10:25:48 -08:00
Kris Wehner
cf225c8365 Add the ability to set all the fields in the constructor 2017-01-03 13:56:34 -08:00
Kris Wehner
dad2c383af Start replication now wraps the sql and returns errors properly 2017-01-03 11:49:13 -08:00
Kris Wehner
2b096a7d08 It should all be unsigned. 2016-12-08 15:26:44 -08:00
Kris Wehner
14497e4c65 Capitalization 2016-12-07 21:19:58 -08:00
Kris Wehner
edbd30ea6a Add replication stop mechanism 2016-12-06 15:44:37 -08:00
Kris Wehner
7bbb1c7307 Add basic logical replication protocol support 2016-12-04 21:35:22 -08:00