RefLib

Reference library for AI

Back

postgresql_16:6.12.6.3 Output Modes

PostgreSQL 16 > Server Programming > Logical Decoding > Logical Decoding Output Plugins > Output Modes

Output plugin callbacks can pass data to the consumer in nearly arbitrary formats. For some use cases, like viewing the changes via SQL, returning data in a data type that can contain arbitrary data (e.g., bytea) is cumbersome. If the output plugin only outputs textual data in the server's encoding, it can declare that by setting OutputPluginOptions.output_type to OUTPUT_PLUGIN_TEXTUAL_OUTPUT instead of OUTPUT_PLUGIN_BINARY_OUTPUT in the startup callback (see postgresql_16:6.12.6.4). In that case, all the data has to be in the server's encoding so that a text datum can contain it. This is checked in assertion-enabled builds.

Back