postgresql/src/test/regress/expected
Alexander Korotkov fcf80c5d5f Make new partitions with parent's persistence during MERGE/SPLIT
The createPartitionTable() function is responsible for creating new partitions
for ALTER TABLE ... MERGE PARTITIONS, and ALTER TABLE ... SPLIT PARTITION
commands.  It emulates the behaviour of CREATE TABLE ... (LIKE ...), where
new table persistence should be specified by the user.  In the table
partitioning persistent of the partition and its parent must match.  So, this
commit makes createPartitionTable() copy the persistence of the parent
partition.

Also, this commit makes createPartitionTable() recheck the persistence after
the new table creation.  This is needed because persistence might be affected
by pg_temp in search_path.

This commit also changes the signature of createPartitionTable() making it
take the parent's Relation itself instead of the name of the parent relation,
and return the Relation of new partition.  That doesn't lead to
complications, because both callers have the parent table open and need to
open the new partition.

Reported-by: Alexander Lakhin
Discussion: https://postgr.es/m/dbc8b96c-3cf0-d1ee-860d-0e491da20485%40gmail.com
Author: Dmitry Koval
Reviewed-by: Alexander Korotkov, Robert Haas, Justin Pryzby, Pavel Borisov
2024-04-30 12:00:15 +03:00
..
advisory_lock.out
aggregates.out Fix typos and duplicate words 2024-04-18 21:28:07 +02:00
alter_generic.out
alter_operator.out
alter_table.out
amutils.out
arrays.out
async.out
bit.out
bitmapops.out
boolean.out
box.out
brin_bloom.out
brin_multi.out
brin.out Add missing index_insert_cleanup calls 2024-04-19 16:08:34 +02:00
btree_index.out
case.out
char_1.out
char_2.out
char.out
circle.out
cluster.out
collate.icu.utf8_1.out
collate.icu.utf8.out
collate.linux.utf8_1.out
collate.linux.utf8.out
collate.out
collate.utf8_1.out
collate.utf8.out
collate.windows.win1252_1.out
collate.windows.win1252.out
combocid.out
comments.out
compression_1.out
compression.out
constraints.out Better handle indirect constraint drops 2024-04-19 12:37:33 +02:00
conversion.out
copy2.out
copy.out Fix typos and duplicate words 2024-04-18 21:28:07 +02:00
copydml.out
copyselect.out
create_aggregate.out
create_am.out
create_cast.out
create_function_c.out
create_function_sql.out
create_index_spgist.out
create_index.out revert: Transform OR clauses to ANY expression 2024-04-10 02:28:09 +03:00
create_misc.out
create_operator.out
create_procedure.out
create_role.out
create_schema.out
create_table_like.out
create_table.out
create_type.out
create_view.out
date.out
dbsize.out
delete.out
dependency.out
domain.out psql: Make output of \dD more stable 2024-04-15 09:28:48 +02:00
drop_if_exists.out
drop_operator.out
enum.out
equivclass.out
errors.out
event_trigger_login.out
event_trigger.out
explain.out
expressions.out
fast_default.out
float4-misrounded-input.out
float4.out
float8.out
foreign_data.out
foreign_key.out Fix typos and duplicate words 2024-04-18 21:28:07 +02:00
functional_deps.out
generated.out
geometry.out
gin.out
gist.out
groupingsets.out
guc.out Improve "out of range" error messages for GUCs. 2024-04-23 11:52:44 -04:00
hash_func.out
hash_index.out
hash_part.out
horology.out Detect more overflows in timestamp[tz]_pl_interval. 2024-04-28 13:42:13 -04:00
identity.out
incremental_sort.out
index_including_gist.out
index_including.out
indexing.out
indirect_toast.out
inet.out
infinite_recurse_1.out
infinite_recurse.out
inherit.out Fix propagating attnotnull in multiple inheritance 2024-04-15 12:20:56 +02:00
init_privs.out
insert_conflict.out
insert.out
int2.out
int4.out
int8.out
interval.out
join_hash.out
join.out revert: Transform OR clauses to ANY expression 2024-04-10 02:28:09 +03:00
json_encoding_1.out
json_encoding_2.out
json_encoding.out
json.out
jsonb_jsonpath.out
jsonb.out
jsonpath_encoding_1.out
jsonpath_encoding_2.out
jsonpath_encoding.out
jsonpath.out
largeobject_1.out
largeobject.out
limit.out
line.out
lock.out
lseg.out
macaddr8.out
macaddr.out
matview.out
md5_1.out
md5.out
memoize.out
merge.out
misc_functions.out
misc_sanity.out
misc.out
money.out
multirangetypes.out
mvcc.out
name.out
namespace.out
numeric_big.out
numeric.out
numerology.out
object_address.out
oid.out
oidjoins.out
opr_sanity.out
partition_aggregate.out
partition_info.out
partition_join.out
partition_merge.out Make new partitions with parent's persistence during MERGE/SPLIT 2024-04-30 12:00:15 +03:00
partition_prune.out revert: Transform OR clauses to ANY expression 2024-04-10 02:28:09 +03:00
partition_split.out Make new partitions with parent's persistence during MERGE/SPLIT 2024-04-30 12:00:15 +03:00
password_1.out
password.out
path.out
pg_lsn.out
plancache.out
plpgsql.out Fix plpgsql's handling of -- comments following expressions. 2024-04-10 15:45:58 -04:00
point.out
polygon.out
polymorphism.out
portals_p2.out
portals.out
predicate.out Fix IS [NOT] NULL qual optimization for inheritance tables 2024-04-12 20:07:53 +12:00
prepare.out
prepared_xacts_1.out Make two-phase tests of ECPG and main suite more concurrent-proof 2024-04-29 21:10:41 +09:00
prepared_xacts.out Make two-phase tests of ECPG and main suite more concurrent-proof 2024-04-29 21:10:41 +09:00
privileges.out
psql_crosstab.out
psql.out
publication.out Fix typos and duplicate words 2024-04-18 21:28:07 +02:00
random.out
rangefuncs.out Fix type-checking of RECORD-returning functions in FROM, redux. 2024-04-15 12:56:56 -04:00
rangetypes.out
regex.out
regproc.out
reindex_catalog.out
reloptions.out
replica_identity.out
returning.out
roleattributes.out
rowsecurity.out
rowtypes.out
rules.out
sanity_check.out
security_label.out
select_distinct_on.out
select_distinct.out
select_having_1.out
select_having_2.out
select_having.out
select_implicit_1.out
select_implicit_2.out
select_implicit.out
select_into.out
select_parallel.out
select_views.out
select.out
sequence.out
spgist.out
sqljson_jsontable.out SQL/JSON: Fix issues with DEFAULT .. ON ERROR / EMPTY 2024-04-18 14:46:35 +09:00
sqljson_queryfuncs.out Fix object name clash in recently introduced test 2024-04-18 17:28:12 +09:00
sqljson.out
stats_ext.out
stats.out
strings.out
subscription.out Fix the handling of the failover option in subscription commands. 2024-04-23 12:22:30 +05:30
subselect.out
sysviews.out Push dedicated BumpBlocks to the tail of the blocks list 2024-04-17 10:40:31 +12:00
tablesample.out
tablespace.out
temp.out
test_setup.out
text.out
tid.out
tidrangescan.out
tidscan.out
time.out
timestamp.out
timestamptz.out
timetz.out
transactions.out
triggers.out
truncate.out
tsdicts.out Fix typos and duplicate words 2024-04-18 21:28:07 +02:00
tsearch.out
tsrf.out
tstypes.out
tuplesort.out Improve test coverage in bump.c 2024-04-16 16:21:31 +12:00
txid.out
type_sanity.out
typed_table.out
unicode_1.out
unicode.out
union.out
updatable_views.out
update.out
uuid.out
vacuum_parallel.out
vacuum.out
varchar_1.out
varchar_2.out
varchar.out
window.out
with.out
without_overlaps.out
write_parallel.out
xid.out
xml_1.out
xml_2.out
xml.out
xmlmap_1.out
xmlmap.out