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
6e3117c3
Commit
6e3117c3
authored
Nov 23, 2009
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add PG_MODULE_MAGIC and some missing include files to examples
Author: Euler Taveira de Oliveira <euler@timbira.com>
parent
8d97c1dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
3 deletions
+29
-3
doc/src/sgml/plhandler.sgml
doc/src/sgml/plhandler.sgml
+5
-1
doc/src/sgml/trigger.sgml
doc/src/sgml/trigger.sgml
+5
-1
doc/src/sgml/xfunc.sgml
doc/src/sgml/xfunc.sgml
+19
-1
No files found.
doc/src/sgml/plhandler.sgml
View file @
6e3117c3
<!-- $PostgreSQL: pgsql/doc/src/sgml/plhandler.sgml,v 1.
8 2009/10/08 04:41:07 tgl
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/plhandler.sgml,v 1.
9 2009/11/23 21:41:20 petere
Exp $ -->
<chapter id="plhandler">
<title>Writing A Procedural Language Handler</title>
...
...
@@ -106,6 +106,10 @@
#include "catalog/pg_proc.h"
#include "catalog/pg_type.h"
#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;
#endif
PG_FUNCTION_INFO_V1(plsample_call_handler);
Datum
...
...
doc/src/sgml/trigger.sgml
View file @
6e3117c3
<!-- $PostgreSQL: pgsql/doc/src/sgml/trigger.sgml,v 1.6
0 2009/11/20 20:38:09 tgl
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/trigger.sgml,v 1.6
1 2009/11/23 21:41:20 petere
Exp $ -->
<chapter id="triggers">
<title>Triggers</title>
...
...
@@ -596,6 +596,10 @@ CREATE TABLE ttest (
#include "executor/spi.h" /* this is what you need to work with SPI */
#include "commands/trigger.h" /* ... and triggers */
#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;
#endif
extern Datum trigf(PG_FUNCTION_ARGS);
PG_FUNCTION_INFO_V1(trigf);
...
...
doc/src/sgml/xfunc.sgml
View file @
6e3117c3
<!-- $PostgreSQL: pgsql/doc/src/sgml/xfunc.sgml,v 1.14
0 2009/10/08 02:39:16 tgl
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/xfunc.sgml,v 1.14
1 2009/11/23 21:41:20 petere
Exp $ -->
<sect1 id="xfunc">
<title>User-Defined Functions</title>
...
...
@@ -1925,6 +1925,11 @@ memcpy(destination->data, buffer, 40);
<programlisting><![CDATA[
#include "postgres.h"
#include <string.h>
#include "utils/geo_decls.h"
#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;
#endif
/* by value */
...
...
@@ -2099,6 +2104,11 @@ PG_FUNCTION_INFO_V1(funcname);
#include "postgres.h"
#include <string.h>
#include "fmgr.h"
#include "utils/geo_decls.h"
#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;
#endif
/* by value */
...
...
@@ -2638,6 +2648,10 @@ SELECT name, c_overpaid(emp, 1500) AS overpaid
#include "postgres.h"
#include "executor/executor.h" /* for GetAttributeByName() */
#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;
#endif
bool
c_overpaid(HeapTupleHeader t, /* the current row of emp */
int32 limit)
...
...
@@ -2659,6 +2673,10 @@ c_overpaid(HeapTupleHeader t, /* the current row of emp */
#include "postgres.h"
#include "executor/executor.h" /* for GetAttributeByName() */
#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;
#endif
PG_FUNCTION_INFO_V1(c_overpaid);
Datum
...
...
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