Skip to content

Postgres max notification size #6

@narrowtux

Description

@narrowtux

PostgreSQL has a maximum notification payload size of 8000 bytes by default. Anything above will result in an error.

I have successfully worked around this by chunking the payload before broadcasting it and then concatenating it agtain when it is received by other endpoints. I will probably submit a pull request to make this pubsub adapter more stable.

Excerpt from the PostgreSQL documentation:

The "payload" string to be communicated along with the notification. This must be specified as a simple string literal. In the default configuration it must be shorter than 8000 bytes. (If binary data or large amounts of information need to be communicated, it's best to put it in a database table and send the key of the record.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions