Unnecessary smgropen in {heapam_relation,index}_copy_data?
От
Japin Li
Тема
Unnecessary smgropen in {heapam_relation,index}_copy_data?
Дата
Msg-id
ME3P282MB316600FA62F6605477F26F6AB6742@ME3P282MB3166.AUSP282.PROD.OUTLOOK.COM
Список
Дерево обсуждения
Unnecessary smgropen in {heapam_relation,index}_copy_data? Japin Li <japinli@hotmail.com>
Re: Unnecessary smgropen in {heapam_relation,index}_copy_data? Aleksander Alekseev <aleksander@timescale.com>
Re: Unnecessary smgropen in {heapam_relation,index}_copy_data? Japin Li <japinli@hotmail.com>
Re: Unnecessary smgropen in {heapam_relation,index}_copy_data? Heikki Linnakangas <hlinnaka@iki.fi>
Hi, hackers I find heapam_relation_copy_data() and index_copy_data() have the following code: dstrel = smgropen(*newrlocator, rel->rd_backend); ... RelationCreateStorage(*newrlocator, rel->rd_rel->relpersistence, true); The smgropen() is also called by RelationCreateStorage(), why should we call smgropen() explicitly here? I try to remove the smgropen(), and all tests passed.
В списке pgsql-hackers по дате отправления