Managing a Cluster
Reviewing Log Files and Cluster Information

Reviewing Cluster Log Files

The pgEdge client and PostgreSQL maintain log files you can review for transactional details from your database cluster, while Spock provides functions and tables you can query for cluster configuration and status details.

Accessing Log Files

pgEdge log files are located in the pgedge/cluster_name/node_name/pgedge/data/logs directory under each node's pgEdge installation:

  • pgEdge client logs are stored in a file named cli_log.out. A pgEdge log file is maintained for each node of the cluster.
  • pgEdge PostgreSQL server logs are stored in the pgedge/cluster_name/node_name/pgedge/data/logs/pgxx subdirectory. If you have installed more than one version of PostgreSQL, you'll find a unique directory for each server. You can use the settings in the postgresql.conf file to control the content saved, the file rotation schedule, and other logged information.

The installer may modify the settings of the following PostgreSQL logging-related parameters:

NameValue
log_destination'csvlog, stderr'
log_directory/opt/pgedge/data/logs/pg16
log_filename'postgresql-%a.log'
log_file_mode0600
log_rotation_size1GB
log_min_messageswarning
log_min_error_statementerror
log_connectionson
log_disconnectionson
log_error_verbosityverbose
log_line_prefix'%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h'
log_statement'ddl'
log_temp_files1024
log_autovacuum_min_duration'0'
logging_collectoron
log_checkpointson
log_min_duration_statement1000
log_truncate_on_rotationon

Reviewing Information about your Cluster

Information about your pgEdge cluster is stored in the spock schema. You can retreive information about your configuration by querying the spock schema from a client, or by invoking pgedge commands at the command line.

Finding the Installed Version To find your installed version of pgEdge Platform, use the command:

./pgedge info

################################################################################
#     Version: pgEdge 25.0.0
# User & Host: ec2-user  ip-172-31-19-120.ec2.internal  /home/ec2-user/pgedge/cluster/demo/n1/pgedge
#          OS: Red Hat Enterprise Linux9.4 (Plow), glibc-2.34, Python 3.9.21 (py3.9-arm)
#     Machine: 7 GB, vCPU 2, Neoverse-N1
#  Cloud Info: aws  ec2  i-03f76bd5e8ba60184  t4g.large  us-east-1b
#    Repo URL: https://pgedge-devel.s3.amazonaws.com/REPO/stable/0601
# Last Update: 2025-06-02 15:18:13
################################################################################

List Nodes To list the nodes in your replication scenario, use the spock node-list (opens in a new tab)command; provide the database name when you invoke the command:

./pgedge spock node-list database_name

List Tables
To list the tables in your replication set, use the repset-list-tables (opens in a new tab) command; provide the schema name and the database name when you invoke the command:

./pgedge spock repset-list-tables schema_name database_name

Display Subscription Status To display the subscription status, use the sub-show-status (opens in a new tab) command; provide the subscription name and the database name when you invoke the command:

./pgedge spock sub-show-status subscription_name database_name

Spock Schema Tables The following table describes tables that reside in the spock schema that you can query for information about the cluster.

NameDescription
dependInternal use - for tracking dependencies between Spock objects.
exception_logRecords errors caused by replication conflicts or unhandled exceptions.
exception_statusUsed by ACE to track exception handling status at transaction and per-row level.
exception_status_detailUsed by ACE to track exception handling status at transaction and per-row level.
nodeThis table contains information about your replication nodes.
node_interfaceThis table contains information about your defined node interfaces.
local_nodeThis table contains one row with information about the local node.
local_sync_statusInternal use - for tracking sync status of tables and subscriptions.
replication_setThis table contains information about the replication sets defined for your cluster. It contains the set definition, and four boolean columns that indicate the type of information that the set replicates: replicate_insert, replicate_update, replicate_delete, and replicate_truncate.
replication_set_seqThis table contains information about replication set sequences.
replication_set_tableThis table contains information about the tables that are in any replication set.
tablesThis table contains information about the tables in your database.
piiThis is an optional table in which you can define columns that contain personally identifiable information (pii). You can add information such as the schema, table, and column names and then use this table to createcolumn filters when adding tables to replication sets.
queueInternal use - for tracking sync progress and DDL replication.
sequence_stateTracks sequence states used by Spock; Snowflake sequences are preferred method of sequence management.
subscriptionThis table contains information about your cluster subscriptions.
resolutionsThis table contains one row per resolution made on this node.