File tree 12 files changed +27
-50
lines changed
12 files changed +27
-50
lines changed Original file line number Diff line number Diff line change 8
8
* Author: Andreas Pflug <pgadmin@pse-consulting.de>
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/contrib/adminpack/adminpack.c,v 1.5 2006/10/19 17:48:04 neilc Exp $
11
+ * $PostgreSQL: pgsql/contrib/adminpack/adminpack.c,v 1.6 2006/10/19 18:32:45 tgl Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
22
22
#include "miscadmin.h"
23
23
#include "catalog/pg_type.h"
24
24
#include "funcapi.h"
25
+ #include "postmaster/syslogger.h"
25
26
#include "storage/fd.h"
26
27
#include "utils/datetime.h"
27
28
37
38
#endif
38
39
#endif
39
40
40
- extern DLLIMPORT char * DataDir ;
41
- extern DLLIMPORT char * Log_directory ;
42
- extern DLLIMPORT char * Log_filename ;
43
-
44
41
PG_MODULE_MAGIC ;
45
42
46
43
Datum pg_file_write (PG_FUNCTION_ARGS );
Original file line number Diff line number Diff line change 3
3
* pg_buffercache_pages.c
4
4
* display some contents of the buffer cache
5
5
*
6
- * $PostgreSQL: pgsql/contrib/pg_buffercache/pg_buffercache_pages.c,v 1.9 2006/10/04 00:29:45 momjian Exp $
6
+ * $PostgreSQL: pgsql/contrib/pg_buffercache/pg_buffercache_pages.c,v 1.10 2006/10/19 18:32:46 tgl Exp $
7
7
*-------------------------------------------------------------------------
8
8
*/
9
9
#include "postgres.h"
16
16
17
17
#define NUM_BUFFERCACHE_PAGES_ELEM 6
18
18
19
- #if defined(WIN32 ) || defined(__CYGWIN__ )
20
- extern DLLIMPORT BufferDesc * BufferDescriptors ;
21
- extern DLLIMPORT volatile uint32 InterruptHoldoffCount ;
22
- #endif
23
-
24
19
PG_MODULE_MAGIC ;
25
20
26
21
Datum pg_buffercache_pages (PG_FUNCTION_ARGS );
Original file line number Diff line number Diff line change 3
3
* pg_freespacemap.c
4
4
* display some contents of the free space relation and page maps.
5
5
*
6
- * $PostgreSQL: pgsql/contrib/pg_freespacemap/pg_freespacemap.c,v 1.8 2006/10/04 00:29:45 momjian Exp $
6
+ * $PostgreSQL: pgsql/contrib/pg_freespacemap/pg_freespacemap.c,v 1.9 2006/10/19 18:32:46 tgl Exp $
7
7
*-------------------------------------------------------------------------
8
8
*/
9
9
#include "postgres.h"
17
17
#define NUM_FREESPACE_PAGES_ELEM 5
18
18
#define NUM_FREESPACE_RELATIONS_ELEM 7
19
19
20
- #if defined(WIN32 ) || defined(__CYGWIN__ )
21
- /* Need DLLIMPORT for some things that are not so marked in main headers */
22
- extern DLLIMPORT int MaxFSMPages ;
23
- extern DLLIMPORT int MaxFSMRelations ;
24
- extern DLLIMPORT volatile uint32 InterruptHoldoffCount ;
25
- #endif
26
-
27
20
PG_MODULE_MAGIC ;
28
21
29
22
Datum pg_freespacemap_pages (PG_FUNCTION_ARGS );
Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/catalog/pg_proc.c,v 1.140 2006/07/13 16:49:13 momjian Exp $
11
+ * $PostgreSQL: pgsql/src/backend/catalog/pg_proc.c,v 1.141 2006/10/19 18:32:46 tgl Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
35
35
#include "utils/syscache.h"
36
36
37
37
38
- /* GUC parameter */
39
- bool check_function_bodies = true;
40
-
41
-
42
38
Datum fmgr_internal_validator (PG_FUNCTION_ARGS );
43
39
Datum fmgr_c_validator (PG_FUNCTION_ARGS );
44
40
Datum fmgr_sql_validator (PG_FUNCTION_ARGS );
Original file line number Diff line number Diff line change 10
10
* Written by Peter Eisentraut <peter_e@gmx.net>.
11
11
*
12
12
* IDENTIFICATION
13
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.356 2006/10/07 19:25:28 tgl Exp $
13
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.357 2006/10/19 18:32:47 tgl Exp $
14
14
*
15
15
*--------------------------------------------------------------------
16
16
*/
93
93
94
94
/* XXX these should appear in other modules' header files */
95
95
extern bool Log_disconnections ;
96
- extern bool check_function_bodies ;
97
96
extern int CommitDelay ;
98
97
extern int CommitSiblings ;
99
98
extern char * default_tablespace ;
@@ -171,12 +170,12 @@ bool log_statement_stats = false; /* this is sort of all three
171
170
* above together */
172
171
bool log_btree_build_stats = false;
173
172
173
+ bool check_function_bodies = true;
174
+ bool default_with_oids = false;
174
175
bool SQL_inheritance = true;
175
176
176
177
bool Password_encryption = true;
177
178
178
- bool default_with_oids = false;
179
-
180
179
int log_min_error_statement = PANIC ;
181
180
int log_min_messages = NOTICE ;
182
181
int client_min_messages = NOTICE ;
Original file line number Diff line number Diff line change 13
13
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
14
14
* Portions Copyright (c) 1994, Regents of the University of California
15
15
*
16
- * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.189 2006/09/04 15:07:46 petere Exp $
16
+ * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.190 2006/10/19 18:32:47 tgl Exp $
17
17
*
18
18
* NOTES
19
19
* some of the information in this file should be moved to other files.
@@ -70,8 +70,8 @@ extern volatile bool ProcDiePending;
70
70
71
71
/* these are marked volatile because they are examined by signal handlers: */
72
72
extern volatile bool ImmediateInterruptOK ;
73
- extern volatile uint32 InterruptHoldoffCount ;
74
- extern volatile uint32 CritSectionCount ;
73
+ extern DLLIMPORT volatile uint32 InterruptHoldoffCount ;
74
+ extern DLLIMPORT volatile uint32 CritSectionCount ;
75
75
76
76
/* in tcop/postgres.c */
77
77
extern void ProcessInterrupts (void );
@@ -125,7 +125,7 @@ extern bool IsUnderPostmaster;
125
125
126
126
extern bool ExitOnAnyError ;
127
127
128
- extern char * DataDir ;
128
+ extern DLLIMPORT char * DataDir ;
129
129
130
130
extern DLLIMPORT int NBuffers ;
131
131
extern int MaxBackends ;
Original file line number Diff line number Diff line change 5
5
*
6
6
* Copyright (c) 2004-2006, PostgreSQL Global Development Group
7
7
*
8
- * $PostgreSQL: pgsql/src/include/postmaster/syslogger.h,v 1.6 2006/03/05 15:58:58 momjian Exp $
8
+ * $PostgreSQL: pgsql/src/include/postmaster/syslogger.h,v 1.7 2006/10/19 18:32:47 tgl Exp $
9
9
*
10
10
*-------------------------------------------------------------------------
11
11
*/
16
16
extern bool Redirect_stderr ;
17
17
extern int Log_RotationAge ;
18
18
extern int Log_RotationSize ;
19
- extern char * Log_directory ;
20
- extern char * Log_filename ;
19
+ extern DLLIMPORT char * Log_directory ;
20
+ extern DLLIMPORT char * Log_filename ;
21
21
extern bool Log_truncate_on_rotation ;
22
22
23
23
extern bool am_syslogger ;
Original file line number Diff line number Diff line change 8
8
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
9
9
* Portions Copyright (c) 1994, Regents of the University of California
10
10
*
11
- * $PostgreSQL: pgsql/src/include/storage/buf_internals.h,v 1.87 2006/07/23 03:07:58 tgl Exp $
11
+ * $PostgreSQL: pgsql/src/include/storage/buf_internals.h,v 1.88 2006/10/19 18:32:47 tgl Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -162,7 +162,7 @@ typedef struct sbufdesc
162
162
163
163
164
164
/* in buf_init.c */
165
- extern BufferDesc * BufferDescriptors ;
165
+ extern DLLIMPORT BufferDesc * BufferDescriptors ;
166
166
167
167
/* in localbuf.c */
168
168
extern BufferDesc * LocalBufferDescriptors ;
Original file line number Diff line number Diff line change 7
7
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $PostgreSQL: pgsql/src/include/storage/freespace.h,v 1.23 2006/10/04 00:30:10 momjian Exp $
10
+ * $PostgreSQL: pgsql/src/include/storage/freespace.h,v 1.24 2006/10/19 18:32:47 tgl Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -124,8 +124,8 @@ struct FSMRelation
124
124
125
125
126
126
/* GUC variables */
127
- extern int MaxFSMRelations ;
128
- extern int MaxFSMPages ;
127
+ extern DLLIMPORT int MaxFSMRelations ;
128
+ extern DLLIMPORT int MaxFSMPages ;
129
129
130
130
131
131
/*
Original file line number Diff line number Diff line change 7
7
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
8
8
* Written by Peter Eisentraut <peter_e@gmx.net>.
9
9
*
10
- * $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.75 2006/08/14 02:27:27 momjian Exp $
10
+ * $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.76 2006/10/19 18:32:47 tgl Exp $
11
11
*--------------------------------------------------------------------
12
12
*/
13
13
#ifndef GUC_H
@@ -115,9 +115,9 @@ extern bool log_executor_stats;
115
115
extern bool log_statement_stats ;
116
116
extern bool log_btree_build_stats ;
117
117
118
- extern bool SQL_inheritance ;
119
-
118
+ extern DLLIMPORT bool check_function_bodies ;
120
119
extern bool default_with_oids ;
120
+ extern bool SQL_inheritance ;
121
121
122
122
extern int log_min_error_statement ;
123
123
extern int log_min_messages ;
Original file line number Diff line number Diff line change 1
1
/**********************************************************************
2
2
* plperl.c - perl as a procedural language for PostgreSQL
3
3
*
4
- * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.120 2006/10/15 18:56:39 tgl Exp $
4
+ * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.121 2006/10/19 18:32:47 tgl Exp $
5
5
*
6
6
**********************************************************************/
7
7
23
23
#include "miscadmin.h"
24
24
#include "nodes/makefuncs.h"
25
25
#include "parser/parse_type.h"
26
+ #include "utils/guc.h"
26
27
#include "utils/lsyscache.h"
27
28
#include "utils/memutils.h"
28
29
#include "utils/typcache.h"
29
30
30
- /* define this before the perl headers get a chance to mangle DLLIMPORT */
31
- extern DLLIMPORT bool check_function_bodies ;
32
-
33
31
/* perl stuff */
34
32
#include "plperl.h"
35
33
Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_handler.c,v 1.32 2006/10/04 00:30:13 momjian Exp $
11
+ * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_handler.c,v 1.33 2006/10/19 18:32:48 tgl Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
21
21
#include "catalog/pg_type.h"
22
22
#include "funcapi.h"
23
23
#include "utils/builtins.h"
24
+ #include "utils/guc.h"
24
25
#include "utils/lsyscache.h"
25
26
#include "utils/syscache.h"
26
27
27
- extern DLLIMPORT bool check_function_bodies ;
28
-
29
28
PG_MODULE_MAGIC ;
30
29
31
30
PLpgSQL_plugin * * plugin_ptr = NULL ;
You can’t perform that action at this time.
0 commit comments