Hi hackers,

I noticed several occurrences of the misspelled city name 'Bejing' (should be 'Beijing') in our partition regressions and documentation. While these are just in test files and docs, I believe it's worth fixing.

Attached is the patch generated with git format-patch. After making the changes, I ran 'make checkworld' and verified all regression tests pass.

I'd appreciate any feedback on whether this aligns with our standards for such corrections.

Thanks,
JiaoShuntian
From 3a7df688d6026c6086ef74b62afa955c40e881a7 Mon Sep 17 00:00:00 2001
From: JiaoShuntian <[email protected]>
Date: Tue, 23 Dec 2025 16:34:37 +0800
Subject: [PATCH] Fix typos

---
 doc/src/sgml/ref/alter_table.sgml             |  2 +-
 src/test/regress/expected/partition_merge.out | 16 +++++-----
 src/test/regress/expected/partition_split.out | 30 +++++++++----------
 src/test/regress/sql/partition_merge.sql      |  6 ++--
 src/test/regress/sql/partition_split.sql      | 26 ++++++++--------
 5 files changed, 40 insertions(+), 40 deletions(-)

diff --git a/doc/src/sgml/ref/alter_table.sgml 
b/doc/src/sgml/ref/alter_table.sgml
index 9abd8037f28..1bd479c917a 100644
--- a/doc/src/sgml/ref/alter_table.sgml
+++ b/doc/src/sgml/ref/alter_table.sgml
@@ -2060,7 +2060,7 @@ ALTER TABLE sales_range SPLIT PARTITION 
sales_feb_mar_apr2023 INTO
 <programlisting>
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
    (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid'),
-    PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+    PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
     PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Kyiv'));
 </programlisting></para>
 
diff --git a/src/test/regress/expected/partition_merge.out 
b/src/test/regress/expected/partition_merge.out
index 3e40abf38a0..925fe4f570a 100644
--- a/src/test/regress/expected/partition_merge.out
+++ b/src/test/regress/expected/partition_merge.out
@@ -472,7 +472,7 @@ CREATE TABLE sales_list
 PARTITION BY LIST (sales_state);
 CREATE TABLE sales_nord PARTITION OF sales_list FOR VALUES IN ('Oslo', 'St. 
Petersburg', 'Helsinki');
 CREATE TABLE sales_west PARTITION OF sales_list FOR VALUES IN ('Lisbon', 'New 
York', 'Madrid');
-CREATE TABLE sales_east PARTITION OF sales_list FOR VALUES IN ('Bejing', 
'Delhi', 'Vladivostok');
+CREATE TABLE sales_east PARTITION OF sales_list FOR VALUES IN ('Beijing', 
'Delhi', 'Vladivostok');
 CREATE TABLE sales_central PARTITION OF sales_list FOR VALUES IN ('Warsaw', 
'Berlin', 'Kyiv');
 CREATE TABLE sales_others PARTITION OF sales_list DEFAULT;
 CREATE TABLE sales_list2 (LIKE sales_list) PARTITION BY LIST (sales_state);
@@ -510,11 +510,11 @@ CREATE INDEX sales_list_salesperson_name_idx ON 
sales_list USING btree (salesper
 CREATE INDEX sales_list_sales_state_idx ON sales_list USING btree 
(sales_state);
 CREATE TABLE sales_nord PARTITION OF sales_list FOR VALUES IN ('Oslo', 'St. 
Petersburg', 'Helsinki');
 CREATE TABLE sales_west PARTITION OF sales_list FOR VALUES IN ('Lisbon', 'New 
York', 'Madrid');
-CREATE TABLE sales_east PARTITION OF sales_list FOR VALUES IN ('Bejing', 
'Delhi', 'Vladivostok');
+CREATE TABLE sales_east PARTITION OF sales_list FOR VALUES IN ('Beijing', 
'Delhi', 'Vladivostok');
 CREATE TABLE sales_central PARTITION OF sales_list FOR VALUES IN ('Warsaw', 
'Berlin', 'Kyiv');
 CREATE TABLE sales_others PARTITION OF sales_list DEFAULT;
 INSERT INTO sales_list (salesperson_name, sales_state, sales_amount, 
sales_date) VALUES
-  ('Trump',    'Bejing',         1000, '2022-03-01'),
+  ('Trump',    'Beijing',         1000, '2022-03-01'),
   ('Smirnoff', 'New York',        500, '2022-03-03'),
   ('Ford',     'St. Petersburg', 2000, '2022-03-05'),
   ('Ivanov',   'Warsaw',          750, '2022-03-04'),
@@ -533,7 +533,7 @@ EXECUTE get_partition_info('{sales_list}');
       oid      | relpersistence | relkind | inhdetachpending |                 
    pg_get_expr                      
 
---------------+----------------+---------+------------------+------------------------------------------------------
  sales_central | p              | r       | f                | FOR VALUES IN 
('Warsaw', 'Berlin', 'Kyiv')
- sales_east    | p              | r       | f                | FOR VALUES IN 
('Bejing', 'Delhi', 'Vladivostok')
+ sales_east    | p              | r       | f                | FOR VALUES IN 
('Beijing', 'Delhi', 'Vladivostok')
  sales_nord    | p              | r       | f                | FOR VALUES IN 
('Oslo', 'St. Petersburg', 'Helsinki')
  sales_west    | p              | r       | f                | FOR VALUES IN 
('Lisbon', 'New York', 'Madrid')
  sales_others  | p              | r       | f                | DEFAULT
@@ -542,9 +542,9 @@ EXECUTE get_partition_info('{sales_list}');
 ALTER TABLE sales_list MERGE PARTITIONS (sales_west, sales_east, 
sales_central) INTO sales_all;
 -- show partitions with conditions:
 EXECUTE get_partition_info('{sales_list}');
-     oid      | relpersistence | relkind | inhdetachpending |                  
                               pg_get_expr                                      
            
---------------+----------------+---------+------------------+--------------------------------------------------------------------------------------------------------------
- sales_all    | p              | r       | f                | FOR VALUES IN 
('Lisbon', 'New York', 'Madrid', 'Bejing', 'Delhi', 'Vladivostok', 'Warsaw', 
'Berlin', 'Kyiv')
+     oid      | relpersistence | relkind | inhdetachpending |                  
                                pg_get_expr                                     
             
+--------------+----------------+---------+------------------+---------------------------------------------------------------------------------------------------------------
+ sales_all    | p              | r       | f                | FOR VALUES IN 
('Lisbon', 'New York', 'Madrid', 'Beijing', 'Delhi', 'Vladivostok', 'Warsaw', 
'Berlin', 'Kyiv')
  sales_nord   | p              | r       | f                | FOR VALUES IN 
('Oslo', 'St. Petersburg', 'Helsinki')
  sales_others | p              | r       | f                | DEFAULT
 (3 rows)
@@ -552,7 +552,7 @@ EXECUTE get_partition_info('{sales_list}');
 SELECT tableoid::regclass, * FROM sales_list ORDER BY tableoid::regclass::text 
COLLATE "C", salesperson_id;
   tableoid  | salesperson_id | salesperson_name |  sales_state   | 
sales_amount | sales_date 
 
------------+----------------+------------------+----------------+--------------+------------
- sales_all  |              1 | Trump            | Bejing         |         
1000 | 03-01-2022
+ sales_all  |              1 | Trump            | Beijing        |         
1000 | 03-01-2022
  sales_all  |              2 | Smirnoff         | New York       |          
500 | 03-03-2022
  sales_all  |              4 | Ivanov           | Warsaw         |          
750 | 03-04-2022
  sales_all  |              5 | Deev             | Lisbon         |          
250 | 03-07-2022
diff --git a/src/test/regress/expected/partition_split.out 
b/src/test/regress/expected/partition_split.out
index e68baf71daf..4004efe0dac 100644
--- a/src/test/regress/expected/partition_split.out
+++ b/src/test/regress/expected/partition_split.out
@@ -853,20 +853,20 @@ DROP TABLE sales_range;
 --
 CREATE TABLE sales_list (sales_state VARCHAR(20)) PARTITION BY LIST 
(sales_state);
 CREATE TABLE sales_nord PARTITION OF sales_list FOR VALUES IN ('Oslo', 'St. 
Petersburg', 'Helsinki');
-CREATE TABLE sales_all PARTITION OF sales_list FOR VALUES IN ('Warsaw', 
'Lisbon', 'New York', 'Madrid', 'Bejing', 'Berlin', 'Delhi', 'Kyiv', 
'Vladivostok');
+CREATE TABLE sales_all PARTITION OF sales_list FOR VALUES IN ('Warsaw', 
'Lisbon', 'New York', 'Madrid', 'Beijing', 'Berlin', 'Delhi', 'Kyiv', 
'Vladivostok');
 CREATE TABLE sales_others PARTITION OF sales_list DEFAULT;
 -- ERROR:  new partition "sales_east" would overlap with another (not split) 
partition "sales_nord"
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid'),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok', 
'Helsinki'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok', 
'Helsinki'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Kyiv'));
 ERROR:  new partition "sales_east" would overlap with another (not split) 
partition "sales_nord"
-LINE 3: ... FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok', 'Helsinki'...
+LINE 3: ...FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok', 'Helsinki'...
                                                              ^
 -- ERROR:  new partition "sales_west" would overlap with another new partition 
"sales_central"
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid'),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Lisbon', 
'Kyiv'));
 ERROR:  new partition "sales_west" would overlap with another new partition 
"sales_central"
 LINE 2:   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York',...
@@ -874,7 +874,7 @@ LINE 2:   (PARTITION sales_west FOR VALUES IN ('Lisbon', 
'New York',...
 -- ERROR:  new partition "sales_west" cannot have NULL value because split 
partition "sales_all" does not have
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid', NULL),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Kyiv'));
 ERROR:  new partition "sales_west" cannot have NULL value because split 
partition "sales_all" does not have
 LINE 2: ...s_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid', NULL),
@@ -882,7 +882,7 @@ LINE 2: ...s_west FOR VALUES IN ('Lisbon', 'New York', 
'Madrid', NULL),
 -- ERROR:  new partition "sales_west" cannot have this value because split 
partition "sales_all" does not have
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid', 
'Melbourne'),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Kyiv'));
 ERROR:  new partition "sales_west" cannot have this value because split 
partition "sales_all" does not have
 LINE 2: ...st FOR VALUES IN ('Lisbon', 'New York', 'Madrid', 'Melbourne...
@@ -890,7 +890,7 @@ LINE 2: ...st FOR VALUES IN ('Lisbon', 'New York', 
'Madrid', 'Melbourne...
 -- ERROR:  new partition cannot be DEFAULT because DEFAULT partition 
"sales_others" already exists
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid', 
'Melbourne'),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Kyiv'),
    PARTITION sales_others2 DEFAULT);
 ERROR:  new partition cannot be DEFAULT because DEFAULT partition 
"sales_others" already exists
@@ -915,12 +915,12 @@ DROP TABLE t;
 --
 CREATE TABLE sales_list(sales_state VARCHAR(20)) PARTITION BY LIST 
(sales_state);
 CREATE TABLE sales_nord PARTITION OF sales_list FOR VALUES IN ('Helsinki', 
'St. Petersburg', 'Oslo');
-CREATE TABLE sales_all PARTITION OF sales_list FOR VALUES IN ('Warsaw', 
'Lisbon', 'New York', 'Madrid', 'Bejing', 'Berlin', 'Delhi', 'Kyiv', 
'Vladivostok', NULL);
+CREATE TABLE sales_all PARTITION OF sales_list FOR VALUES IN ('Warsaw', 
'Lisbon', 'New York', 'Madrid', 'Beijing', 'Berlin', 'Delhi', 'Kyiv', 
'Vladivostok', NULL);
 -- ERROR:  new partitions combined partition bounds do not contain value 
(NULL) but split partition "sales_all" does
 -- HINT:  ALTER TABLE ... SPLIT PARTITION require combined bounds of new 
partitions must exactly match the bound of the split partition
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid'),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Kyiv'));
 ERROR:  new partitions combined partition bounds do not contain value (NULL) 
but split partition "sales_all" does
 HINT:  ALTER TABLE ... SPLIT PARTITION require combined bounds of new 
partitions must exactly match the bound of the split partition
@@ -928,14 +928,14 @@ HINT:  ALTER TABLE ... SPLIT PARTITION require combined 
bounds of new partitions
 -- HINT:  ALTER TABLE ... SPLIT PARTITION require combined bounds of new 
partitions must exactly match the bound of the split partition
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid'),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', NULL));
 ERROR:  new partitions combined partition bounds do not contain value 
('Kyiv'::character varying(20)) but split partition "sales_all" does
 HINT:  ALTER TABLE ... SPLIT PARTITION require combined bounds of new 
partitions must exactly match the bound of the split partition
 -- ERROR  DEFAULT partition should be one
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid'),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Kyiv'),
    PARTITION sales_others DEFAULT,
    PARTITION sales_others2 DEFAULT);
@@ -956,10 +956,10 @@ PARTITION BY LIST (sales_state);
 CREATE INDEX sales_list_salesperson_name_idx ON sales_list USING btree 
(salesperson_name);
 CREATE INDEX sales_list_sales_state_idx ON sales_list USING btree 
(sales_state);
 CREATE TABLE sales_nord PARTITION OF sales_list FOR VALUES IN ('Helsinki', 
'St. Petersburg', 'Oslo');
-CREATE TABLE sales_all PARTITION OF sales_list FOR VALUES IN ('Warsaw', 
'Lisbon', 'New York', 'Madrid', 'Bejing', 'Berlin', 'Delhi', 'Kyiv', 
'Vladivostok');
+CREATE TABLE sales_all PARTITION OF sales_list FOR VALUES IN ('Warsaw', 
'Lisbon', 'New York', 'Madrid', 'Beijing', 'Berlin', 'Delhi', 'Kyiv', 
'Vladivostok');
 CREATE TABLE sales_others PARTITION OF sales_list DEFAULT;
 INSERT INTO sales_list (salesperson_name, sales_state, sales_amount, 
sales_date) VALUES
-  ('Trump',    'Bejing',         1000, '2022-03-01'),
+  ('Trump',    'Beijing',         1000, '2022-03-01'),
   ('Smirnoff', 'New York',        500, '2022-03-03'),
   ('Ford',     'St. Petersburg', 2000, '2022-03-05'),
   ('Ivanov',   'Warsaw',          750, '2022-03-04'),
