Skip to content

Commit

Permalink
windows fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cevian committed Mar 17, 2024
1 parent 04e9cac commit d13d088
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tsl/src/compression/create.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include <utils/datum.h>
#include <utils/syscache.h>
#include <utils/typcache.h>
#include <catalog/namespace.h>

#include "compat/compat.h"
#include "ts_catalog/catalog.h"
Expand Down Expand Up @@ -903,7 +902,7 @@ compression_setting_segmentby_get_default(const Hypertable *ht)
ArrayType *column_res = NULL;
Datum datum;
text *message;
char *original_search_path = pstrdup(namespace_search_path);
char *original_search_path = pstrdup(GetConfigOption("search_path", false, true));
bool isnull;
MemoryContext upper = CurrentMemoryContext;
MemoryContext old;
Expand Down Expand Up @@ -974,6 +973,7 @@ compression_setting_segmentby_get_default(const Hypertable *ht)
res = SPI_exec(command.data, 0);
if (res < 0)
ereport(ERROR, (errcode(ERRCODE_INTERNAL_ERROR), (errmsg("could not reset search_path"))));
pfree(original_search_path);

pfree(command.data);

Expand Down Expand Up @@ -1014,7 +1014,7 @@ compression_setting_orderby_get_default(Hypertable *ht, ArrayType *segmentby)
MemoryContext upper = CurrentMemoryContext;
MemoryContext old;
char *orderby;
char *original_search_path = pstrdup(namespace_search_path);
char *original_search_path = pstrdup(GetConfigOption("search_path", false, true));
int32 confidence = -1;

Oid types[] = { TEXTARRAYOID };
Expand Down Expand Up @@ -1095,7 +1095,7 @@ compression_setting_orderby_get_default(Hypertable *ht, ArrayType *segmentby)
res = SPI_exec(command.data, 0);
if (res < 0)
ereport(ERROR, (errcode(ERRCODE_INTERNAL_ERROR), (errmsg("could not reset search_path"))));

pfree(original_search_path);
pfree(command.data);

res = SPI_finish();
Expand Down

0 comments on commit d13d088

Please sign in to comment.