View Issue Details

IDProjectCategoryView StatusLast Update
0000801Pgpool-IIBugpublic2023-06-19 13:51
Reporteranukrish Assigned Topengbo  
PriorityhighSeveritymajorReproducibilityalways
Status feedbackResolutionopen 
Product Version4.2.6 
Summary0000801: show pool_nodes role column not getting updated on postgres faiover
Descriptionshow pool_nodes role not getting updated aftr postgrs failover

(lpp01rvcsqt502:postgres) $ psql -h 10.70.20.186 -p 9999 -U postgres -c "show pool_nodes"
 node_id | hostname | port | status | lb_weight | role | select_cnt | load_balance_node | replication_delay | replication_state
| replication_sync_state | last_status_change
---------+-------------------------+------+--------+-----------+---------+------------+-------------------+-------------------+-------------------
+------------------------+---------------------
 0 | lpp01rvcsqt502.lp.local | 5432 | up | 0.500000 | primary | 0 | false | 0 |
| | 2023-06-14 13:08:03
 1 | lpp02rvcsqt502.lp.local | 5432 | up | 0.500000 | standby | 0 | true | 0 |
| | 2023-06-14 13:08:03

(lpp01rvcsqt502:postgres) $ psql -x -c "select pg_is_in_recovery();"
-[ RECORD 1 ]-----+--
pg_is_in_recovery | t

the database is in standby mode but show pole node not reflecting the same.
TagsNo tags attached.

Activities

anukrish

2023-06-15 05:58

reporter   ~0004395

(lpp01rvcsqt502:postgres) $ pcp_node_info --verbose -h lpp01rvcsqt502.lp.local 0
Password:
Hostname : lpp01rvcsqt502.lp.local
Port : 5432
Status : 2
Weight : 0.500000
Status Name : up
Role : primary
Replication Delay : 0
Replication State :
Replication Sync State :
Last Status Change : 2023-06-14 13:08:03

pengbo

2023-06-15 08:50

developer   ~0004396

Last edited: 2023-06-15 08:51

> show pool_nodes role not getting updated aftr postgrs failover

How was the failover performed?
Did pgpool perform postgres failover?

anukrish

2023-06-17 05:19

reporter   ~0004397

manual failover not through pgpool

pengbo

2023-06-19 13:50

developer   ~0004399

Basically pgpool should manage the state of the PostgreSQL cluster and trigger failover.
Manual failover of PostgreSQL is not recommended.
To reset the status you need to restart pgpool.

If you want to perform failover manually, you need to enable health check to allow pgpool to detect the node failure.

Issue History

Date Modified Username Field Change
2023-06-15 05:56 anukrish New Issue
2023-06-15 05:58 anukrish Note Added: 0004395
2023-06-15 08:50 pengbo Note Added: 0004396
2023-06-15 08:50 pengbo Status new => feedback
2023-06-15 08:51 pengbo Note Edited: 0004396
2023-06-15 08:51 pengbo Note Edited: 0004396
2023-06-17 05:19 anukrish Note Added: 0004397
2023-06-17 05:19 anukrish Status feedback => new
2023-06-19 13:50 pengbo Note Added: 0004399
2023-06-19 13:51 pengbo Assigned To => pengbo
2023-06-19 13:51 pengbo Status new => feedback