@@ -975,7 +975,7 @@ INSERT INTO sales_list (salesperson_name, sales_state, 
sales_amount, sales_date)
   ('Plato',    'Lisbon',          950, '2022-03-05');
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid'),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Kyiv'));
 SELECT tableoid::regclass, * FROM sales_list ORDER BY tableoid::regclass::text 
COLLATE "C", salesperson_id;
    tableoid    | salesperson_id | salesperson_name |  sales_state   | 
sales_amount | sales_date 
@@ -984,7 +984,7 @@ SELECT tableoid::regclass, * FROM sales_list ORDER BY 
tableoid::regclass::text C
  sales_central |              6 | Poirot           | Berlin         |         
1000 | 03-01-2022
  sales_central |             12 | Smith            | Kyiv           |          
350 | 03-10-2022
  sales_central |             13 | Gandi            | Warsaw         |          
150 | 03-08-2022
- sales_east    |              1 | Trump            | Bejing         |         
1000 | 03-01-2022
+ sales_east    |              1 | Trump            | Beijing        |         
1000 | 03-01-2022
  sales_east    |              8 | Li               | Vladivostok    |         
1150 | 03-09-2022
  sales_nord    |              3 | Ford             | St. Petersburg |         
2000 | 03-05-2022
  sales_nord    |              7 | May              | Oslo           |         
1200 | 03-06-2022
diff --git a/src/test/regress/sql/partition_merge.sql 
b/src/test/regress/sql/partition_merge.sql
index ffb498612a6..a211fee2ad1 100644
--- a/src/test/regress/sql/partition_merge.sql
+++ b/src/test/regress/sql/partition_merge.sql
@@ -344,7 +344,7 @@ CREATE TABLE sales_list
 PARTITION BY LIST (sales_state);
 CREATE TABLE sales_nord PARTITION OF sales_list FOR VALUES IN ('Oslo', 'St. 
Petersburg', 'Helsinki');
 CREATE TABLE sales_west PARTITION OF sales_list FOR VALUES IN ('Lisbon', 'New 
York', 'Madrid');
-CREATE TABLE sales_east PARTITION OF sales_list FOR VALUES IN ('Bejing', 
'Delhi', 'Vladivostok');
+CREATE TABLE sales_east PARTITION OF sales_list FOR VALUES IN ('Beijing', 
'Delhi', 'Vladivostok');
 CREATE TABLE sales_central PARTITION OF sales_list FOR VALUES IN ('Warsaw', 
'Berlin', 'Kyiv');
 CREATE TABLE sales_others PARTITION OF sales_list DEFAULT;
 
@@ -385,12 +385,12 @@ CREATE INDEX sales_list_sales_state_idx ON sales_list 
USING btree (sales_state);
 
 CREATE TABLE sales_nord PARTITION OF sales_list FOR VALUES IN ('Oslo', 'St. 
Petersburg', 'Helsinki');
 CREATE TABLE sales_west PARTITION OF sales_list FOR VALUES IN ('Lisbon', 'New 
York', 'Madrid');
-CREATE TABLE sales_east PARTITION OF sales_list FOR VALUES IN ('Bejing', 
'Delhi', 'Vladivostok');
+CREATE TABLE sales_east PARTITION OF sales_list FOR VALUES IN ('Beijing', 
'Delhi', 'Vladivostok');
 CREATE TABLE sales_central PARTITION OF sales_list FOR VALUES IN ('Warsaw', 
'Berlin', 'Kyiv');
 CREATE TABLE sales_others PARTITION OF sales_list DEFAULT;
 
 INSERT INTO sales_list (salesperson_name, sales_state, sales_amount, 
sales_date) VALUES
-  ('Trump',    'Bejing',         1000, '2022-03-01'),
+  ('Trump',    'Beijing',         1000, '2022-03-01'),
   ('Smirnoff', 'New York',        500, '2022-03-03'),
   ('Ford',     'St. Petersburg', 2000, '2022-03-05'),
   ('Ivanov',   'Warsaw',          750, '2022-03-04'),
diff --git a/src/test/regress/sql/partition_split.sql 
b/src/test/regress/sql/partition_split.sql
index 0e79c036ea9..37c6d730840 100644
--- a/src/test/regress/sql/partition_split.sql
+++ b/src/test/regress/sql/partition_split.sql
@@ -605,37 +605,37 @@ DROP TABLE sales_range;
 CREATE TABLE sales_list (sales_state VARCHAR(20)) PARTITION BY LIST 
(sales_state);
 
 CREATE TABLE sales_nord PARTITION OF sales_list FOR VALUES IN ('Oslo', 'St. 
Petersburg', 'Helsinki');
-CREATE TABLE sales_all PARTITION OF sales_list FOR VALUES IN ('Warsaw', 
'Lisbon', 'New York', 'Madrid', 'Bejing', 'Berlin', 'Delhi', 'Kyiv', 
'Vladivostok');
+CREATE TABLE sales_all PARTITION OF sales_list FOR VALUES IN ('Warsaw', 
'Lisbon', 'New York', 'Madrid', 'Beijing', 'Berlin', 'Delhi', 'Kyiv', 
'Vladivostok');
 CREATE TABLE sales_others PARTITION OF sales_list DEFAULT;
 
 -- ERROR:  new partition "sales_east" would overlap with another (not split) 
partition "sales_nord"
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid'),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok', 
'Helsinki'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok', 
'Helsinki'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Kyiv'));
 
 -- ERROR:  new partition "sales_west" would overlap with another new partition 
"sales_central"
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid'),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Lisbon', 
'Kyiv'));
 
 -- ERROR:  new partition "sales_west" cannot have NULL value because split 
partition "sales_all" does not have
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid', NULL),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Kyiv'));
 
 -- ERROR:  new partition "sales_west" cannot have this value because split 
partition "sales_all" does not have
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid', 
'Melbourne'),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Kyiv'));
 
 -- ERROR:  new partition cannot be DEFAULT because DEFAULT partition 
"sales_others" already exists
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid', 
'Melbourne'),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Kyiv'),
    PARTITION sales_others2 DEFAULT);
 
@@ -658,26 +658,26 @@ DROP TABLE t;
 CREATE TABLE sales_list(sales_state VARCHAR(20)) PARTITION BY LIST 
(sales_state);
 
 CREATE TABLE sales_nord PARTITION OF sales_list FOR VALUES IN ('Helsinki', 
'St. Petersburg', 'Oslo');
-CREATE TABLE sales_all PARTITION OF sales_list FOR VALUES IN ('Warsaw', 
'Lisbon', 'New York', 'Madrid', 'Bejing', 'Berlin', 'Delhi', 'Kyiv', 
'Vladivostok', NULL);
+CREATE TABLE sales_all PARTITION OF sales_list FOR VALUES IN ('Warsaw', 
'Lisbon', 'New York', 'Madrid', 'Beijing', 'Berlin', 'Delhi', 'Kyiv', 
'Vladivostok', NULL);
 
 -- ERROR:  new partitions combined partition bounds do not contain value 
(NULL) but split partition "sales_all" does
 -- HINT:  ALTER TABLE ... SPLIT PARTITION require combined bounds of new 
partitions must exactly match the bound of the split partition
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid'),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Kyiv'));
 
 -- ERROR:  new partitions combined partition bounds do not contain value 
('Kyiv'::character varying(20)) but split partition "sales_all" does
 -- HINT:  ALTER TABLE ... SPLIT PARTITION require combined bounds of new 
partitions must exactly match the bound of the split partition
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid'),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', NULL));
 
 -- ERROR  DEFAULT partition should be one
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid'),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Kyiv'),
    PARTITION sales_others DEFAULT,
    PARTITION sales_others2 DEFAULT);
@@ -699,11 +699,11 @@ CREATE INDEX sales_list_salesperson_name_idx ON 
sales_list USING btree (salesper
 CREATE INDEX sales_list_sales_state_idx ON sales_list USING btree 
(sales_state);
 
 CREATE TABLE sales_nord PARTITION OF sales_list FOR VALUES IN ('Helsinki', 
'St. Petersburg', 'Oslo');
-CREATE TABLE sales_all PARTITION OF sales_list FOR VALUES IN ('Warsaw', 
'Lisbon', 'New York', 'Madrid', 'Bejing', 'Berlin', 'Delhi', 'Kyiv', 
'Vladivostok');
+CREATE TABLE sales_all PARTITION OF sales_list FOR VALUES IN ('Warsaw', 
'Lisbon', 'New York', 'Madrid', 'Beijing', 'Berlin', 'Delhi', 'Kyiv', 
'Vladivostok');
 CREATE TABLE sales_others PARTITION OF sales_list DEFAULT;
 
 INSERT INTO sales_list (salesperson_name, sales_state, sales_amount, 
sales_date) VALUES
-  ('Trump',    'Bejing',         1000, '2022-03-01'),
+  ('Trump',    'Beijing',         1000, '2022-03-01'),
   ('Smirnoff', 'New York',        500, '2022-03-03'),
   ('Ford',     'St. Petersburg', 2000, '2022-03-05'),
   ('Ivanov',   'Warsaw',          750, '2022-03-04'),
@@ -720,7 +720,7 @@ INSERT INTO sales_list (salesperson_name, sales_state, 
sales_amount, sales_date)
 
 ALTER TABLE sales_list SPLIT PARTITION sales_all INTO
   (PARTITION sales_west FOR VALUES IN ('Lisbon', 'New York', 'Madrid'),
-   PARTITION sales_east FOR VALUES IN ('Bejing', 'Delhi', 'Vladivostok'),
+   PARTITION sales_east FOR VALUES IN ('Beijing', 'Delhi', 'Vladivostok'),
    PARTITION sales_central FOR VALUES IN ('Warsaw', 'Berlin', 'Kyiv'));
 
 SELECT tableoid::regclass, * FROM sales_list ORDER BY tableoid::regclass::text 
COLLATE "C", salesperson_id;
-- 
2.43.5

Reply via email to