Skip to content

Commit 5fb59da

Browse files
committed
merge: resolve conflicts with PostgreSQL 15.15
1 parent 43cc766 commit 5fb59da

File tree

9 files changed

+25
-82
lines changed

9 files changed

+25
-82
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@
1414
#
1515
# $ git log --pretty=format:"%H # %cd%n# %s" $PGINDENTGITHASH -1 --date=iso
1616

17-
<<<<<<< HEAD
18-
d04649cd9674a5408bada0c1d5f543a931ab675f # 2024-08-29 21:34:37 +0800
19-
# feat: prior indent run for PolarDB-PG 15
20-
=======
2117
f9790ac5464da45eb44470ab831584356381597b # 2025-10-21 09:56:26 -0500
2218
# Re-pgindent brin.c.
23-
>>>>>>> REL_15_15
19+
20+
d04649cd9674a5408bada0c1d5f543a931ab675f # 2024-08-29 21:34:37 +0800
21+
# feat: prior indent run for PolarDB-PG 15
2422

2523
82d0ffae3219e4bc153a1306ce23013d168e04a2 # 2022-06-30 11:03:03 -0400
2624
# pgindent run prior to branching v15.

external/polar_audit/polar_audit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,4 +1317,4 @@ _PG_init(void)
13171317
#endif /* EXEC_BACKEND */
13181318

13191319
inited = true;
1320-
}
1320+
}

src/backend/replication/slot.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,7 @@ SaveSlotToPath(ReplicationSlot *slot, const char *dir, int elevel)
18351835

18361836
pgstat_report_wait_end();
18371837
CloseTransientFile(fd);
1838-
unlink(tmppath);
1838+
polar_unlink(tmppath);
18391839
LWLockRelease(&slot->io_in_progress_lock);
18401840

18411841
/* if write didn't set errno, assume problem is no disk space */
@@ -1856,7 +1856,7 @@ SaveSlotToPath(ReplicationSlot *slot, const char *dir, int elevel)
18561856

18571857
pgstat_report_wait_end();
18581858
CloseTransientFile(fd);
1859-
unlink(tmppath);
1859+
polar_unlink(tmppath);
18601860
LWLockRelease(&slot->io_in_progress_lock);
18611861

18621862
errno = save_errno;
@@ -1872,7 +1872,7 @@ SaveSlotToPath(ReplicationSlot *slot, const char *dir, int elevel)
18721872
{
18731873
int save_errno = errno;
18741874

1875-
unlink(tmppath);
1875+
polar_unlink(tmppath);
18761876
LWLockRelease(&slot->io_in_progress_lock);
18771877

18781878
errno = save_errno;
@@ -1888,7 +1888,7 @@ SaveSlotToPath(ReplicationSlot *slot, const char *dir, int elevel)
18881888
{
18891889
int save_errno = errno;
18901890

1891-
unlink(tmppath);
1891+
polar_unlink(tmppath);
18921892
LWLockRelease(&slot->io_in_progress_lock);
18931893

18941894
errno = save_errno;

src/backend/replication/walsender.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,6 @@ typedef struct
224224
XLogRecPtr last_lsn;
225225
WalTimeSample buffer[LAG_TRACKER_BUFFER_SIZE];
226226
int write_head;
227-
<<<<<<< HEAD
228-
int read_heads[POLAR_NUM_ALL_REP_WAIT_MODE];
229-
WalTimeSample last_read[POLAR_NUM_ALL_REP_WAIT_MODE];
230-
=======
231227
int read_heads[NUM_SYNC_REP_WAIT_MODE];
232228
WalTimeSample last_read[NUM_SYNC_REP_WAIT_MODE];
233229

@@ -244,7 +240,6 @@ typedef struct
244240
* we transition back to normal buffer-based tracking.
245241
*/
246242
WalTimeSample overflowed[NUM_SYNC_REP_WAIT_MODE];
247-
>>>>>>> REL_15_15
248243
} LagTracker;
249244

250245
static LagTracker *lag_tracker;

src/backend/utils/activity/pgstat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,7 @@ pgstat_read_statsfile(void)
16371637
* WARNING, but it would mean that all the statistics
16381638
* are discarded when the environment fails on OOM.
16391639
*/
1640-
elog(ERROR, "could not allocate entry %d/%u/%u",
1640+
elog(ERROR, "could not allocate entry %d/%u/%u",
16411641
key.kind, key.dboid, key.objoid);
16421642
}
16431643

src/bin/pg_dump/t/002_pg_dump.pl

Lines changed: 6 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -513,31 +513,18 @@
513513
createdb => 1,
514514
defaults => 1,
515515
exclude_dump_test_schema => 1,
516-
<<<<<<< HEAD
517516
exclude_test_table => 1,
518517
exclude_test_table_data => 1,
519518
no_toast_compression => 1,
520519
no_blobs => 1,
521520
no_owner => 1,
522521
no_privs => 1,
522+
no_subscriptions => 1,
523+
no_subscriptions_restore => 1,
523524
no_table_access_method => 1,
524525
pg_dumpall_dbprivs => 1,
525526
pg_dumpall_exclude => 1,
526527
schema_only => 1,);
527-
=======
528-
exclude_test_table => 1,
529-
exclude_test_table_data => 1,
530-
no_toast_compression => 1,
531-
no_blobs => 1,
532-
no_owner => 1,
533-
no_privs => 1,
534-
no_subscriptions => 1,
535-
no_subscriptions_restore => 1,
536-
no_table_access_method => 1,
537-
pg_dumpall_dbprivs => 1,
538-
pg_dumpall_exclude => 1,
539-
schema_only => 1,);
540-
>>>>>>> REL_15_15
541528

