Skip to content
Snippets Groups Projects
  • Tom Lane's avatar
    cf796cc7
    A client_encoding specification coming from the connection request has · cf796cc7
    Tom Lane authored
    to be processed by GUC before InitPostgres, because any required lookup
    of the encoding conversion function has to be done during InitializeClientEncoding.
    So, I broke this last week by moving GUC processing to after InitPostgres :-(.
    What we can do as a compromise is process non-SUSET variables during
    command line scanning (the same as before), and postpone the processing
    of only SUSET variables.  None of the SUSET variables need to be set
    before InitPostgres.
    cf796cc7
    History
    A client_encoding specification coming from the connection request has
    Tom Lane authored
    to be processed by GUC before InitPostgres, because any required lookup
    of the encoding conversion function has to be done during InitializeClientEncoding.
    So, I broke this last week by moving GUC processing to after InitPostgres :-(.
    What we can do as a compromise is process non-SUSET variables during
    command line scanning (the same as before), and postpone the processing
    of only SUSET variables.  None of the SUSET variables need to be set
    before InitPostgres.