Comments (6)
Taken care of with PR #23
from patroni.
Oh!
We can actually make this feature more smart and even make patroni compatible with postgresql < 9.3
- We should query major version in
Postgresql.__init__
- If version < 9.4 forcefully set
use_slots
to False - Get rid from
pg_xlog_location_diff
which exists only from 9.3 and use functionutils.lsn_to_bytes
(https://github.com/zalando/patroni/blob/master/helpers/utils.py#L45) instead. - Profit
from patroni.
Hmm, for postgres version < 9.3 formula is a little bit different...
Ok, will move this method into Postgresql and make it version-specific.
from patroni.
2
wont work for slaves...
We have to know in advance that version < 9.4 in order to create proper recovery.conf but without starting cluster it's not really possible to determine version.
But at least everything else is doable.
from patroni.
We don't care about supporting < 9.3 Here's why:
- Before 9.3, you couldn't remaster over streaming replication, making failover/failback and master change much more complicated.
- 9.3 was 2 years ago, and is the supported version in current stable Ubuntu, Debian, and Red Hat.
from patroni.
Ok, dropped unneeded code.
from patroni.
Related Issues (20)
- Unexpected state for replicatefrom after switchover HOT 2
- patroni-consul RPM requires consul package HOT 2
- 3.2.2 throwing unexpected exception HOT 7
- Feature request: Include replication state in Consul service tags HOT 1
- Infinite recursion in handling of replicatefrom tags HOT 3
- patroni_failsafe_mode_is_active prometheus metric always 0 HOT 3
- Unable to connect to external etcdv3 cluster with client TLS authentication (with CommonName in cert) HOT 1
- Cannot configure SSL for replication HOT 7
- wrong role in patronictl list
- Postgresql failed to start after deletion of postgresql.base.conf due to recursion HOT 5
- patroni.dcs.kubernetes.K8sClient.rest.ApiException: (401) HOT 4
- Reinit master with empty directory after data corruption HOT 1
- unreasonable ttl will cause all DCS connection raise [Errno 22] Invalid argument HOT 4
- ERROR: replication slot "bar_psqldb04" does not exist HOT 2
- Patroni overwrite synchronous_standby_names on primary in async mode
- Failsafe mode when master doesn't have access to DCS HOT 1
- TypeError: string argument without an encoding HOT 1
- Patroni Does Not Failover on Data Disk Full Shutdown HOT 3
- Missing cdiff in requirements HOT 2
- switchover pg cluster,but master not failover HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from patroni.