542529
# This is where the actual tests are defined.
543530
my %tests = (
@@ -3294,33 +3281,19 @@
32943281
defaults => 1,
32953282
exclude_test_table => 1,
32963283
exclude_test_table_data => 1,
3297-
<<<<<<< HEAD
32983284
no_toast_compression => 1,
32993285
no_blobs => 1,
33003286
no_privs => 1,
33013287
no_owner => 1,
3288+
no_subscriptions => 1,
3289+
no_subscriptions_restore => 1,
33023290
no_table_access_method => 1,
33033291
only_dump_test_schema => 1,
33043292
pg_dumpall_dbprivs => 1,
33053293
pg_dumpall_exclude => 1,
33063294
schema_only => 1,
33073295
section_post_data => 1,
33083296
test_schema_plus_blobs => 1,
3309-
=======
3310-
no_toast_compression => 1,
3311-
no_blobs => 1,
3312-
no_privs => 1,
3313-
no_owner => 1,
3314-
no_subscriptions => 1,
3315-
no_subscriptions_restore => 1,
3316-
no_table_access_method => 1,
3317-
only_dump_test_schema => 1,
3318-
pg_dumpall_dbprivs => 1,
3319-
pg_dumpall_exclude => 1,
3320-
schema_only => 1,
3321-
section_post_data => 1,
3322-
test_schema_plus_blobs => 1,
3323-
>>>>>>> REL_15_15
33243297
},
33253298
unlike => {
33263299
exclude_dump_test_schema => 1,
@@ -3381,35 +3354,20 @@
33813354
createdb => 1,
33823355
defaults => 1,
33833356
exclude_dump_test_schema => 1,
3384-
<<<<<<< HEAD
33853357
exclude_test_table => 1,
33863358
exclude_test_table_data => 1,
33873359
no_toast_compression => 1,
33883360
no_blobs => 1,
33893361
no_privs => 1,
33903362
no_owner => 1,
3363+
no_subscriptions => 1,
3364+
no_subscriptions_restore => 1,
33913365
no_table_access_method => 1,
33923366
pg_dumpall_dbprivs => 1,
33933367
pg_dumpall_exclude => 1,
33943368
role => 1,
33953369
schema_only => 1,
33963370
section_post_data => 1,
3397-
=======
3398-
exclude_test_table => 1,
3399-
exclude_test_table_data => 1,
3400-
no_toast_compression => 1,
3401-
no_blobs => 1,
3402-
no_privs => 1,
3403-
no_owner => 1,
3404-
no_subscriptions => 1,
3405-
no_subscriptions_restore => 1,
3406-
no_table_access_method => 1,
3407-
pg_dumpall_dbprivs => 1,
3408-
pg_dumpall_exclude => 1,
3409-
role => 1,
3410-
schema_only => 1,
3411-
section_post_data => 1,
3412-
>>>>>>> REL_15_15
34133371
},
34143372
unlike => {
34153373
only_dump_test_schema => 1,

src/bin/pgbench/t/001_pgbench_with_server.pl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,10 +1545,9 @@ BEGIN
15451545

15461546
# Test copy in pgbench
15471547
$node->pgbench(
1548-
'-t 10',
1549-
2,
1548+
'-t 10', 2,
15501549
[],
1551-
[ qr{COPY is not supported in pgbench, aborting} ],
1550+
[qr{COPY is not supported in pgbench, aborting}],
15521551
'Test copy in script',
15531552
{
15541553
'001_copy' => q{ COPY pgbench_accounts FROM stdin }

src/interfaces/libpq/fe-protocol3.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,8 @@ static int getCopyStart(PGconn *conn, ExecStatusType copytype);
5151
static int getReadyForQuery(PGconn *conn);
5252
static void reportErrorPosition(PQExpBuffer msg, const char *query,
5353
int loc, int encoding);
54-
<<<<<<< HEAD
55-
static int build_startup_packet(PGconn *conn, char *packet,
56-
const PQEnvironmentOption *options);
57-
=======
58-
static size_t build_startup_packet(const PGconn *conn, char *packet,
54+
static size_t build_startup_packet(PGconn *conn, char *packet,
5955
const PQEnvironmentOption *options);
60-
>>>>>>> REL_15_15
6156

6257

6358
/*
@@ -2258,13 +2253,8 @@ add_size_overflow(size_t s1, size_t s2, size_t *dst)
22582253
* (with packet == allocated space) fills it in. Return value is the number
22592254
* of bytes used, or zero in the unlikely event of size_t overflow.
22602255
*/
2261-
<<<<<<< HEAD
2262-
static int
2263-
build_startup_packet(PGconn *conn, char *packet,
2264-
=======
22652256
static size_t
2266-
build_startup_packet(const PGconn *conn, char *packet,
2267-
>>>>>>> REL_15_15
2257+
build_startup_packet(PGconn *conn, char *packet,
22682258
const PQEnvironmentOption *options)
22692259
{
22702260
size_t packet_len = 0;

src/test/modules/brin/t/01_workitems.pl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,16 @@
4848
$node->safe_psql('postgres',
4949
'insert into brin_wi select * from generate_series(1, 100)');
5050
$node->safe_psql('postgres',
51-
"insert into journal select * from generate_series(timestamp '1976-08-01', '1976-10-28', '1 day')");
51+
"insert into journal select * from generate_series(timestamp '1976-08-01', '1976-10-28', '1 day')"
52+
);
5253

5354
$node->poll_query_until(
5455
'postgres',
5556
"select count(*) > 1 from brin_page_items(get_raw_page('brin_wi_idx', 2), 'brin_wi_idx'::regclass)",
5657
't');
5758

58-
$count = $node->safe_psql('postgres',
59+
$count = $node->safe_psql(
60+
'postgres',
5961
"select count(*) from brin_page_items(get_raw_page('brin_wi_idx', 2), 'brin_wi_idx'::regclass)
6062
where not placeholder;"
6163
);
@@ -66,7 +68,8 @@
6668
"select count(*) > 1 from brin_page_items(get_raw_page('brin_packdate_idx', 2), 'brin_packdate_idx'::regclass)",
6769
't');
6870

69-
$count = $node->safe_psql('postgres',
71+
$count = $node->safe_psql(
72+
'postgres',
7073
"select count(*) from brin_page_items(get_raw_page('brin_packdate_idx', 2), 'brin_packdate_idx'::regclass)
7174
where not placeholder;"
7275
);

0 commit comments

Comments
 (0)