diff options
author | Tom Lane | 2009-09-01 00:09:42 +0000 |
---|---|---|
committer | Tom Lane | 2009-09-01 00:09:42 +0000 |
commit | 0905e8aeebd141a311ddee9957f75b698e872370 (patch) | |
tree | 457c33ed6ab869c3af415e697dae5a4bfb8a64ba /src/include/miscadmin.h | |
parent | 00e6a16d01683762c2f34eb4909fc739093ab3bf (diff) |
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.
Diffstat (limited to 'src/include/miscadmin.h')
-rw-r--r-- | src/include/miscadmin.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index cd787b87da7..ae73f91edd3 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -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); |