SQLStreams

the messaging platform that is just Postgres

You last visited on 9999-99-99 Show what's new since then

partition_count [SQL0094]

Edit this page
code SQL0094 · alert — warn, owned by a stream; resolves once the count is back under the threshold
the log line · Report this thread
SQL0094 Alert

As it appears on __system.alerts:

partition_count

A stream’s message log holds enough partitions that dropping the stream approaches the lock-table ceiling.

The hourly check counts every stream’s message-log partitions and publishes an active alert for each stream at or above the job’s threshold. Dropping or destroying the stream locks about 5 relations per partition in one transaction, and past max_locks_per_transaction Postgres refuses it with out of shared memory. The alert’s data carries partition_count, lock_ceiling, and threshold.

Lower the stream’s retention so the janitor drops old partitions, or raise max_locks_per_transaction. The next run that finds the count under the threshold publishes the resolution under the same key.

sqlstreams alert list
Nothing pasted yet — the queries above show their blanks.

Looking for a different code? Search every thread.