Thread

  1. Re: Proposal: tighten validation for legacy EUC encodings or document that accepted byte sequences may be unconvertible to UTF8

    Tatsuo Ishii <ishii@postgresql.org> — 2026-05-11T01:40:13Z

    >>  If so, tightening up the validation may break such that uses.
    > 
    > I agree. What about introducing an extra GUC which allows users to specify
    > verification logic? In fact, I have implemented this patch.
    > 
    > ```
    > SHOW encoding_validation;
    > -- default behaviour
    > SET encoding_validation = 'native';
    > -- enforce Write to be fully compatible with Read
    > SET encoding_validation = 'read_compatible';
    
    -1 for using GUC. These settings may vary depending on the encoding.
    
    Regards,
    --
    Tatsuo Ishii
    SRA OSS K.K.
    English: http://www.sraoss.co.jp/index_en/
    Japanese:http://www.sraoss.co.jp