Skip to content

Commit

Permalink
merge: fix merging 15.10 conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdrivingduck committed Nov 26, 2024
1 parent ce02698 commit bdbd7e2
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 161 deletions.
12 changes: 1 addition & 11 deletions src/backend/backup/basebackup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1413,18 +1413,8 @@ sendDir(bbsink *sink, const char *path, int basepathlen, bool sizeonly,
}

/* Allow symbolic links in pg_tblspc only */
<<<<<<< HEAD
snprintf(pathbuf2, MAXPGPATH, "%s/pg_tblspc", is_shared_data ? polar_datadir : ".");
if (strcmp(path, pathbuf2) == 0 &&
#ifndef WIN32
S_ISLNK(statbuf.st_mode)
#else
pgwin32_is_junction(pathbuf)
#endif
)
=======
if (strcmp(path, "./pg_tblspc") == 0 && S_ISLNK(statbuf.st_mode))
>>>>>>> REL_15_10
if (strcmp(path, pathbuf2) == 0 && S_ISLNK(statbuf.st_mode))
{
#if defined(HAVE_READLINK) || defined(WIN32)
char linkpath[MAXPGPATH];
Expand Down
5 changes: 0 additions & 5 deletions src/backend/executor/nodeHashjoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1524,18 +1524,13 @@ void
ExecHashJoinReInitializeDSM(HashJoinState *state, ParallelContext *cxt)
{
int plan_node_id = state->js.ps.plan->plan_node_id;
<<<<<<< HEAD
ParallelHashJoinState *pstate =
shm_toc_lookup(cxt->toc, plan_node_id, false);
=======
ParallelHashJoinState *pstate;

/* Nothing to do if we failed to create a DSM segment. */
if (cxt->seg == NULL)
return;

pstate = shm_toc_lookup(cxt->toc, plan_node_id, false);
>>>>>>> REL_15_10

/*
* It would be possible to reuse the shared hash table in single-batch
Expand Down
4 changes: 0 additions & 4 deletions src/backend/jit/llvm/llvmjit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1319,15 +1319,11 @@ llvm_create_object_layer(void *Ctx, LLVMOrcExecutionSessionRef ES, const char *T
{
#ifdef USE_LLVM_BACKPORT_SECTION_MEMORY_MANAGER
LLVMOrcObjectLayerRef objlayer =
<<<<<<< HEAD
LLVMOrcCreateRTDyldObjectLinkingLayerWithSectionMemoryManager(ES);
=======
LLVMOrcCreateRTDyldObjectLinkingLayerWithSafeSectionMemoryManager(ES);
#else
LLVMOrcObjectLayerRef objlayer =
LLVMOrcCreateRTDyldObjectLinkingLayerWithSectionMemoryManager(ES);
#endif
>>>>>>> REL_15_10

#if defined(HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER) && HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER
if (jit_debugging_support)
Expand Down
4 changes: 0 additions & 4 deletions src/backend/utils/misc/guc.c
Original file line number Diff line number Diff line change
Expand Up @@ -6688,11 +6688,7 @@ static struct config_string ConfigureNamesString[] =

{
{"restrict_nonsystem_relation_kind", PGC_USERSET, CLIENT_CONN_STATEMENT,
<<<<<<< HEAD
gettext_noop("Sets relation kinds of non-system relation to restrict use."),
=======
gettext_noop("Prohibits access to non-system relations of specified kinds."),
>>>>>>> REL_15_10
NULL,
GUC_LIST_INPUT | GUC_NOT_IN_SAMPLE
},
Expand Down
68 changes: 0 additions & 68 deletions src/test/regress/expected/advisory_lock.out
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,12 @@ SELECT
(1 row)

SELECT locktype, classid, objid, objsubid, mode, granted
<<<<<<< HEAD
FROM pg_locks pl JOIN pg_stat_activity pa USING (pid)
WHERE
locktype = 'advisory'
AND pa.datname = current_database()
AND pa.application_name = 'pg_regress/advisory_lock'
ORDER BY 1, 2, 3, 4;
=======
FROM pg_locks WHERE locktype = 'advisory' AND database = :datoid
ORDER BY classid, objid, objsubid;
>>>>>>> REL_15_10
locktype | classid | objid | objsubid | mode | granted
----------+---------+-------+----------+---------------+---------
advisory | 0 | 1 | 1 | ExclusiveLock | t
Expand All @@ -38,14 +33,10 @@ SELECT pg_advisory_unlock_all();

(1 row)

<<<<<<< HEAD
SELECT count(*) FROM pg_locks pl JOIN pg_stat_activity pa USING (pid)
WHERE locktype = 'advisory'
AND pa.datname = current_database()
AND pa.application_name = 'pg_regress/advisory_lock';
=======
SELECT count(*) FROM pg_locks WHERE locktype = 'advisory' AND database = :datoid;
>>>>>>> REL_15_10
count
-------
4
Expand All @@ -66,14 +57,10 @@ WARNING: you don't own a lock of type ShareLock

-- automatically release xact locks at commit
COMMIT;
<<<<<<< HEAD
SELECT count(*) FROM pg_locks pl JOIN pg_stat_activity pa USING (pid)
WHERE locktype = 'advisory'
AND pa.datname = current_database()
AND pa.application_name = 'pg_regress/advisory_lock';
=======
SELECT count(*) FROM pg_locks WHERE locktype = 'advisory' AND database = :datoid;
>>>>>>> REL_15_10
count
-------
0
Expand All @@ -90,17 +77,12 @@ SELECT
(1 row)

SELECT locktype, classid, objid, objsubid, mode, granted
<<<<<<< HEAD
FROM pg_locks pl JOIN pg_stat_activity pa USING (pid)
WHERE
locktype = 'advisory'
AND pa.datname = current_database()
AND pa.application_name = 'pg_regress/advisory_lock'
ORDER BY 1, 2, 3, 4;
=======
FROM pg_locks WHERE locktype = 'advisory' AND database = :datoid
ORDER BY classid, objid, objsubid;
>>>>>>> REL_15_10
locktype | classid | objid | objsubid | mode | granted
----------+---------+-------+----------+---------------+---------
advisory | 0 | 1 | 1 | ExclusiveLock | t
Expand All @@ -119,17 +101,12 @@ SELECT

ROLLBACK;
SELECT locktype, classid, objid, objsubid, mode, granted
<<<<<<< HEAD
FROM pg_locks pl JOIN pg_stat_activity pa USING (pid)
WHERE
locktype = 'advisory'
AND pa.datname = current_database()
AND pa.application_name = 'pg_regress/advisory_lock'
ORDER BY 1, 2, 3, 4;
=======
FROM pg_locks WHERE locktype = 'advisory' AND database = :datoid
ORDER BY classid, objid, objsubid;
>>>>>>> REL_15_10
locktype | classid | objid | objsubid | mode | granted
----------+---------+-------+----------+---------------+---------
advisory | 0 | 1 | 1 | ExclusiveLock | t
Expand All @@ -153,14 +130,10 @@ WARNING: you don't own a lock of type ShareLock
t | f | t | f | t | f | t | f
(1 row)

<<<<<<< HEAD
SELECT count(*) FROM pg_locks pl JOIN pg_stat_activity pa USING (pid)
WHERE locktype = 'advisory'
AND pa.datname = current_database()
AND pa.application_name = 'pg_regress/advisory_lock';
=======
SELECT count(*) FROM pg_locks WHERE locktype = 'advisory' AND database = :datoid;
>>>>>>> REL_15_10
count
-------
0
Expand All @@ -177,17 +150,12 @@ SELECT
(1 row)

SELECT locktype, classid, objid, objsubid, mode, granted
<<<<<<< HEAD
FROM pg_locks pl JOIN pg_stat_activity pa USING (pid)
WHERE
locktype = 'advisory'
AND pa.datname = current_database()
AND pa.application_name = 'pg_regress/advisory_lock'
ORDER BY 1, 2, 3, 4;
=======
FROM pg_locks WHERE locktype = 'advisory' AND database = :datoid
ORDER BY classid, objid, objsubid;
>>>>>>> REL_15_10
locktype | classid | objid | objsubid | mode | granted
----------+---------+-------+----------+---------------+---------
advisory | 0 | 1 | 1 | ExclusiveLock | t
Expand All @@ -206,17 +174,12 @@ SELECT

ROLLBACK;
SELECT locktype, classid, objid, objsubid, mode, granted
<<<<<<< HEAD
FROM pg_locks pl JOIN pg_stat_activity pa USING (pid)
WHERE
locktype = 'advisory'
AND pa.datname = current_database()
AND pa.application_name = 'pg_regress/advisory_lock'
ORDER BY 1, 2, 3, 4;
=======
FROM pg_locks WHERE locktype = 'advisory' AND database = :datoid
ORDER BY classid, objid, objsubid;
>>>>>>> REL_15_10
locktype | classid | objid | objsubid | mode | granted
----------+---------+-------+----------+---------------+---------
advisory | 0 | 1 | 1 | ExclusiveLock | t
Expand All @@ -232,14 +195,10 @@ SELECT pg_advisory_unlock_all();

(1 row)

<<<<<<< HEAD
SELECT count(*) FROM pg_locks pl JOIN pg_stat_activity pa USING (pid)
WHERE locktype = 'advisory'
AND pa.datname = current_database()
AND pa.application_name = 'pg_regress/advisory_lock';
=======
SELECT count(*) FROM pg_locks WHERE locktype = 'advisory' AND database = :datoid;
>>>>>>> REL_15_10
count
-------
0
Expand All @@ -258,17 +217,12 @@ SELECT
(1 row)

SELECT locktype, classid, objid, objsubid, mode, granted
<<<<<<< HEAD
FROM pg_locks pl JOIN pg_stat_activity pa USING (pid)
WHERE
locktype = 'advisory'
AND pa.datname = current_database()
AND pa.application_name = 'pg_regress/advisory_lock'
ORDER BY 1, 2, 3, 4;
=======
FROM pg_locks WHERE locktype = 'advisory' AND database = :datoid
ORDER BY classid, objid, objsubid;
>>>>>>> REL_15_10
locktype | classid | objid | objsubid | mode | granted
----------+---------+-------+----------+---------------+---------
advisory | 0 | 1 | 1 | ExclusiveLock | t
Expand All @@ -278,14 +232,10 @@ SELECT locktype, classid, objid, objsubid, mode, granted
(4 rows)

COMMIT;
<<<<<<< HEAD
SELECT count(*) FROM pg_locks pl JOIN pg_stat_activity pa USING (pid)
WHERE locktype = 'advisory'
AND pa.datname = current_database()
AND pa.application_name = 'pg_regress/advisory_lock';
=======
SELECT count(*) FROM pg_locks WHERE locktype = 'advisory' AND database = :datoid;
>>>>>>> REL_15_10
count
-------
0
Expand All @@ -303,17 +253,12 @@ SELECT
(1 row)

SELECT locktype, classid, objid, objsubid, mode, granted
<<<<<<< HEAD
FROM pg_locks pl JOIN pg_stat_activity pa USING (pid)
WHERE
locktype = 'advisory'
AND pa.datname = current_database()
AND pa.application_name = 'pg_regress/advisory_lock'
ORDER BY 1, 2, 3, 4;
=======
FROM pg_locks WHERE locktype = 'advisory' AND database = :datoid
ORDER BY classid, objid, objsubid;
>>>>>>> REL_15_10
locktype | classid | objid | objsubid | mode | granted
----------+---------+-------+----------+---------------+---------
advisory | 0 | 1 | 1 | ExclusiveLock | t
Expand All @@ -332,14 +277,10 @@ SELECT
t | t | t | t | t | t | t | t
(1 row)

<<<<<<< HEAD
SELECT count(*) FROM pg_locks pl JOIN pg_stat_activity pa USING (pid)
WHERE locktype = 'advisory'
AND pa.datname = current_database()
AND pa.application_name = 'pg_regress/advisory_lock';
=======
SELECT count(*) FROM pg_locks WHERE locktype = 'advisory' AND database = :datoid;
>>>>>>> REL_15_10
count
-------
0
Expand All @@ -357,17 +298,12 @@ SELECT
(1 row)

SELECT locktype, classid, objid, objsubid, mode, granted
<<<<<<< HEAD
FROM pg_locks pl JOIN pg_stat_activity pa USING (pid)
WHERE
locktype = 'advisory'
AND pa.datname = current_database()
AND pa.application_name = 'pg_regress/advisory_lock'
ORDER BY 1, 2, 3, 4;
=======
FROM pg_locks WHERE locktype = 'advisory' AND database = :datoid
ORDER BY classid, objid, objsubid;
>>>>>>> REL_15_10
locktype | classid | objid | objsubid | mode | granted
----------+---------+-------+----------+---------------+---------
advisory | 0 | 1 | 1 | ExclusiveLock | t
Expand All @@ -382,14 +318,10 @@ SELECT pg_advisory_unlock_all();

(1 row)

<<<<<<< HEAD
SELECT count(*) FROM pg_locks pl JOIN pg_stat_activity pa USING (pid)
WHERE locktype = 'advisory'
AND pa.datname = current_database()
AND pa.application_name = 'pg_regress/advisory_lock';
=======
SELECT count(*) FROM pg_locks WHERE locktype = 'advisory' AND database = :datoid;
>>>>>>> REL_15_10
count
-------
0
Expand Down
Loading

0 comments on commit bdbd7e2

Please sign in to comment.