PostgreSQL Source Code
git master
Loading...
Searching...
No Matches
test_ext.c
Go to the documentation of this file.
1
/*
2
* test_ext.c
3
*
4
* Dummy C extension for testing extension_control_path with pg_upgrade
5
*
6
* Portions Copyright (c) 2026, PostgreSQL Global Development Group
7
*/
8
#include "
postgres.h
"
9
10
#include "
fmgr.h
"
11
12
PG_MODULE_MAGIC
;
13
14
PG_FUNCTION_INFO_V1
(
test_ext
);
15
16
Datum
17
test_ext
(
PG_FUNCTION_ARGS
)
18
{
19
ereport
(
NOTICE
,
20
(
errmsg
(
"running successful"
)));
21
PG_RETURN_VOID
();
22
}
NOTICE
#define NOTICE
Definition
elog.h:35
ereport
#define ereport(elevel,...)
Definition
elog.h:150
fmgr.h
PG_RETURN_VOID
#define PG_RETURN_VOID()
Definition
fmgr.h:350
PG_FUNCTION_INFO_V1
#define PG_FUNCTION_INFO_V1(funcname)
Definition
fmgr.h:417
PG_FUNCTION_ARGS
#define PG_FUNCTION_ARGS
Definition
fmgr.h:193
errmsg
static char * errmsg
Definition
oauth_hook_client.c:61
postgres.h
Datum
uint64_t Datum
Definition
postgres.h:70
PG_MODULE_MAGIC
PG_MODULE_MAGIC
Definition
test_ext.c:12
test_ext
Datum test_ext(PG_FUNCTION_ARGS)
Definition
test_ext.c:17
src
test
modules
test_extensions
test_ext.c
Generated on Sat Mar 21 2026 06:13:18 for PostgreSQL Source Code by
1.9.8