aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/ipc/signalfuncs.c
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2024-03-04 12:39:22 +0100
committerDaniel Gustafsson <dgustafsson@postgresql.org>2024-03-04 12:39:22 +0100
commitcc09e6549f2bd2142b154d7d9802fb7a0abc643e (patch)
tree01e5f536c0daed5728b833cbebe319774b7ea181 /src/backend/storage/ipc/signalfuncs.c
parentdbbca2cf299b81299112ca6ada671a36235ec008 (diff)
downloadpostgresql-cc09e6549f2bd2142b154d7d9802fb7a0abc643e.tar.gz
postgresql-cc09e6549f2bd2142b154d7d9802fb7a0abc643e.zip
Remove the adminpack contrib extension
The adminpack extension was only used to support pgAdmin III, which in turn was declared EOL many years ago. Removing the extension also allows us to remove functions from core as well which were only used to support old version of adminpack. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Nathan Bossart <nathandbossart@gmail.com> Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Discussion: https://postgr.es/m/CALj2ACUmL5TraYBUBqDZBi1C+Re8_=SekqGYqYprj_W8wygQ8w@mail.gmail.com
Diffstat (limited to 'src/backend/storage/ipc/signalfuncs.c')
-rw-r--r--src/backend/storage/ipc/signalfuncs.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/src/backend/storage/ipc/signalfuncs.c b/src/backend/storage/ipc/signalfuncs.c
index 792e80ff900..88e9bf8125d 100644
--- a/src/backend/storage/ipc/signalfuncs.c
+++ b/src/backend/storage/ipc/signalfuncs.c
@@ -273,38 +273,11 @@ pg_reload_conf(PG_FUNCTION_ARGS)
/*
* Rotate log file
*
- * This function is kept to support adminpack 1.0.
- */
-Datum
-pg_rotate_logfile(PG_FUNCTION_ARGS)
-{
- if (!superuser())
- ereport(ERROR,
- (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
- errmsg("must be superuser to rotate log files with adminpack 1.0"),
- /* translator: %s is a SQL function name */
- errhint("Consider using %s, which is part of core, instead.",
- "pg_logfile_rotate()")));
-
- if (!Logging_collector)
- {
- ereport(WARNING,
- (errmsg("rotation not possible because log collection not active")));
- PG_RETURN_BOOL(false);
- }
-
- SendPostmasterSignal(PMSIGNAL_ROTATE_LOGFILE);
- PG_RETURN_BOOL(true);
-}
-
-/*
- * Rotate log file
- *
* Permission checking for this function is managed through the normal
* GRANT system.
*/
Datum
-pg_rotate_logfile_v2(PG_FUNCTION_ARGS)
+pg_rotate_logfile(PG_FUNCTION_ARGS)
{
if (!Logging_collector)
{