]> git.ipfire.org Git - thirdparty/postgresql.git/commit
A client_encoding specification coming from the connection request has
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 Nov 2004 19:51:05 +0000 (19:51 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 Nov 2004 19:51:05 +0000 (19:51 +0000)
commitcf796cc702a879947fd6d1290e25250fe0b37d69
tree5730f3eadbcea0e8442898ec84e96b4a884ccdb6
parent5597fee8d701bc8f3cb859ff935699ef6ce08b31
A client_encoding specification coming from the connection request has
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.
src/backend/tcop/postgres.c
src/backend/utils/misc/guc.c
src/include/utils/guc.h