1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-28 18:48:04 +03:00

If a loadable module has wrong values in its magic block, spell out

exactly what they are in the complaint message.  Marko Kreen,
some editorialization by me.
This commit is contained in:
Tom Lane
2008-09-03 22:34:50 +00:00
parent fbb2b69c8f
commit ba9f37f066
2 changed files with 97 additions and 19 deletions

View File

@@ -11,7 +11,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/fmgr.h,v 1.59 2008/05/15 00:17:41 tgl Exp $
* $PostgreSQL: pgsql/src/include/fmgr.h,v 1.60 2008/09/03 22:34:50 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -357,6 +357,9 @@ extern int no_such_variable
*
* Note: we compare magic blocks with memcmp(), so there had better not be
* any alignment pad bytes in them.
*
* Note: when changing the contents of magic blocks, be sure to adjust the
* incompatible_module_error() function in dfmgr.c.
*-------------------------------------------------------------------------
*/