Skip to content

Commit a0ffab3

Browse files
committed
Magic blocks don't do us any good unless we use 'em ... so install one
in every shared library.
1 parent e95703e commit a0ffab3

File tree

58 files changed

+160
-47
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+160
-47
lines changed

contrib/btree_gist/btree_gist.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "btree_gist.h"
22

3+
PG_MODULE_MAGIC;
4+
35
PG_FUNCTION_INFO_V1(gbt_decompress);
46
PG_FUNCTION_INFO_V1(gbtreekey_in);
57
PG_FUNCTION_INFO_V1(gbtreekey_out);

contrib/chkpass/chkpass.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* darcy@druid.net
55
* http://www.druid.net/darcy/
66
*
7-
* $PostgreSQL: pgsql/contrib/chkpass/chkpass.c,v 1.15 2006/03/19 22:22:55 neilc Exp $
7+
* $PostgreSQL: pgsql/contrib/chkpass/chkpass.c,v 1.16 2006/05/30 22:12:12 tgl Exp $
88
* best viewed with tabs set to 4
99
*/
1010

@@ -20,6 +20,8 @@
2020

2121
#include "fmgr.h"
2222

23+
PG_MODULE_MAGIC;
24+
2325
/*
2426
* This type encrypts it's input unless the first character is a colon.
2527
* The output is the encrypted form with a leading colon. The output

contrib/cube/cube.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/******************************************************************************
2-
$PostgreSQL: pgsql/contrib/cube/cube.c,v 1.24 2006/03/11 04:38:28 momjian Exp $
2+
$PostgreSQL: pgsql/contrib/cube/cube.c,v 1.25 2006/05/30 22:12:12 tgl Exp $
33
44
This file contains routines that can be bound to a Postgres backend and
55
called by the backend in the process of processing queries. The calling
@@ -18,6 +18,8 @@
1818

1919
#include "cubedata.h"
2020

21+
PG_MODULE_MAGIC;
22+
2123
extern int cube_yyparse();
2224
extern void cube_yyerror(const char *message);
2325
extern void cube_scanner_init(const char *str);

contrib/dblink/dblink.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Darko Prenosil <Darko.Prenosil@finteh.hr>
99
* Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
1010
*
11-
* $PostgreSQL: pgsql/contrib/dblink/dblink.c,v 1.54 2006/03/11 04:38:29 momjian Exp $
11+
* $PostgreSQL: pgsql/contrib/dblink/dblink.c,v 1.55 2006/05/30 22:12:12 tgl Exp $
1212
* Copyright (c) 2001-2006, PostgreSQL Global Development Group
1313
* ALL RIGHTS RESERVED;
1414
*
@@ -61,6 +61,8 @@
6161

6262
#include "dblink.h"
6363

64+
PG_MODULE_MAGIC;
65+
6466
typedef struct remoteConn
6567
{
6668
PGconn *conn; /* Hold the remote connection */

contrib/dbmirror/pending.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/****************************************************************************
22
* pending.c
3-
* $Id: pending.c,v 1.24 2006/05/19 02:38:47 momjian Exp $
4-
* $PostgreSQL: pgsql/contrib/dbmirror/pending.c,v 1.24 2006/05/19 02:38:47 momjian Exp $
3+
* $Id: pending.c,v 1.25 2006/05/30 22:12:12 tgl Exp $
4+
* $PostgreSQL: pgsql/contrib/dbmirror/pending.c,v 1.25 2006/05/30 22:12:12 tgl Exp $
55
*
66
* This file contains a trigger for Postgresql-7.x to record changes to tables
77
* to a pending table for mirroring.
@@ -38,6 +38,8 @@
3838
#include "utils/lsyscache.h"
3939
#include "utils/array.h"
4040

41+
PG_MODULE_MAGIC;
42+
4143
enum FieldUsage
4244
{
4345
PRIMARY = 0, NONPRIMARY, ALL, NUM_FIELDUSAGE

contrib/earthdistance/earthdistance.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/contrib/earthdistance/earthdistance.c,v 1.10 2006/03/11 04:38:29 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/contrib/earthdistance/earthdistance.c,v 1.11 2006/05/30 22:12:12 tgl Exp $ */
22

33
#include "postgres.h"
44

@@ -7,6 +7,8 @@
77
#include "utils/geo_decls.h" /* for Pt */
88

99

10+
PG_MODULE_MAGIC;
11+
1012
/* Earth's radius is in statute miles. */
1113
const double EARTH_RADIUS = 3958.747716;
1214
const double TWO_PI = 2.0 * M_PI;

contrib/fulltextindex/fti.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/*
99
* Trigger function accepts variable number of arguments:
1010
*
11-
* $PostgreSQL: pgsql/contrib/fulltextindex/fti.c,v 1.26 2006/03/11 04:38:29 momjian Exp $
11+
* $PostgreSQL: pgsql/contrib/fulltextindex/fti.c,v 1.27 2006/05/30 22:12:12 tgl Exp $
1212
*
1313
* 1. relation in which to store the substrings
1414
* 2. fields to extract substrings from
@@ -88,6 +88,8 @@
8888
* that can build the final query automagically?
8989
*/
9090

91+
PG_MODULE_MAGIC;
92+
9193
#define MAX_FTI_QUERY_LENGTH 8192
9294

9395
extern Datum fti(PG_FUNCTION_ARGS);

contrib/fuzzystrmatch/fuzzystrmatch.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Joe Conway <mail@joeconway.com>
77
*
8-
* $PostgreSQL: pgsql/contrib/fuzzystrmatch/fuzzystrmatch.c,v 1.20 2006/03/19 22:22:56 neilc Exp $
8+
* $PostgreSQL: pgsql/contrib/fuzzystrmatch/fuzzystrmatch.c,v 1.21 2006/05/30 22:12:13 tgl Exp $
99
* Copyright (c) 2001-2006, PostgreSQL Global Development Group
1010
* ALL RIGHTS RESERVED;
1111
*
@@ -45,6 +45,8 @@
4545

4646
#include "fuzzystrmatch.h"
4747

48+
PG_MODULE_MAGIC;
49+
4850
/*
4951
* Calculates Levenshtein Distance between two strings.
5052
* Uses simplest and fastest cost model only, i.e. assumes a cost of 1 for

contrib/intagg/int_aggregate.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* DMN Digital Music Network.
66
* www.dmn.com
77
*
8-
* $PostgreSQL: pgsql/contrib/intagg/int_aggregate.c,v 1.23 2006/03/11 04:38:29 momjian Exp $
8+
* $PostgreSQL: pgsql/contrib/intagg/int_aggregate.c,v 1.24 2006/05/30 22:12:13 tgl Exp $
99
*
1010
* Copyright (C) Digital Music Network
1111
* December 20, 2001
@@ -34,6 +34,7 @@
3434
#include "utils/memutils.h"
3535
#include "utils/lsyscache.h"
3636

37+
PG_MODULE_MAGIC;
3738

3839
/*
3940
* This is actually a postgres version of a one dimensional array.

contrib/intarray/_int_op.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include "lib/stringinfo.h"
44

5+
PG_MODULE_MAGIC;
6+
57
PG_FUNCTION_INFO_V1(_int_different);
68
PG_FUNCTION_INFO_V1(_int_same);
79
PG_FUNCTION_INFO_V1(_int_contains);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy