Skip to content

Instantly share code, notes, and snippets.

@RhodiumToad
Last active August 1, 2017 00:12
Show Gist options
  • Save RhodiumToad/763c1a4c5185f618d04acc999f763a2f to your computer and use it in GitHub Desktop.
Save RhodiumToad/763c1a4c5185f618d04acc999f763a2f to your computer and use it in GitHub Desktop.
#include "postgres.h"
#include "fmgr.h"
#include "utils/guc.h"
PG_MODULE_MAGIC;
void _PG_init(void);
static char *query_group = NULL;
/*
* Module load callback
*/
void
_PG_init(void)
{
/* Define custom GUC variables. */
DefineCustomStringVariable("query_group",
"Redshift compatibility, ignored.",
NULL,
&query_group,
"",
PGC_USERSET,
0,
NULL,
NULL,
NULL);
}
MODULE_big = guchack
OBJS = guchack.o
PG_CONFIG = pg_config
PGXS = $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment