Size limit for NOTIFY payload

sulfinu@gmail.com

From: sulfinu@gmail.com
To: pgsql-docs@lists.postgresql.org
Date: 2024-12-16T08:01:14Z
Lists: pgsql-docs
Hello,

according to the documentation
<https://www.postgresql.org/docs/current/sql-notify.html>, the payload
given in a NOTIFY statement must not exceed a certain limit *in bytes*. But
the payload is a character string, therefore the limit remains unclear.

What's the character encoding of the NOTIFY payload, is it the default
database encoding?

Thanks.