]> granicus.if.org Git - postgresql/commitdiff
Remove to pre-8.2 coding convention for PG_MODULE_MAGIC
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 31 Aug 2017 02:40:24 +0000 (22:40 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 31 Aug 2017 02:40:24 +0000 (22:40 -0400)
PG_MODULE_MAGIC has been around since 8.2, with 8.1 long since in EOL,
so remove the mention of #ifdef guards for compiling against pre-8.2
sources from the documentation.

Author: Daniel Gustafsson <daniel@yesql.se>

contrib/citext/citext.c
doc/src/sgml/plhandler.sgml
doc/src/sgml/spi.sgml
doc/src/sgml/xfunc.sgml
src/test/regress/regress.c

index 04f604b15f1b97fee48de833586631d3ee8f82c0..0ba47828baec156a6f074391236729e65b96eb0b 100644 (file)
@@ -9,9 +9,7 @@
 #include "utils/formatting.h"
 #include "utils/varlena.h"
 
-#ifdef PG_MODULE_MAGIC
 PG_MODULE_MAGIC;
-#endif
 
 /*
  *             ====================
index 57a2a05ed279b6ac11cca969fa5beb6c09ab732b..2573e67743462ddeec42865749a0feda87966bbc 100644 (file)
 #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);
 
index 86be87c0fdb4597ce5405a31d54e63f17811e9d8..d04b5a2125e45750936014b5a5a02425a2cfd4de 100644 (file)
@@ -4352,9 +4352,7 @@ INSERT INTO a SELECT * FROM a;
 #include "executor/spi.h"
 #include "utils/builtins.h"
 
-#ifdef PG_MODULE_MAGIC
 PG_MODULE_MAGIC;
-#endif
 
 int64 execq(text *sql, int cnt);
 
index cd6dd840ba64dd0ecc42dd03db3e096368cd697a..74752883540769cfb5b93e4fbe90fe8158a6f9ee 100644 (file)
@@ -1757,20 +1757,13 @@ CREATE FUNCTION square_root(double precision) RETURNS double precision
     file contains a <quote>magic block</> with the appropriate contents.
     This allows the server to detect obvious incompatibilities, such as code
     compiled for a different major version of
-    <productname>PostgreSQL</productname>.  A magic block is required as of
-    <productname>PostgreSQL</productname> 8.2.  To include a magic block,
+    <productname>PostgreSQL</productname>. To include a magic block,
     write this in one (and only one) of the module source files, after having
     included the header <filename>fmgr.h</>:
 
 <programlisting>
-#ifdef PG_MODULE_MAGIC
 PG_MODULE_MAGIC;
-#endif
 </programlisting>
-
-    The <literal>#ifdef</> test can be omitted if the code doesn't
-    need to compile against pre-8.2 <productname>PostgreSQL</productname>
-    releases.
    </para>
 
    <para>
@@ -2214,9 +2207,7 @@ PG_FUNCTION_INFO_V1(funcname);
 #include "fmgr.h"
 #include "utils/geo_decls.h"
 
-#ifdef PG_MODULE_MAGIC
 PG_MODULE_MAGIC;
-#endif
 
 /* by value */
 
@@ -2554,9 +2545,7 @@ 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
 
 PG_FUNCTION_INFO_V1(c_overpaid);
 
index 3d33b36e66f43e58568b2a24d5f9340b73ac06ec..734947cc98c1c1a62c6718ef4fe4f2d4e48013df 100644 (file)
@@ -46,9 +46,7 @@
 extern PATH *poly2path(POLYGON *poly);
 extern void regress_lseg_construct(LSEG *lseg, Point *pt1, Point *pt2);
 
-#ifdef PG_MODULE_MAGIC
 PG_MODULE_MAGIC;
-#endif
 
 
 /*