Re: Feature request: binary NOTIFY - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: Feature request: binary NOTIFY
Date
Msg-id CAFj8pRC24Sy7xusVCKdvMJsj=cfr+A6MHPSgSWLtnjyK39Gb3Q@mail.gmail.com
Whole thread Raw
In response to Feature request: binary NOTIFY  (Mitar <mmitar@gmail.com>)
Responses Re: Feature request: binary NOTIFY
List pgsql-hackers
Hi

út 17. 9. 2019 v 10:01 odesílatel Mitar <mmitar@gmail.com> napsal:
Hi!

I might have missed prior discussions about this, but I wonder if it
would be possible to support binary payloads for NOTIFY/LISTEN? Again
and again I find it very limiting with just text (have to base64
encode data, or convert it to JSON).

I think so is not any problem to pass binary data already. Text type "text" and binary type "bytea" is internally very similar.

But the message doesn't any info about type, so it should be ensure so clients understand to message and takes data in binary format.

You can overwrite pg_notify function for bytea format.

Is not possible to use NOTIFY with binary data, because this statement doesn't allow parametrization

Pavel

pgsql-hackers by date:

Previous
From: Mitar
Date:
Subject: Feature request: binary NOTIFY
Next
From: Peter Eisentraut
Date:
Subject: Re: Nondeterministic collations vs. text_pattern_ops