summaryrefslogtreecommitdiff
path: root/src/include/fmgr.h
diff options
context:
space:
mode:
authorTom Lane2006-05-31 20:58:09 +0000
committerTom Lane2006-05-31 20:58:09 +0000
commit8f165ee13b11baf17b91d858c535419c33a755d6 (patch)
tree24edff7fbb527e614b27305af7f5f44539f696f8 /src/include/fmgr.h
parentc269f0f1e2c760dde7a2c95ab09f913fa2aef1c4 (diff)
Make PG_MODULE_MAGIC required in shared libraries that are loaded into
the server. Per discussion, there seems no point in a waiting period before making this required.
Diffstat (limited to 'src/include/fmgr.h')
-rw-r--r--src/include/fmgr.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/include/fmgr.h b/src/include/fmgr.h
index a0749a5fa6b..5b904cbad42 100644
--- a/src/include/fmgr.h
+++ b/src/include/fmgr.h
@@ -11,7 +11,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/fmgr.h,v 1.44 2006/05/30 21:21:30 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/fmgr.h,v 1.45 2006/05/31 20:58:09 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -314,14 +314,14 @@ extern int no_such_variable
/*-------------------------------------------------------------------------
* Support for verifying backend compatibility of loaded modules
*
- * If a loaded module includes the macro call
+ * We require dynamically-loaded modules to include the macro call
* PG_MODULE_MAGIC;
- * (put this in only one source file), then we can check for obvious
- * incompatibility, such as being compiled for a different major PostgreSQL
- * version.
+ * so that we can check for obvious incompatibility, such as being compiled
+ * for a different major PostgreSQL version.
*
* To compile with versions of PostgreSQL that do not support this,
- * you may put an #ifdef/#endif test around it.
+ * you may put an #ifdef/#endif test around it. Note that in a multiple-
+ * source-file module, the macro call should only appear once.
*
* The specific items included in the magic block are intended to be ones that
* are custom-configurable and especially likely to break dynamically loaded