Re: How is this possible "publication does not exist"
От | operations i |
---|---|
Тема | Re: How is this possible "publication does not exist" |
Дата | |
Msg-id | CANWRaJx+SWirb-wL0Zax748hgEZ_x1D0KYbLUzuypD63fvFnPA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: How is this possible "publication does not exist" (operations i <ioperations.c@gmail.com>) |
Список | pgsql-bugs |
Ok, I have got the real problem, It's very kind of you for your quick response.
On Thu, Jun 2, 2022 at 6:58 PM operations i <ioperations.c@gmail.com> wrote:
cool , you have send faster than me for about 5 secondsOn Thu, Jun 2, 2022 at 6:57 PM operations i <ioperations.c@gmail.com> wrote:after several times debugging, I 've realized the key point is the order of publication creation and insert statement, and both two have reached catcache.c:SearchCatCacheMiss() .and below has the difference explained1. publication create first and then insert data into tablethe expression ```HeapTupleIsValid(ntp = systable_getnext(scandesc))``` return true2.insert data into table and then create publicationthe expression ```HeapTupleIsValid(ntp = systable_getnext(scandesc))``` return falseso in case 2 , when decoding the first change , system table snapshot do not have Publication 'pub_test' , so throw the error" publication 'pub_test'" not exists
В списке pgsql-bugs по дате отправления: