* Copyright (c) 2012-2013, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * src/backend/replication/logicalfuncs.c
+ * src/backend/replication/slotfuncs.c
*
*/
#include "access/htup_details.h"
-#include "nodes/makefuncs.h"
-
#include "utils/builtins.h"
#include "replication/slot.h"
-#include "storage/fd.h"
-
Datum create_physical_replication_slot(PG_FUNCTION_ARGS);
Datum drop_replication_slot(PG_FUNCTION_ARGS);
if (get_call_result_type(fcinfo, NULL, &tupdesc) != TYPEFUNC_COMPOSITE)
elog(ERROR, "return type must be a row type");
- /* FIXME: what permissions do we require? */
+ /*
+ * We don't require any special permission to see this function's data
+ * because nothing should be sensitive. The most critical being the slot
+ * name, which shouldn't contain anything particularly sensitive.
+ */
per_query_ctx = rsinfo->econtext->ecxt_per_query_memory;
oldcontext = MemoryContextSwitchTo(per_query_ctx);