Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
def651f4
Commit
def651f4
authored
Oct 19, 2006
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up local redeclarations of variables with DLLIMPORT, per report
from Magnus that MSVC complains about this.
parent
fd38d726
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
27 additions
and
50 deletions
+27
-50
contrib/adminpack/adminpack.c
contrib/adminpack/adminpack.c
+2
-5
contrib/pg_buffercache/pg_buffercache_pages.c
contrib/pg_buffercache/pg_buffercache_pages.c
+1
-6
contrib/pg_freespacemap/pg_freespacemap.c
contrib/pg_freespacemap/pg_freespacemap.c
+1
-8
src/backend/catalog/pg_proc.c
src/backend/catalog/pg_proc.c
+1
-5
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+3
-4
src/include/miscadmin.h
src/include/miscadmin.h
+4
-4
src/include/postmaster/syslogger.h
src/include/postmaster/syslogger.h
+3
-3
src/include/storage/buf_internals.h
src/include/storage/buf_internals.h
+2
-2
src/include/storage/freespace.h
src/include/storage/freespace.h
+3
-3
src/include/utils/guc.h
src/include/utils/guc.h
+3
-3
src/pl/plperl/plperl.c
src/pl/plperl/plperl.c
+2
-4
src/pl/plpgsql/src/pl_handler.c
src/pl/plpgsql/src/pl_handler.c
+2
-3
No files found.
contrib/adminpack/adminpack.c
View file @
def651f4
...
...
@@ -8,7 +8,7 @@
* Author: Andreas Pflug <pgadmin@pse-consulting.de>
*
* IDENTIFICATION
* $PostgreSQL: pgsql/contrib/adminpack/adminpack.c,v 1.
5 2006/10/19 17:48:04 neilc
Exp $
* $PostgreSQL: pgsql/contrib/adminpack/adminpack.c,v 1.
6 2006/10/19 18:32:45 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -22,6 +22,7 @@
#include "miscadmin.h"
#include "catalog/pg_type.h"
#include "funcapi.h"
#include "postmaster/syslogger.h"
#include "storage/fd.h"
#include "utils/datetime.h"
...
...
@@ -37,10 +38,6 @@
#endif
#endif
extern
DLLIMPORT
char
*
DataDir
;
extern
DLLIMPORT
char
*
Log_directory
;
extern
DLLIMPORT
char
*
Log_filename
;
PG_MODULE_MAGIC
;
Datum
pg_file_write
(
PG_FUNCTION_ARGS
);
...
...
contrib/pg_buffercache/pg_buffercache_pages.c
View file @
def651f4
...
...
@@ -3,7 +3,7 @@
* pg_buffercache_pages.c
* display some contents of the buffer cache
*
* $PostgreSQL: pgsql/contrib/pg_buffercache/pg_buffercache_pages.c,v 1.
9 2006/10/04 00:29:45 momjian
Exp $
* $PostgreSQL: pgsql/contrib/pg_buffercache/pg_buffercache_pages.c,v 1.
10 2006/10/19 18:32:46 tgl
Exp $
*-------------------------------------------------------------------------
*/
#include "postgres.h"
...
...
@@ -16,11 +16,6 @@
#define NUM_BUFFERCACHE_PAGES_ELEM 6
#if defined(WIN32) || defined(__CYGWIN__)
extern
DLLIMPORT
BufferDesc
*
BufferDescriptors
;
extern
DLLIMPORT
volatile
uint32
InterruptHoldoffCount
;
#endif
PG_MODULE_MAGIC
;
Datum
pg_buffercache_pages
(
PG_FUNCTION_ARGS
);
...
...
contrib/pg_freespacemap/pg_freespacemap.c
View file @
def651f4
...
...
@@ -3,7 +3,7 @@
* pg_freespacemap.c
* display some contents of the free space relation and page maps.
*
* $PostgreSQL: pgsql/contrib/pg_freespacemap/pg_freespacemap.c,v 1.
8 2006/10/04 00:29:45 momjian
Exp $
* $PostgreSQL: pgsql/contrib/pg_freespacemap/pg_freespacemap.c,v 1.
9 2006/10/19 18:32:46 tgl
Exp $
*-------------------------------------------------------------------------
*/
#include "postgres.h"
...
...
@@ -17,13 +17,6 @@
#define NUM_FREESPACE_PAGES_ELEM 5
#define NUM_FREESPACE_RELATIONS_ELEM 7
#if defined(WIN32) || defined(__CYGWIN__)
/* Need DLLIMPORT for some things that are not so marked in main headers */
extern
DLLIMPORT
int
MaxFSMPages
;
extern
DLLIMPORT
int
MaxFSMRelations
;
extern
DLLIMPORT
volatile
uint32
InterruptHoldoffCount
;
#endif
PG_MODULE_MAGIC
;
Datum
pg_freespacemap_pages
(
PG_FUNCTION_ARGS
);
...
...
src/backend/catalog/pg_proc.c
View file @
def651f4
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/catalog/pg_proc.c,v 1.14
0 2006/07/13 16:49:13 momjian
Exp $
* $PostgreSQL: pgsql/src/backend/catalog/pg_proc.c,v 1.14
1 2006/10/19 18:32:46 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -35,10 +35,6 @@
#include "utils/syscache.h"
/* GUC parameter */
bool
check_function_bodies
=
true
;
Datum
fmgr_internal_validator
(
PG_FUNCTION_ARGS
);
Datum
fmgr_c_validator
(
PG_FUNCTION_ARGS
);
Datum
fmgr_sql_validator
(
PG_FUNCTION_ARGS
);
...
...
src/backend/utils/misc/guc.c
View file @
def651f4
...
...
@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.35
6 2006/10/07 19:25:28
tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.35
7 2006/10/19 18:32:47
tgl Exp $
*
*--------------------------------------------------------------------
*/
...
...
@@ -93,7 +93,6 @@
/* XXX these should appear in other modules' header files */
extern
bool
Log_disconnections
;
extern
bool
check_function_bodies
;
extern
int
CommitDelay
;
extern
int
CommitSiblings
;
extern
char
*
default_tablespace
;
...
...
@@ -171,12 +170,12 @@ bool log_statement_stats = false; /* this is sort of all three
* above together */
bool
log_btree_build_stats
=
false
;
bool
check_function_bodies
=
true
;
bool
default_with_oids
=
false
;
bool
SQL_inheritance
=
true
;
bool
Password_encryption
=
true
;
bool
default_with_oids
=
false
;
int
log_min_error_statement
=
PANIC
;
int
log_min_messages
=
NOTICE
;
int
client_min_messages
=
NOTICE
;
...
...
src/include/miscadmin.h
View file @
def651f4
...
...
@@ -13,7 +13,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.1
89 2006/09/04 15:07:46 petere
Exp $
* $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.1
90 2006/10/19 18:32:47 tgl
Exp $
*
* NOTES
* some of the information in this file should be moved to other files.
...
...
@@ -70,8 +70,8 @@ extern volatile bool ProcDiePending;
/* these are marked volatile because they are examined by signal handlers: */
extern
volatile
bool
ImmediateInterruptOK
;
extern
volatile
uint32
InterruptHoldoffCount
;
extern
volatile
uint32
CritSectionCount
;
extern
DLLIMPORT
volatile
uint32
InterruptHoldoffCount
;
extern
DLLIMPORT
volatile
uint32
CritSectionCount
;
/* in tcop/postgres.c */
extern
void
ProcessInterrupts
(
void
);
...
...
@@ -125,7 +125,7 @@ extern bool IsUnderPostmaster;
extern
bool
ExitOnAnyError
;
extern
char
*
DataDir
;
extern
DLLIMPORT
char
*
DataDir
;
extern
DLLIMPORT
int
NBuffers
;
extern
int
MaxBackends
;
...
...
src/include/postmaster/syslogger.h
View file @
def651f4
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 2004-2006, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/include/postmaster/syslogger.h,v 1.
6 2006/03/05 15:58:58 momjian
Exp $
* $PostgreSQL: pgsql/src/include/postmaster/syslogger.h,v 1.
7 2006/10/19 18:32:47 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -16,8 +16,8 @@
extern
bool
Redirect_stderr
;
extern
int
Log_RotationAge
;
extern
int
Log_RotationSize
;
extern
char
*
Log_directory
;
extern
char
*
Log_filename
;
extern
DLLIMPORT
char
*
Log_directory
;
extern
DLLIMPORT
char
*
Log_filename
;
extern
bool
Log_truncate_on_rotation
;
extern
bool
am_syslogger
;
...
...
src/include/storage/buf_internals.h
View file @
def651f4
...
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/storage/buf_internals.h,v 1.8
7 2006/07/23 03:07:58
tgl Exp $
* $PostgreSQL: pgsql/src/include/storage/buf_internals.h,v 1.8
8 2006/10/19 18:32:47
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -162,7 +162,7 @@ typedef struct sbufdesc
/* in buf_init.c */
extern
BufferDesc
*
BufferDescriptors
;
extern
DLLIMPORT
BufferDesc
*
BufferDescriptors
;
/* in localbuf.c */
extern
BufferDesc
*
LocalBufferDescriptors
;
...
...
src/include/storage/freespace.h
View file @
def651f4
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/storage/freespace.h,v 1.2
3 2006/10/04 00:30:10 momjian
Exp $
* $PostgreSQL: pgsql/src/include/storage/freespace.h,v 1.2
4 2006/10/19 18:32:47 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -124,8 +124,8 @@ struct FSMRelation
/* GUC variables */
extern
int
MaxFSMRelations
;
extern
int
MaxFSMPages
;
extern
DLLIMPORT
int
MaxFSMRelations
;
extern
DLLIMPORT
int
MaxFSMPages
;
/*
...
...
src/include/utils/guc.h
View file @
def651f4
...
...
@@ -7,7 +7,7 @@
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.7
5 2006/08/14 02:27:27 momjian
Exp $
* $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.7
6 2006/10/19 18:32:47 tgl
Exp $
*--------------------------------------------------------------------
*/
#ifndef GUC_H
...
...
@@ -115,9 +115,9 @@ extern bool log_executor_stats;
extern
bool
log_statement_stats
;
extern
bool
log_btree_build_stats
;
extern
bool
SQL_inheritance
;
extern
DLLIMPORT
bool
check_function_bodies
;
extern
bool
default_with_oids
;
extern
bool
SQL_inheritance
;
extern
int
log_min_error_statement
;
extern
int
log_min_messages
;
...
...
src/pl/plperl/plperl.c
View file @
def651f4
/**********************************************************************
* plperl.c - perl as a procedural language for PostgreSQL
*
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.12
0 2006/10/15 18:56:39
tgl Exp $
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.12
1 2006/10/19 18:32:47
tgl Exp $
*
**********************************************************************/
...
...
@@ -23,13 +23,11 @@
#include "miscadmin.h"
#include "nodes/makefuncs.h"
#include "parser/parse_type.h"
#include "utils/guc.h"
#include "utils/lsyscache.h"
#include "utils/memutils.h"
#include "utils/typcache.h"
/* define this before the perl headers get a chance to mangle DLLIMPORT */
extern
DLLIMPORT
bool
check_function_bodies
;
/* perl stuff */
#include "plperl.h"
...
...
src/pl/plpgsql/src/pl_handler.c
View file @
def651f4
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_handler.c,v 1.3
2 2006/10/04 00:30:13 momjian
Exp $
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_handler.c,v 1.3
3 2006/10/19 18:32:48 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -21,11 +21,10 @@
#include "catalog/pg_type.h"
#include "funcapi.h"
#include "utils/builtins.h"
#include "utils/guc.h"
#include "utils/lsyscache.h"
#include "utils/syscache.h"
extern
DLLIMPORT
bool
check_function_bodies
;
PG_MODULE_MAGIC
;
PLpgSQL_plugin
**
plugin_ptr
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment