Questions tagged [postgresql-cluster]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

Data migration between postgresql-9 and postgresql-11 [closed]

What is the best way to migrate postgres-9 database with size of hundreds GB to postgres-11 ? I'm afraid that third party tools will take too long to do this.
0 votes
1 answer
64 views

How to catch the error output in shell when error code is not enough?

I came across the script with if-else branch with a particular command succeed or not like this: pg_ctl -D /var/lib/pgsql/data -w promote if [ $? -ne 0 ]; then echo: failure exit 1 else echo: ...
0 votes
1 answer
1k views

Patroni Haproxy and pg-bouncer architecture

I'm building a patroni postgres cluster, however, I can't decide which is better architecture App > HAproxy > Pgbouncer > PostgreSQL (patroni) App > PGBouncer > HAproxy > PostgreSQL (...
0 votes
1 answer
2k views

HAProxy and postgres

My haproxy configuration is as below, in the backend there is pg_autoctl cluster, another VM (bunty4) hosts the monitor and haproxy is installed on it. global maxconn 100 defaults log global ...
0 votes
1 answer
593 views

Which command to restart postgresql 12 service

I am about to restart postgresql 12 service running on Ubuntu 18. First, I check it's status : sudo service postgresql status. Its says : postgresql.service - PostgreSQL RDBMS Loaded: loaded (/lib/...
0 votes
0 answers
1k views

gvmd service not starting after postgresql replication - openvas

I deployed two openvas servers on two distinct VMs (Debian 10) with postgresql version 11. I replicated the postgres 11 using with hot standby configuration, the data is getting replicated but after ...
0 votes
0 answers
1k views

How to switch standby to master on postgresql 13?

For High Availability on DB was build Active-Standby(replica) cluster on Postgresql-13. Inserting data correctly transfer to 'replica' server, it is ok. Now, I want check case, how i can make change ...
1 vote
1 answer
4k views

Patroni Postgres Cluster, what does 'TL' mean in the output of 'patronictl list'

Executing. patronictl list Produces + Cluster: psql-core03-uat-kong (6867488892458676291) ------+----+-----------+ | Member | Host | Role | State | TL | Lag in MB | +-----...
1 vote
0 answers
508 views

How to setup/make Haproxy send read-write request based on REST method

How to setup/make Haproxy send read-write request coming on same port 5432 from application, to backend servers of postgres-patroni cluster based on REST method. I have three node postgres-patroni ...
1 vote
1 answer
711 views

pg_upgradecluster fails with "Error: could not get cluster locales"

I'm trying to upgrade postgres cluster from 9.5 to 10 Steps I did: installed postgresql-10 and postgresql-client-10 removed new default 10 main cluster used command "pg_upgradecluster 9.5 main" ...
0 votes
1 answer
611 views

pgpool watchdog and too many masters

I am trying to deploy pgpool in native replication mode with watchdog to manage 2 nodes for Active-Standby. When I start pgpool2 on both servers, they each claim to be the only node alive and become ...
0 votes
1 answer
2k views

Migrate data from postgresql 8.4 to postgresql 9.4 in 2 different servers

I have a problem with postgresql as below: I have a server CentOS 5.9 install postgresql 8.4. It is running for my production and Data Size = 300 GB. At the moment, I need migrate all data in ...
1 vote
1 answer
833 views

pg_upgradecluster to specific version? ( more than 2 version )

Theres a way to upgrade a cluster of postgreSQL to specific version?. An example: I have a 9.4.17 - 9.6.8 and 10.3 The 10.3 has cluster on The 9.4.17 has cluster on I need upgrade the 9.4.17 to 9....
4 votes
0 answers
5k views

Postgresql 9.4 clusters not auto starting on Debian

I have Debian 8.2 x64 and Postgresql 9.4 (from repo). I've recreated default cluster in different location like this: # service postgresql stop # pg_dropcluster 9.4 main # pg_createcluster -d /srv/...
1 vote
1 answer
11k views

PostgreSQL failed to start, pg_log shows nothing, what to do?

I've just setup PostgreSQL (9.3) as a replication to another server. When I started it with service postgresql-9.3 start, it reported [FAILED] without any further explanation. I don't see any thing ...
0 votes
1 answer
612 views

PostgreSQL installation under debian

I'm trying to install PostgreSQL server on a server running debian8. I installed the package postgresql-9.5 with apt, but it seems like there are missing programs. I tried to create a cluster but ...
2 votes
0 answers
722 views

How to automate failover of master in PostgreSQL 9.5 on Windows?

I have 4 nodes (version - PostgreSQL 9.5 Beta) in a slot replication set up. Recently the master node, due to less disk space available, PostgreSQL started throwing errors and crashed in the end. As I ...
3 votes
1 answer
2k views

Changing tablespace on table with streaming replication

I've been searching for answers for a while know but can't find any reliable source. We have 2 postgres servers that replicates using streaming replication. I now need to move some tables to a ...