mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
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.
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.213 2009/08/29 19:26:51 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.214 2009/09/01 00:09:42 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* some of the information in this file should be moved to other files.
|
||||
@ -324,7 +324,7 @@ extern ProcessingMode Mode;
|
||||
|
||||
/* in utils/init/postinit.c */
|
||||
extern void pg_split_opts(char **argv, int *argcp, char *optstr);
|
||||
extern bool InitPostgres(const char *in_dbname, Oid dboid, const char *username,
|
||||
extern void InitPostgres(const char *in_dbname, Oid dboid, const char *username,
|
||||
char *out_dbname);
|
||||
extern void BaseInit(void);
|
||||
|
||||
|
Reference in New Issue
Block a user