Skip to content

Commit

Permalink
!fixup: use PushAndNullifySearchPath
Browse files Browse the repository at this point in the history
  • Loading branch information
onurctirtir committed Jun 4, 2020
1 parent c1a9e7a commit f5210fd
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/backend/distributed/commands/create_citus_local_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "distributed/master_protocol.h"
#include "distributed/metadata_sync.h"
#include "distributed/multi_partitioning_utils.h"
#include "distributed/namespace_utils.h"
#include "distributed/reference_table_utils.h"
#include "distributed/worker_protocol.h"
#include "utils/builtins.h"
Expand Down Expand Up @@ -491,15 +492,7 @@ GetExplicitIndexNameList(Oid relationId)
int scanKeyCount = 1;
ScanKeyData scanKey[1];

/*
* Set search_path to NIL so that all objects outside of pg_catalog will be
* schema-prefixed. pg_catalog will be added automatically when we call
* PushOverrideSearchPath(), since we set addCatalog to true;
*/
OverrideSearchPath *overridePath = GetOverrideSearchPath(CurrentMemoryContext);
overridePath->schemas = NIL;
overridePath->addCatalog = true;
PushOverrideSearchPath(overridePath);
PushAndNullifySearchPath();

Relation pgIndex = heap_open(IndexRelationId, AccessShareLock);

Expand Down

0 comments on commit f5210fd

Please sign in to comment.