Skip to main content

tcb db pg realtime get

Query the Realtime settings of a PG mode environment: service state, channel access policy, Presence switch, rate limits, and connection pool sizes.

Version

The tcb db pg realtime commands are available since v3.9.0.

Usage​

tcb db pg realtime get -e <envId>

Parameters​

ParameterRequiredDescriptionDefault
-e, --env-id <envId>YesEnvironment ID—
--jsonNoOutput JSON—

Output fields​

By default the command prints a two-column table of setting and current value. Field meanings:

FieldDescription
SuspendWhether the service is suspended. When true, all online connections are dropped immediately, new connections are rejected, and server-side broadcast APIs are disabled
PrivateOnlyWhether only private channels are allowed. When true, clients cannot join channels prefixed with public:
PresenceEnabledMaster switch for Presence. When disabled, presence join requests are rejected
MaxConcurrentUsersMaximum concurrent users, counted per user (multiple connections of the same user count once)
MaxEventsPerSecondMaximum broadcast events per second, summed across all clients
MaxJoinsPerSecondMaximum channel joins per second
MaxBytesPerSecondMaximum broadcast payload bytes per second
MaxChannelsPerClientMaximum channels per client
MaxPresenceEventsPerSecondMaximum presence events per second, summed across all track / untrack calls
MaxPayloadSizeInKBMaximum payload size per message, in KB
ConnectionPoolDatabase connection pool size, used for RLS authorization queries
PostgresChangesPoolDedicated pool size for CDC (postgres_changes), isolated from the authorization pool
CreatedTime / UpdatedTimeCreation and last update time (ISO 8601)
AdminSuspendedTimePlatform freeze time. Returned only when the service is frozen by the platform; the row is hidden otherwise

Examples​

# Table output
tcb db pg realtime get -e <envId>

# JSON output
tcb db pg realtime get -e <envId> --json

Notes​

  • Run this command before changing settings. set applies incremental updates and leaves unspecified fields untouched
  • Fields that are empty or not returned by the server are shown as -