Move processing of startup-packet switches and GUC settings into InitPostgres,

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 0905e8aeebd141a311ddee9957f75b698e872370
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-09-01T00:09:42Z
Releases: 9.0.0
Move processing of startup-packet switches and GUC settings into InitPostgres,
to fix the problem that SetClientEncoding needs to be done before
InitializeClientEncoding, as reported by Zdenek Kotala.  We get at least
the small consolation of being able to remove the bizarre API detail that
had InitPostgres returning whether user is a superuser.

Files

PathChange+/−
src/backend/tcop/postgres.c modified +9 −76
src/backend/utils/init/postinit.c modified +77 −16
src/include/miscadmin.h modified +2 −2
src/include/tcop/tcopprot.h modified +3 −1