From: | operations i <ioperations(dot)c(at)gmail(dot)com> |
---|---|
To: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
Cc: | PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: How is this possible "publication does not exist" |
Date: | 2022-06-02 11:12:18 |
Message-ID: | CANWRaJx+SWirb-wL0Zax748hgEZ_x1D0KYbLUzuypD63fvFnPA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-general |
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(dot)c(at)gmail(dot)com> wrote:
> cool , you have send faster than me for about 5 seconds
>
> On Thu, Jun 2, 2022 at 6:57 PM operations i <ioperations(dot)c(at)gmail(dot)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 explained
>> 1. publication create first and then insert data into table
>> the expression ```HeapTupleIsValid(ntp =
>> systable_getnext(scandesc))``` return true
>>
>> 2.insert data into table and then create publication
>> the expression ```HeapTupleIsValid(ntp =
>> systable_getnext(scandesc))``` return false
>>
>> so 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
>>
>>
>>
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Gustafsson | 2022-06-02 13:34:36 | Re: BUG #17508: ja.po for pg_ctl has an obvious mistake |
Previous Message | operations i | 2022-06-02 11:01:03 | Re: How is this possible "publication does not exist" |
From | Date | Subject | |
---|---|---|---|
Next Message | Danny Shemesh | 2022-06-02 11:44:04 | Re: Extended multivariate statistics are ignored (potentially related to high null fraction, not sure) |
Previous Message | Laurenz Albe | 2022-06-02 11:03:58 | Re: How to display complicated Chinese character: Biang. |