Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita0ffab3

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

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
externintcube_yyparse();
2224
externvoidcube_yyerror(constchar*message);
2325
externvoidcube_scanner_init(constchar*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
typedefstructremoteConn
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
enumFieldUsage
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
constdoubleEARTH_RADIUS=3958.747716;
1214
constdoubleTWO_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
#defineMAX_FTI_QUERY_LENGTH 8192
9294

9395
externDatumfti(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);

‎contrib/isbn_issn/isbn_issn.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
/*
22
*PostgreSQL type definitions for ISBNs.
33
*
4-
*$PostgreSQL: pgsql/contrib/isbn_issn/isbn_issn.c,v 1.8 2006/03/01 06:30:31 neilc Exp $
4+
*$PostgreSQL: pgsql/contrib/isbn_issn/isbn_issn.c,v 1.9 2006/05/30 22:12:13 tgl Exp $
55
*/
66

77
#include"postgres.h"
88

9+
#include"fmgr.h"
10+
11+
12+
PG_MODULE_MAGIC;
913

1014
/*
1115
*This is the internal storage format for ISBNs.

‎contrib/lo/lo.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
*PostgreSQL definitions for managed Large Objects.
33
*
4-
*$PostgreSQL: pgsql/contrib/lo/lo.c,v 1.15 2005/06/23 00:06:37 tgl Exp $
4+
*$PostgreSQL: pgsql/contrib/lo/lo.c,v 1.16 2006/05/30 22:12:13 tgl Exp $
55
*
66
*/
77

@@ -17,6 +17,7 @@
1717
/* Required for triggers */
1818
#include"commands/trigger.h"
1919

20+
PG_MODULE_MAGIC;
2021

2122
#defineatooid(x) ((Oid) strtoul((x), NULL, 10))
2223

‎contrib/ltree/ltree_op.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* op function for ltree
33
* Teodor Sigaev <teodor@stack.net>
4-
* $PostgreSQL: pgsql/contrib/ltree/ltree_op.c,v 1.11 2006/04/27 18:24:35 tgl Exp $
4+
* $PostgreSQL: pgsql/contrib/ltree/ltree_op.c,v 1.12 2006/05/30 22:12:13 tgl Exp $
55
*/
66

77
#include"ltree.h"
@@ -12,6 +12,7 @@
1212
#include"utils/selfuncs.h"
1313
#include"utils/syscache.h"
1414

15+
PG_MODULE_MAGIC;
1516

1617
/* compare functions */
1718
PG_FUNCTION_INFO_V1(ltree_cmp);

‎contrib/pg_buffercache/pg_buffercache_pages.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* pg_buffercache_pages.c
44
* display some contents of the buffer cache
55
*
6-
* $PostgreSQL: pgsql/contrib/pg_buffercache/pg_buffercache_pages.c,v 1.6 2005/10/15 02:49:05 momjian Exp $
6+
* $PostgreSQL: pgsql/contrib/pg_buffercache/pg_buffercache_pages.c,v 1.7 2006/05/30 22:12:13 tgl Exp $
77
*-------------------------------------------------------------------------
88
*/
99
#include"postgres.h"
@@ -21,6 +21,8 @@ extern DLLIMPORT BufferDesc *BufferDescriptors;
2121
externDLLIMPORTvolatileuint32InterruptHoldoffCount;
2222
#endif
2323

24+
PG_MODULE_MAGIC;
25+
2426
Datumpg_buffercache_pages(PG_FUNCTION_ARGS);
2527

2628

‎contrib/pg_freespacemap/pg_freespacemap.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* pg_freespacemap.c
44
* display some contents of the free space relation and page maps.
55
*
6-
* $PostgreSQL: pgsql/contrib/pg_freespacemap/pg_freespacemap.c,v 1.5 2006/05/04 20:39:34 tgl Exp $
6+
* $PostgreSQL: pgsql/contrib/pg_freespacemap/pg_freespacemap.c,v 1.6 2006/05/30 22:12:13 tgl Exp $
77
*-------------------------------------------------------------------------
88
*/
99
#include"postgres.h"
@@ -24,6 +24,8 @@ extern DLLIMPORT intMaxFSMRelations;
2424
externDLLIMPORTvolatileuint32InterruptHoldoffCount;
2525
#endif
2626

27+
PG_MODULE_MAGIC;
28+
2729
Datumpg_freespacemap_pages(PG_FUNCTION_ARGS);
2830
Datumpg_freespacemap_relations(PG_FUNCTION_ARGS);
2931

‎contrib/pg_trgm/trgm_op.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#include"utils/array.h"
44
#include"catalog/pg_type.h"
55

6+
PG_MODULE_MAGIC;
7+
68
float4trgm_limit=0.3;
79

810
PG_FUNCTION_INFO_V1(set_limit);

‎contrib/pgcrypto/pgcrypto.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2727
* SUCH DAMAGE.
2828
*
29-
* $PostgreSQL: pgsql/contrib/pgcrypto/pgcrypto.c,v 1.20 2005/10/15 02:49:06 momjian Exp $
29+
* $PostgreSQL: pgsql/contrib/pgcrypto/pgcrypto.c,v 1.21 2006/05/30 22:12:13 tgl Exp $
3030
*/
3131

3232
#include"postgres.h"
@@ -40,6 +40,8 @@
4040
#include"px-crypt.h"
4141
#include"pgcrypto.h"
4242

43+
PG_MODULE_MAGIC;
44+
4345
/* private stuff */
4446

4547
typedefint (*PFN) (constchar*name,void**res);

‎contrib/pgrowlocks/pgrowlocks.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $PostgreSQL: pgsql/contrib/pgrowlocks/pgrowlocks.c,v 1.2 2006/04/25 00:40:54 ishii Exp $
2+
* $PostgreSQL: pgsql/contrib/pgrowlocks/pgrowlocks.c,v 1.3 2006/05/30 22:12:13 tgl Exp $
33
*
44
* Copyright (c) 2005-2006Tatsuo Ishii
55
*
@@ -37,6 +37,8 @@
3737
#include"storage/procarray.h"
3838
#endif
3939

40+
PG_MODULE_MAGIC;
41+
4042
PG_FUNCTION_INFO_V1(pgrowlocks);
4143

4244
externDatumpgrowlocks(PG_FUNCTION_ARGS);

‎contrib/pgstattuple/pgstattuple.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $PostgreSQL: pgsql/contrib/pgstattuple/pgstattuple.c,v 1.20 2005/10/15 02:49:06 momjian Exp $
2+
* $PostgreSQL: pgsql/contrib/pgstattuple/pgstattuple.c,v 1.21 2006/05/30 22:12:13 tgl Exp $
33
*
44
* Copyright (c) 2001,2002Tatsuo Ishii
55
*
@@ -32,6 +32,8 @@
3232
#include"utils/builtins.h"
3333

3434

35+
PG_MODULE_MAGIC;
36+
3537
PG_FUNCTION_INFO_V1(pgstattuple);
3638
PG_FUNCTION_INFO_V1(pgstattuplebyid);
3739

‎contrib/seg/seg.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#define GIST_QUERY_DEBUG
2020
*/
2121

22+
PG_MODULE_MAGIC;
23+
2224
externintseg_yyparse();
2325
externvoidseg_yyerror(constchar*message);
2426
externvoidseg_scanner_init(constchar*str);

‎contrib/spi/autoinc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#include"commands/trigger.h"/* -"- and triggers */
44
#include"commands/sequence.h"/* for nextval() */
55

6+
PG_MODULE_MAGIC;
7+
68
externDatumautoinc(PG_FUNCTION_ARGS);
79

810
PG_FUNCTION_INFO_V1(autoinc);

‎contrib/spi/insert_username.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* insert_username.c
33
* $Modified: Thu Oct 16 08:13:42 1997 by brook $
4-
* $PostgreSQL: pgsql/contrib/spi/insert_username.c,v 1.13 2006/03/11 04:38:30 momjian Exp $
4+
* $PostgreSQL: pgsql/contrib/spi/insert_username.c,v 1.14 2006/05/30 22:12:13 tgl Exp $
55
*
66
* insert user name in response to a trigger
77
* usage: insert_username (column_name)
@@ -11,6 +11,8 @@
1111
#include"commands/trigger.h"/* -"- and triggers */
1212
#include"miscadmin.h"/* for GetUserName() */
1313

14+
PG_MODULE_MAGIC;
15+
1416
externDatuminsert_username(PG_FUNCTION_ARGS);
1517

1618
PG_FUNCTION_INFO_V1(insert_username);

‎contrib/spi/moddatetime.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
moddatetime.c
33
4-
$PostgreSQL: pgsql/contrib/spi/moddatetime.c,v 1.12 2006/03/11 04:38:30 momjian Exp $
4+
$PostgreSQL: pgsql/contrib/spi/moddatetime.c,v 1.13 2006/05/30 22:12:13 tgl Exp $
55
66
What is this?
77
It is a function to be called from a trigger for the purpose of updating
@@ -17,6 +17,8 @@ OH, me, I'm Terry Mackintosh <terry@terrym.com>
1717
#include"executor/spi.h"/* this is what you need to work with SPI */
1818
#include"commands/trigger.h"/* -"- and triggers */
1919

20+
PG_MODULE_MAGIC;
21+
2022
externDatummoddatetime(PG_FUNCTION_ARGS);
2123

2224
PG_FUNCTION_INFO_V1(moddatetime);

‎contrib/spi/refint.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#include<ctype.h>
99

1010

11+
PG_MODULE_MAGIC;
12+
1113
externDatumcheck_primary_key(PG_FUNCTION_ARGS);
1214
externDatumcheck_foreign_key(PG_FUNCTION_ARGS);
1315

‎contrib/spi/timetravel.c

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

1515
#defineABSTIMEOID702/* it should be in pg_type.h */
1616

17+
PG_MODULE_MAGIC;
18+
1719
/* AbsoluteTime currabstime(void); */
1820
Datumtimetravel(PG_FUNCTION_ARGS);
1921
Datumset_timetravel(PG_FUNCTION_ARGS);

‎contrib/tablefunc/tablefunc.c

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

4343
#include"tablefunc.h"
4444

45+
PG_MODULE_MAGIC;
46+
4547
staticintload_categories_hash(char*cats_sql,MemoryContextper_query_ctx);
4648
staticTuplestorestate*get_crosstab_tuplestore(char*sql,
4749
intnum_categories,

‎contrib/tsearch2/ts_cfg.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#include"common.h"
2121
#include"tsvector.h"
2222

23+
PG_MODULE_MAGIC;
24+
2325
#defineIGNORE_LONGLEXEME1
2426

2527
/*********top interface**********/

‎contrib/userlock/user_locks.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#include"user_locks.h"
1919

20+
PG_MODULE_MAGIC;
2021

2122
#defineSET_LOCKTAG_USERLOCK(locktag,id1,id2) \
2223
((locktag).locktag_field1 = MyDatabaseId, \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp