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
f34240de
Commit
f34240de
authored
Mar 09, 1999
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to fix/improve the dynamic loading on NT
From: Horak Daniel <horak@mmp.plzen-city.cz>
parent
f7430af9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
10 deletions
+33
-10
src/backend/commands/trigger.c
src/backend/commands/trigger.c
+1
-1
src/backend/executor/spi.c
src/backend/executor/spi.c
+4
-4
src/include/c.h
src/include/c.h
+19
-1
src/include/commands/trigger.h
src/include/commands/trigger.h
+1
-1
src/include/executor/spi.h
src/include/executor/spi.h
+3
-3
src/makefiles/Makefile.win
src/makefiles/Makefile.win
+5
-0
No files found.
src/backend/commands/trigger.c
View file @
f34240de
...
...
@@ -35,7 +35,7 @@
#include "utils/acl.h"
#endif
TriggerData
*
CurrentTriggerData
=
NULL
;
DLLIMPORT
TriggerData
*
CurrentTriggerData
=
NULL
;
void
RelationBuildTriggers
(
Relation
relation
);
void
FreeTriggerDesc
(
Relation
relation
);
...
...
src/backend/executor/spi.c
View file @
f34240de
...
...
@@ -3,7 +3,7 @@
* spi.c
* Server Programming Interface
*
* $Id: spi.c,v 1.3
4 1999/02/13 23:15:30 momjian
Exp $
* $Id: spi.c,v 1.3
5 1999/03/09 13:39:00 scrappy
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -19,9 +19,9 @@ static _SPI_connection *_SPI_current = NULL;
static
int
_SPI_connected
=
-
1
;
static
int
_SPI_curid
=
-
1
;
uint32
SPI_processed
=
0
;
SPITupleTable
*
SPI_tuptable
;
int
SPI_result
;
DLLIMPORT
uint32
SPI_processed
=
0
;
DLLIMPORT
SPITupleTable
*
SPI_tuptable
;
DLLIMPORT
int
SPI_result
;
static
int
_SPI_execute
(
char
*
src
,
int
tcount
,
_SPI_plan
*
plan
);
static
int
_SPI_pquery
(
QueryDesc
*
queryDesc
,
EState
*
state
,
int
tcount
);
...
...
src/include/c.h
View file @
f34240de
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: c.h,v 1.5
1 1999/02/13 23:20:44 momjian
Exp $
* $Id: c.h,v 1.5
2 1999/03/09 13:39:01 scrappy
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -57,6 +57,10 @@
#include <errno.h>
#endif
#ifdef __CYGWIN32__
#include <errno.h>
#endif
/* ----------------------------------------------------------------
* Section 1: bool, true, false, TRUE, FALSE
* ----------------------------------------------------------------
...
...
@@ -829,6 +833,20 @@ extern char *form(const char *fmt,...);
#define COPY_CMD "cp"
#define SEP_CHAR '/'
/* defines for dynamic linking on Win32 platform */
#ifdef __CYGWIN32__
#if __GNUC__ && ! defined (__declspec)
#error You need egcs 1.1 or newer for compiling!
#endif
#ifdef BUILDING_DLL
#define DLLIMPORT __declspec (dllexport)
#else
/* not BUILDING_DLL */
#define DLLIMPORT __declspec (dllimport)
#endif
#else
/* not CYGWIN */
#define DLLIMPORT
#endif
/* Provide prototypes for routines not present in a particular machine's
* standard C library. It'd be better to put these in config.h, but
* in config.h we haven't yet included anything that defines size_t...
...
...
src/include/commands/trigger.h
View file @
f34240de
...
...
@@ -26,7 +26,7 @@ typedef struct TriggerData
Trigger
*
tg_trigger
;
}
TriggerData
;
extern
TriggerData
*
CurrentTriggerData
;
extern
DLLIMPORT
TriggerData
*
CurrentTriggerData
;
#define TRIGGER_EVENT_INSERT 0x00000000
#define TRIGGER_EVENT_DELETE 0x00000001
...
...
src/include/executor/spi.h
View file @
f34240de
...
...
@@ -66,9 +66,9 @@ typedef struct
#define SPI_OK_UPDATE 9
#define SPI_OK_CURSOR 10
extern
uint32
SPI_processed
;
extern
SPITupleTable
*
SPI_tuptable
;
extern
int
SPI_result
;
extern
DLLIMPORT
uint32
SPI_processed
;
extern
DLLIMPORT
SPITupleTable
*
SPI_tuptable
;
extern
DLLIMPORT
int
SPI_result
;
extern
int
SPI_connect
(
void
);
extern
int
SPI_finish
(
void
);
...
...
src/makefiles/Makefile.win
View file @
f34240de
...
...
@@ -13,3 +13,8 @@ SHLIB_LINK=$(DLLLIBS)
$(DLLTOOL)
--export-all
--output-def
$*
.def
$<
$(DLLWRAP)
-o
$@
--def
$*
.def
$<
$(SRCDIR)
/utils/dllinit.o
$(DLLLIBS)
rm
-f
$*
.def
curdir
:=
$(
shell
pwd
)
ifeq
($(findstring backend,$(curdir)), backend)
CFLAGS
+=
-DBUILDING_DLL
=
1
endif
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