mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 08:06:29 +00:00
Change query to use COUNT(*)
No point implying we're fetching the entire record
This commit is contained in:
@@ -1275,14 +1275,13 @@ check_node_configuration(void)
|
||||
char sqlquery[QUERY_STR_LEN];
|
||||
|
||||
/*
|
||||
* Check if we have my node information in repl_nodes
|
||||
* Check if this node has an entry in `repl_nodes`
|
||||
*/
|
||||
log_info(_("%s Checking node %d in cluster '%s'\n"),
|
||||
progname, local_options.node, local_options.cluster_name);
|
||||
|
||||
// ZZZ change to COUNT(*) ???
|
||||
sqlquery_snprintf(sqlquery,
|
||||
"SELECT * "
|
||||
"SELECT COUNT(*) "
|
||||
" FROM %s.repl_nodes "
|
||||
" WHERE id = %d "
|
||||
" AND cluster = '%s' ",
|
||||
|
||||
Reference in New Issue
Block a user