v.20.10New Feature
Allow Configurable NULL Representation for TSV Output Format
Allow configurableNULLrepresentation forTSVoutput format. It is controlled by the settingoutput_format_tsv_null_representationwhich is\Nby default. This closes #9375. Note that the setting only controls output format and\Nis the only supportedNULLrepresentation forTSVinput format. #14586 (Kruglov Pavel).
Why it matters
This feature allows users to customize howNULL values are represented when exporting data in TSV format, enabling better integration with different systems or workflows that require specific NULL markers. It solves the limitation of having a fixed NULL representation in TSV output, increasing flexibility and usability.How to use it
To use this feature, set theoutput_format_tsv_null_representation setting to your desired string before executing your query or exporting data. For example:SET output_format_tsv_null_representation = 'NULL';
SELECT * FROM table FORMAT TSV;Note that this setting only affects
TSV output format; the input format only supports \N as the NULL representation.